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

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

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

for l,r in lr:

    num[l-1][r-1] += 1



for j in range(N):

    for i in range(N-1,0,-1):

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

for i in range(N):

    for j in range(N-1):

        num[i][j+1] += num[i][j]

for i in range(Q):

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

    print((num[p-1][q-1]))
N,M,Q = list(map(int,input().split()))

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

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

for l,r in lr:

    num[l-1][r-1] += 1



for j in range(N):

    for i in range(N-1,0,-1):

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

for i in range(N):

    for j in range(N-1):

        num[i][j+1] += num[i][j]

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

for p,q in pq:

    print((num[p-1][q-1]))

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

N, M, Q = list(map(int, input().split()))
num = [[0 for i in range(N)] for j in range(N)]
lr = [list(map(int, input().split())) for i in range(M)]
for l, r in lr:
    num[l - 1][r - 1] += 1
for j in range(N):
    for i in range(N - 1, 0, -1):
        num[i - 1][j] += num[i][j]
for i in range(N):
    for j in range(N - 1):
        num[i][j + 1] += num[i][j]
pq = [list(map(int, input().split())) for i in range(Q)]
for p, q in pq:
    print((num[p - 1][q - 1]))

-for i in range(Q): -    p, q = list(map(int, input().split())) +pq = [list(map(int, input().split())) for i in range(Q)] +for p, q in pq: