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



coordinate = [[0] * N for _ in range(N)]

for _ in range(M):

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

    l, r = l - 1, r - 1

    coordinate[l][r] += 1



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

for i in range(N):

    for j in range(N):

        acc[i + 1][j + 1] = acc[i][j + 1] + acc[i + 1][j] - acc[i][j] + coordinate[i][j]



for _ in range(Q):

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

    p, q = p - 1, q - 1

    ans = acc[N][q + 1] - acc[p][q + 1]

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

LR = [list(map(int, input().split())) for i in range(M)]

PQ = [list(map(int, input().split())) for i in range(Q)]



acc = [[0 for i in range(N+1)] for i in range(N+1)]  # acc[i][j] = i以下からスタートしてj以下で終了する電車の数

coordinate = [[0 for i in range(N)] for i in range(N)]

for l, r in LR:

    l -= 1

    r -= 1

    coordinate[l][r] += 1



for i in range(N):

    for j in range(N):

        acc[i+1][j+1] = acc[i][j+1] + acc[i+1][j] - acc[i][j] + coordinate[i][j]



for p, q in PQ:

    p -= 1

    ans = acc[N][q] - acc[p][q]

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

N, M, Q = list(map(int, input().split()))
LR = [list(map(int, input().split())) for i in range(M)]
PQ = [list(map(int, input().split())) for i in range(Q)]
acc = [
    [0 for i in range(N + 1)] for i in range(N + 1)
]  # acc[i][j] = i以下からスタートしてj以下で終了する電車の数
coordinate = [[0 for i in range(N)] for i in range(N)]
for l, r in LR:
    l -= 1
    r -= 1
    coordinate[l][r] += 1
for i in range(N):
    for j in range(N):
        acc[i + 1][j + 1] = acc[i][j + 1] + acc[i + 1][j] - acc[i][j] + coordinate[i][j]
for p, q in PQ:
    p -= 1
    ans = acc[N][q] - acc[p][q]
    print(ans)

-coordinate = [[0] * N for _ in range(N)] -for _ in range(M): -    l, r = list(map(int, input().split())) -    l, r = l - 1, r - 1 +LR = [list(map(int, input().split())) for i in range(M)] +PQ = [list(map(int, input().split())) for i in range(Q)] +acc = [ +    [0 for i in range(N + 1)] for i in range(N + 1) +]  # acc[i][j] = i以下からスタートしてj以下で終了する電車の数 +coordinate = [[0 for i in range(N)] for i in range(N)] +for l, r in LR: +    l -= 1 +    r -= 1 -acc = [[0] * (N + 1) for _ in range(N + 1)] -for _ in range(Q): -    p, q = list(map(int, input().split())) -    p, q = p - 1, q - 1 -    ans = acc[N][q + 1] - acc[p][q + 1] +for p, q in PQ: +    p -= 1 +    ans = acc[N][q] - acc[p][q]