N,M,Q = 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)]

ans = []

for p,q in pq:

    ans.append(num[p-1][q-1])

print(*ans,sep='\n')

import sys

def input(): return sys.stdin.readline().strip()

N,M,Q = 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)]

ans = []

for p,q in pq:

    ans.append(num[p-1][q-1])

print(*ans,sep='\n')

N, M, Q = 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)]
ans = []
for p, q in pq:
    ans.append(num[p - 1][q - 1])
print(*ans, sep="\n")

import sys


def input():
    return sys.stdin.readline().strip()


N, M, Q = 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)]
ans = []
for p, q in pq:
    ans.append(num[p - 1][q - 1])
print(*ans, sep="\n")

+import sys + + +def input(): +    return sys.stdin.readline().strip() + +