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, pre) in enumerate(zip(accumulate(LR[i]), [0]+LR[i+1])):

    LR[i][j] = acc + pre



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

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):

  acc = accumulate(LR[i])

  next(acc)

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

    LR[i][j] = next(acc) + 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
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, pre) in enumerate(zip(accumulate(LR[i]), [0] + LR[i + 1])):
        LR[i][j] = acc + pre
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
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):
    acc = accumulate(LR[i])
    next(acc)
    for j in range(1, N - i):
        LR[i][j] = next(acc) + 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")

-    for j, (acc, pre) in enumerate(zip(accumulate(LR[i]), [0] + LR[i + 1])): -        LR[i][j] = acc + pre +    acc = accumulate(LR[i]) +    next(acc) +    for j in range(1, N - i): +        LR[i][j] = next(acc) + LR[i + 1][j - 1]