n, m, q = list(map(int, input().split()))

cities = [[0] * (n + 1) for _ in range(n + 1)]

trains = [[0] * (n + 1) for _ in range(n + 1)]

for _ in range(m):

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

    trains[l][r] += 1



for i in range(n):

    for j in range(n):

        cities[i + 1][j + 1] = cities[i + 1][j] + trains[i + 1][j + 1]

for _ in range(q):

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

    ans = 0

    for i in range(p, q + 1):

        ans += cities[i][q] - cities[i][p - 1]

    print(ans)

n, m, q = list(map(int, input().split()))

trains = [[0] * (n + 1) for _ in range(n + 1)]

for _ in range(m):

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

    trains[l][r] += 1



for i in range(n):

    for j in range(n):

        trains[i][j + 1] += trains[i][j]

for i in range(n):

    for j in range(n):

        trains[i + 1][j + 1] += trains[i][j + 1]



for _ in range(q):

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

    ans = trains[q][q] - trains[q][p - 1] - trains[p - 1][q] + trains[p - 1][p - 1]

    print(ans)

n, m, q = list(map(int, input().split()))
cities = [[0] * (n + 1) for _ in range(n + 1)]
trains = [[0] * (n + 1) for _ in range(n + 1)]
for _ in range(m):
    l, r = list(map(int, input().split()))
    trains[l][r] += 1
for i in range(n):
    for j in range(n):
        cities[i + 1][j + 1] = cities[i + 1][j] + trains[i + 1][j + 1]
for _ in range(q):
    p, q = list(map(int, input().split()))
    ans = 0
    for i in range(p, q + 1):
        ans += cities[i][q] - cities[i][p - 1]
    print(ans)

n, m, q = list(map(int, input().split()))
trains = [[0] * (n + 1) for _ in range(n + 1)]
for _ in range(m):
    l, r = list(map(int, input().split()))
    trains[l][r] += 1
for i in range(n):
    for j in range(n):
        trains[i][j + 1] += trains[i][j]
for i in range(n):
    for j in range(n):
        trains[i + 1][j + 1] += trains[i][j + 1]
for _ in range(q):
    p, q = list(map(int, input().split()))
    ans = trains[q][q] - trains[q][p - 1] - trains[p - 1][q] + trains[p - 1][p - 1]
    print(ans)

-cities = [[0] * (n + 1) for _ in range(n + 1)] -        cities[i + 1][j + 1] = cities[i + 1][j] + trains[i + 1][j + 1] +        trains[i][j + 1] += trains[i][j] +for i in range(n): +    for j in range(n): +        trains[i + 1][j + 1] += trains[i][j + 1] -    ans = 0 -    for i in range(p, q + 1): -        ans += cities[i][q] - cities[i][p - 1] +    ans = trains[q][q] - trains[q][p - 1] - trains[p - 1][q] + trains[p - 1][p - 1]