N, M, Q = io.read("*n","*n","*n")

L = {}
R = {}
for v = 1, M do
  table.insert(L, io.read("*n"))
  table.insert(R, io.read("*n"))
end

for v = 1, Q do
  p, q = io.read("*n","*n")
  ans = 0

  for w = 1, M do
    if p <= L[w] and q >= R[w] then ans = ans + 1 end
  end

  print(ans)
end
