n,m,q=list(map(int,input().split()))

d=[[0 for j in range(n)] for i in range(n)]

for i in range(m):

	l,r=[int(x)-1 for x in input().split()]

	d[l][r]+=1

for l in range(n):

	for r in range(1,n):

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

for l in range(n-1,0,-1):

	for r in range(n):

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

for i in range(q):

	l,r=[int(x)-1 for x in input().split()]

	print((d[l][r]))
n,m,q=list(map(int,input().split()))

d=[[0 for j in range(n)] for i in range(n)]

for i in range(m):

	l,r=list(map(int,input().split()))

	d[n-l][r-1]+=1

for l in range(n):

	for r in range(1,n):

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

for l in range(1,n):

	for r in range(n):

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

for i in range(q):

	l,r=list(map(int,input().split()))

	print((d[n-l][r-1]))
n, m, q = list(map(int, input().split()))
d = [[0 for j in range(n)] for i in range(n)]
for i in range(m):
    l, r = [int(x) - 1 for x in input().split()]
    d[l][r] += 1
for l in range(n):
    for r in range(1, n):
        d[l][r] += d[l][r - 1]
for l in range(n - 1, 0, -1):
    for r in range(n):
        d[l - 1][r] += d[l][r]
for i in range(q):
    l, r = [int(x) - 1 for x in input().split()]
    print((d[l][r]))

n, m, q = list(map(int, input().split()))
d = [[0 for j in range(n)] for i in range(n)]
for i in range(m):
    l, r = list(map(int, input().split()))
    d[n - l][r - 1] += 1
for l in range(n):
    for r in range(1, n):
        d[l][r] += d[l][r - 1]
for l in range(1, n):
    for r in range(n):
        d[l][r] += d[l - 1][r]
for i in range(q):
    l, r = list(map(int, input().split()))
    print((d[n - l][r - 1]))

-    l, r = [int(x) - 1 for x in input().split()] -    d[l][r] += 1 +    l, r = list(map(int, input().split())) +    d[n - l][r - 1] += 1 -for l in range(n - 1, 0, -1): +for l in range(1, n): -        d[l - 1][r] += d[l][r] +        d[l][r] += d[l - 1][r] -    l, r = [int(x) - 1 for x in input().split()] -    print((d[l][r])) +    l, r = list(map(int, input().split())) +    print((d[n - l][r - 1]))