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

import numpy as np

LR = [[0]*(N+1) for _ in range(N+1)]



for i in range(1, M+1):

    l, r = list(map(int, input().split()))

    LR[l][r] += 1

cLR = np.cumsum(np.cumsum(LR, axis=0), axis=1)



for _ in range(Q):

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

    ans = cLR[N][q] - cLR[p-1][q]

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

wa = [[0]*(N+1) for _ in range(N+1)]

import numpy as np



for _ in range(M):

    l, r = list(map(int, input().split()))

    wa[l][r] += 1



cwa = np.cumsum(np.cumsum(wa, axis=0), axis=1).tolist()

for i in range(Q):

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

    ans = cwa[N][q]-cwa[p-1][q]

    print(ans)

N, M, Q = list(map(int, input().split()))
import numpy as np

LR = [[0] * (N + 1) for _ in range(N + 1)]
for i in range(1, M + 1):
    l, r = list(map(int, input().split()))
    LR[l][r] += 1
cLR = np.cumsum(np.cumsum(LR, axis=0), axis=1)
for _ in range(Q):
    p, q = list(map(int, input().split()))
    ans = cLR[N][q] - cLR[p - 1][q]
    print(ans)

N, M, Q = list(map(int, input().split()))
wa = [[0] * (N + 1) for _ in range(N + 1)]
import numpy as np

for _ in range(M):
    l, r = list(map(int, input().split()))
    wa[l][r] += 1
cwa = np.cumsum(np.cumsum(wa, axis=0), axis=1).tolist()
for i in range(Q):
    p, q = list(map(int, input().split()))
    ans = cwa[N][q] - cwa[p - 1][q]
    print(ans)

+wa = [[0] * (N + 1) for _ in range(N + 1)] -LR = [[0] * (N + 1) for _ in range(N + 1)] -for i in range(1, M + 1): +for _ in range(M): -    LR[l][r] += 1 -cLR = np.cumsum(np.cumsum(LR, axis=0), axis=1) -for _ in range(Q): +    wa[l][r] += 1 +cwa = np.cumsum(np.cumsum(wa, axis=0), axis=1).tolist() +for i in range(Q): -    ans = cLR[N][q] - cLR[p - 1][q] +    ans = cwa[N][q] - cwa[p - 1][q]