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



train = [[0 for i in range(N)] for j in range(N)]

for m in range(M):

    L,R = list(map(int,input().split()))

    train[L-1][R-1] += 1



c = [[0 for i in range(N)] for j in range(N)]

for i in range(N):

    cnt = 0

    for j in range(N):

        cnt += train[i][j]

        c[i][j] = cnt



for x in range(Q):

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

    p -= 1

    q -= 1

    cnt2 = 0

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

        if p == 0:

            cnt2 += c[i][q]

        else:

            cnt2 += c[i][q] - c[i][p-1]

    print(cnt2)



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



train = [[0 for i in range(N+1)] for j in range(N+1)]

for m in range(M):

    L,R = list(map(int,input().split()))

    train[L][R] += 1



c = [[0 for i in range(N+1)] for j in range(N+1)]

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

    cnt = 0

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

        c[i][j] = train[i][j] + c[i-1][j] + c[i][j-1] - c[i-1][j-1]



for x in range(Q):

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

    print((c[q][q]-c[q][p-1]-c[p-1][q]+c[p-1][p-1]))
N, M, Q = list(map(int, input().split()))
train = [[0 for i in range(N)] for j in range(N)]
for m in range(M):
    L, R = list(map(int, input().split()))
    train[L - 1][R - 1] += 1
c = [[0 for i in range(N)] for j in range(N)]
for i in range(N):
    cnt = 0
    for j in range(N):
        cnt += train[i][j]
        c[i][j] = cnt
for x in range(Q):
    p, q = list(map(int, input().split()))
    p -= 1
    q -= 1
    cnt2 = 0
    for i in range(p, q + 1):
        if p == 0:
            cnt2 += c[i][q]
        else:
            cnt2 += c[i][q] - c[i][p - 1]
    print(cnt2)

N, M, Q = list(map(int, input().split()))
train = [[0 for i in range(N + 1)] for j in range(N + 1)]
for m in range(M):
    L, R = list(map(int, input().split()))
    train[L][R] += 1
c = [[0 for i in range(N + 1)] for j in range(N + 1)]
for i in range(1, N + 1):
    cnt = 0
    for j in range(1, N + 1):
        c[i][j] = train[i][j] + c[i - 1][j] + c[i][j - 1] - c[i - 1][j - 1]
for x in range(Q):
    p, q = list(map(int, input().split()))
    print((c[q][q] - c[q][p - 1] - c[p - 1][q] + c[p - 1][p - 1]))

-train = [[0 for i in range(N)] for j in range(N)] +train = [[0 for i in range(N + 1)] for j in range(N + 1)] -    train[L - 1][R - 1] += 1 -c = [[0 for i in range(N)] for j in range(N)] -for i in range(N): +    train[L][R] += 1 +c = [[0 for i in range(N + 1)] for j in range(N + 1)] +for i in range(1, N + 1): -    for j in range(N): -        cnt += train[i][j] -        c[i][j] = cnt +    for j in range(1, N + 1): +        c[i][j] = train[i][j] + c[i - 1][j] + c[i][j - 1] - c[i - 1][j - 1] -    p -= 1 -    q -= 1 -    cnt2 = 0 -    for i in range(p, q + 1): -        if p == 0: -            cnt2 += c[i][q] -        else: -            cnt2 += c[i][q] - c[i][p - 1] -    print(cnt2) +    print((c[q][q] - c[q][p - 1] - c[p - 1][q] + c[p - 1][p - 1]))