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

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



for _ in range(M):

    left, right = list(map(int, input().split()))

    bord[left][right] += 1

# print(bord)

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

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

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

# print(bord)

for _ in range(Q):

    left, right = list(map(int, input().split()))

    cost = 0

    for i in range(left, right + 1):

        cost += bord[i][right] - bord[i][left - 1]

    print(cost)

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

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



for _ in range(M):

    left, right = list(map(int, input().split()))

    areas[left][right] += 1

# print(areas)

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

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

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

# print(areas)

for _ in range(Q):

    left, right = list(map(int, input().split()))

    cost = 0

    for i in range(left, right + 1):

        cost += areas[i][right] - areas[i][left - 1]

    print(cost)

N, M, Q = list(map(int, input().split()))
bord = [[0 for _ in range(N + 2)] for _ in range(N + 2)]
for _ in range(M):
    left, right = list(map(int, input().split()))
    bord[left][right] += 1
# print(bord)
for i in range(1, N + 2):
    for j in range(1, N + 2):
        bord[i][j] += bord[i][j - 1]
# print(bord)
for _ in range(Q):
    left, right = list(map(int, input().split()))
    cost = 0
    for i in range(left, right + 1):
        cost += bord[i][right] - bord[i][left - 1]
    print(cost)

N, M, Q = list(map(int, input().split()))
areas = [[0 for _ in range(N + 2)] for _ in range(N + 2)]
for _ in range(M):
    left, right = list(map(int, input().split()))
    areas[left][right] += 1
# print(areas)
for i in range(1, N + 2):
    for j in range(1, N + 2):
        areas[i][j] += areas[i][j - 1]
# print(areas)
for _ in range(Q):
    left, right = list(map(int, input().split()))
    cost = 0
    for i in range(left, right + 1):
        cost += areas[i][right] - areas[i][left - 1]
    print(cost)

-bord = [[0 for _ in range(N + 2)] for _ in range(N + 2)] +areas = [[0 for _ in range(N + 2)] for _ in range(N + 2)] -    bord[left][right] += 1 -# print(bord) +    areas[left][right] += 1 +# print(areas) -        bord[i][j] += bord[i][j - 1] -# print(bord) +        areas[i][j] += areas[i][j - 1] +# print(areas) -        cost += bord[i][right] - bord[i][left - 1] +        cost += areas[i][right] - areas[i][left - 1]