import numpy as np

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

lis = np.zeros((N,N))

for i in range(M):

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

    lis[N-L,R-1] += 1

#二次元累積和

np.cumsum(lis,axis=0,out=lis)

np.cumsum(lis,axis=1,out=lis)

for _ in range(Q):

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

    print((int(lis[N-p,q-1])))

import numpy as np

import sys

input = sys.stdin.readline



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

lis = np.zeros((N,N))

for i in range(M):

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

    lis[N-L,R-1] += 1

#二次元累積和

np.cumsum(lis,axis=0,out=lis)

np.cumsum(lis,axis=1,out=lis)

for _ in range(Q):

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

    print((int(lis[N-p,q-1])))

import numpy as np

N, M, Q = list(map(int, input().split()))
lis = np.zeros((N, N))
for i in range(M):
    L, R = list(map(int, input().split()))
    lis[N - L, R - 1] += 1
# 二次元累積和
np.cumsum(lis, axis=0, out=lis)
np.cumsum(lis, axis=1, out=lis)
for _ in range(Q):
    p, q = list(map(int, input().split()))
    print((int(lis[N - p, q - 1])))

import numpy as np
import sys

input = sys.stdin.readline
N, M, Q = list(map(int, input().split()))
lis = np.zeros((N, N))
for i in range(M):
    L, R = list(map(int, input().split()))
    lis[N - L, R - 1] += 1
# 二次元累積和
np.cumsum(lis, axis=0, out=lis)
np.cumsum(lis, axis=1, out=lis)
for _ in range(Q):
    p, q = list(map(int, input().split()))
    print((int(lis[N - p, q - 1])))

+import sys +input = sys.stdin.readline