local n, m, q = io.read("*n", "*n", "*n")

local t = {}
for i = 1, n * n do t[i] = 0 end

for i = 1, m do
  local l, r = io.read("*n", "*n")
  local idx = (r - 1) * n + l
  t[idx] = t[idx] + 1
end

for l = 1, n do
  for r = 2, n do
    local src = (r - 2) * n + l
    local dst = (r - 1) * n + l
    t[dst] = t[dst] + t[src]
  end
end
for r = 1, n do
  for l = n - 1, 1, -1 do
    local src = (r - 1) * n + l + 1
    local dst = (r - 1) * n + l
    t[dst] = t[dst] + t[src]
  end
end

for i = 1, q do
  local a, b = io.read("*n", "*n")
  local idx = (b - 1) * n + a
  print(t[idx])
end
