import sys

N, M, Q = list(map(int, sys.stdin.readline().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, sys.stdin.readline().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]

 

for i in range(Q):

  p, q = list(map(int, sys.stdin.readline().split()))

  sys.stdout.write(str(LR[p][q-p+1]))

  sys.stdout.write("\n")
import sys

from itertools import accumulate

N, M, Q = list(map(int, sys.stdin.readline().split()))

 

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

for i in range(M):

  L, R = list(map(int, sys.stdin.readline().split()))

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

 

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

  for j, acc in enumerate(accumulate(LR[i])):

    LR[i][j] = acc + (0 if j==0 else LR[i+1][j-1])

 

for i in range(Q):

  p, q = list(map(int, sys.stdin.readline().split()))

  sys.stdout.write(str(LR[p-1][q-p])+"\n")
import sys

N, M, Q = list(map(int, sys.stdin.readline().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, sys.stdin.readline().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]
for i in range(Q):
    p, q = list(map(int, sys.stdin.readline().split()))
    sys.stdout.write(str(LR[p][q - p + 1]))
    sys.stdout.write("\n")

import sys
from itertools import accumulate

N, M, Q = list(map(int, sys.stdin.readline().split()))
LR = [[0 for _ in range(N - i)] for i in range(N)]
for i in range(M):
    L, R = list(map(int, sys.stdin.readline().split()))
    LR[L - 1][R - L] += 1
for i in range(N - 2, -1, -1):
    for j, acc in enumerate(accumulate(LR[i])):
        LR[i][j] = acc + (0 if j == 0 else LR[i + 1][j - 1])
for i in range(Q):
    p, q = list(map(int, sys.stdin.readline().split()))
    sys.stdout.write(str(LR[p - 1][q - p]) + "\n")

+from itertools import accumulate -LR = [[0 for _ in range(N + 2 - i)] for i in range(N + 2)] +LR = [[0 for _ in range(N - i)] for i in range(N)] -    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] +    LR[L - 1][R - L] += 1 +for i in range(N - 2, -1, -1): +    for j, acc in enumerate(accumulate(LR[i])): +        LR[i][j] = acc + (0 if j == 0 else LR[i + 1][j - 1]) -    sys.stdout.write(str(LR[p][q - p + 1])) -    sys.stdout.write("\n") +    sys.stdout.write(str(LR[p - 1][q - p]) + "\n")