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

stdin = sys.stdin.readlines()

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

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

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

  L, R = list(map(int, line.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]



sys.stdout.write("\n".join(map(str, 

  (LR[p-1][q-p] for p,q in (list(map(int, line.split())) for line in stdin[M+1:]))

)))

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

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

-N, M, Q = list(map(int, sys.stdin.readline().split())) +stdin = sys.stdin.readlines() +N, M, Q = list(map(int, stdin[0].split())) -for i in range(M): -    L, R = list(map(int, sys.stdin.readline().split())) +for line in stdin[1 : M + 1]: +    L, R = list(map(int, line.split())) -for i in range(Q): -    p, q = list(map(int, sys.stdin.readline().split())) -    sys.stdout.write(str(LR[p - 1][q - p]) + "\n") +sys.stdout.write( +    "\n".join( +        map( +            str, +            ( +                LR[p - 1][q - p] +                for p, q in (list(map(int, line.split())) for line in stdin[M + 1 :]) +            ), +        ) +    ) +)