N, M, Q = [int(_) for _ in input().split()]

LR = [[int(_) for _ in input().split()] for _ in range(M)]

PQ = [[int(_) for _ in input().split()] for _ in range(Q)]



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

for lr in LR:

    cumsum[lr[0]][lr[0]] += 1

    if lr[1] < N:

        cumsum[lr[0]][lr[1]+1] -= 1

for i in range(N+1):

    for j in range(i, N):

        cumsum[i][j+1] += cumsum[i][j]

for pq in PQ:

    print((sum([cumsum[i][i]-cumsum[i][pq[1]+1]

               for i in range(pq[0], pq[1]+1)])))

N, M, Q = [int(_) for _ in input().split()]

LR = [[int(_) for _ in input().split()] for _ in range(M)]

PQ = [[int(_) for _ in input().split()] for _ in range(Q)]

cumsum = [[0] * (N + 2) for _ in range(N + 2)]

for l, r in LR:

    cumsum[l][r + 1] += 1

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

    for j in range(1, N + 2):

        cumsum[i][j] += cumsum[i][j - 1]

for j in range(1, N + 2):

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

        cumsum[i][j] += cumsum[i - 1][j]

for p, q in PQ:

    print((cumsum[q][q + 1] - cumsum[p - 1][q + 1]))

N, M, Q = [int(_) for _ in input().split()]
LR = [[int(_) for _ in input().split()] for _ in range(M)]
PQ = [[int(_) for _ in input().split()] for _ in range(Q)]
cumsum = [[0] * (N + 2) for _ in range(N + 1)]
for lr in LR:
    cumsum[lr[0]][lr[0]] += 1
    if lr[1] < N:
        cumsum[lr[0]][lr[1] + 1] -= 1
for i in range(N + 1):
    for j in range(i, N):
        cumsum[i][j + 1] += cumsum[i][j]
for pq in PQ:
    print((sum([cumsum[i][i] - cumsum[i][pq[1] + 1] for i in range(pq[0], pq[1] + 1)])))

N, M, Q = [int(_) for _ in input().split()]
LR = [[int(_) for _ in input().split()] for _ in range(M)]
PQ = [[int(_) for _ in input().split()] for _ in range(Q)]
cumsum = [[0] * (N + 2) for _ in range(N + 2)]
for l, r in LR:
    cumsum[l][r + 1] += 1
for i in range(1, N + 2):
    for j in range(1, N + 2):
        cumsum[i][j] += cumsum[i][j - 1]
for j in range(1, N + 2):
    for i in range(1, N + 2):
        cumsum[i][j] += cumsum[i - 1][j]
for p, q in PQ:
    print((cumsum[q][q + 1] - cumsum[p - 1][q + 1]))

-cumsum = [[0] * (N + 2) for _ in range(N + 1)] -for lr in LR: -    cumsum[lr[0]][lr[0]] += 1 -    if lr[1] < N: -        cumsum[lr[0]][lr[1] + 1] -= 1 -for i in range(N + 1): -    for j in range(i, N): -        cumsum[i][j + 1] += cumsum[i][j] -for pq in PQ: -    print((sum([cumsum[i][i] - cumsum[i][pq[1] + 1] for i in range(pq[0], pq[1] + 1)]))) +cumsum = [[0] * (N + 2) for _ in range(N + 2)] +for l, r in LR: +    cumsum[l][r + 1] += 1 +for i in range(1, N + 2): +    for j in range(1, N + 2): +        cumsum[i][j] += cumsum[i][j - 1] +for j in range(1, N + 2): +    for i in range(1, N + 2): +        cumsum[i][j] += cumsum[i - 1][j] +for p, q in PQ: +    print((cumsum[q][q + 1] - cumsum[p - 1][q + 1]))