N, M , Q = list(map(int, input().split()))



LR = [[0 for _ in range(N+2-i)] for i in range(N+2)]

for i in range(M):

  L, R = list(map(int, input().split()))

  LR[L][R-L+1] += 1



  

for i in range(2,N+2):

  for j in range(1,N-i+2):

    LR[j][i] += LR[j][i-1] + LR[j+1][i-1] - LR[j+1][i-2]

 

A = []

for i in range(Q):

  p, q = list(map(int, input().split()))

  A.append(LR[p][q-p+1])



print(("\n".join(map(str,A))))

import sys

sin = sys.stdin.readlines()

N, M, Q = list(map(int, sin[0].split()))



LR = [[0 for _ in range(N+2-i)] for i in range(N+2)]

for line in sin[1:M+1]:

  L, R = list(map(int, line.split()))

  LR[L][R-L+1] += 1



for i in range(2,N+2):

  for j in range(1,N-i+2):

    LR[j][i] += LR[j][i-1] + LR[j+1][i-1] - LR[j+1][i-2]

 

A = []

for line in sin[M+1:]:

  p, q = list(map(int, line.split()))

  A.append(LR[p][q-p+1])



print(("\n".join(map(str,A))))

N, M, Q = list(map(int, input().split()))
LR = [[0 for _ in range(N + 2 - i)] for i in range(N + 2)]
for i in range(M):
    L, R = list(map(int, input().split()))
    LR[L][R - L + 1] += 1
for i in range(2, N + 2):
    for j in range(1, N - i + 2):
        LR[j][i] += LR[j][i - 1] + LR[j + 1][i - 1] - LR[j + 1][i - 2]
A = []
for i in range(Q):
    p, q = list(map(int, input().split()))
    A.append(LR[p][q - p + 1])
print(("\n".join(map(str, A))))

import sys

sin = sys.stdin.readlines()
N, M, Q = list(map(int, sin[0].split()))
LR = [[0 for _ in range(N + 2 - i)] for i in range(N + 2)]
for line in sin[1 : M + 1]:
    L, R = list(map(int, line.split()))
    LR[L][R - L + 1] += 1
for i in range(2, N + 2):
    for j in range(1, N - i + 2):
        LR[j][i] += LR[j][i - 1] + LR[j + 1][i - 1] - LR[j + 1][i - 2]
A = []
for line in sin[M + 1 :]:
    p, q = list(map(int, line.split()))
    A.append(LR[p][q - p + 1])
print(("\n".join(map(str, A))))

-N, M, Q = list(map(int, input().split())) +import sys + +sin = sys.stdin.readlines() +N, M, Q = list(map(int, sin[0].split())) -for i in range(M): -    L, R = list(map(int, input().split())) +for line in sin[1 : M + 1]: +    L, R = list(map(int, line.split())) -for i in range(Q): -    p, q = list(map(int, input().split())) +for line in sin[M + 1 :]: +    p, q = list(map(int, line.split()))