import sys

input=sys.stdin.readline

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

num=[[0]*(n+1) for _ in range(n+1)]

for i in range(m):

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

	num[l][r]+=1

for i in range(n):

	for j in range(n):

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

for i in range(q):

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

	ans=0

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

		ans+=num[i][q]-num[i][p-1]

	print(ans)





import sys

input=sys.stdin.readline

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

num=[[0]*(n+1) for _ in range(n+1)]

for i in range(m):

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

	num[l][r]+=1

for i in range(n):

	for j in range(n):

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

for i in range(n):

	for j in range(n):

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

for i in range(q):

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

	ans=num[q][q]+num[p-1][p-1]-num[p-1][q]-num[q][p-1]

	print(ans)





import sys

input = sys.stdin.readline
n, m, q = list(map(int, input().split()))
num = [[0] * (n + 1) for _ in range(n + 1)]
for i in range(m):
    l, r = list(map(int, input().split()))
    num[l][r] += 1
for i in range(n):
    for j in range(n):
        num[i + 1][j + 1] += num[i + 1][j]
for i in range(q):
    p, q = list(map(int, input().split()))
    ans = 0
    for i in range(p, q + 1):
        ans += num[i][q] - num[i][p - 1]
    print(ans)

import sys

input = sys.stdin.readline
n, m, q = list(map(int, input().split()))
num = [[0] * (n + 1) for _ in range(n + 1)]
for i in range(m):
    l, r = list(map(int, input().split()))
    num[l][r] += 1
for i in range(n):
    for j in range(n):
        num[i + 1][j + 1] += num[i + 1][j]
for i in range(n):
    for j in range(n):
        num[i + 1][j + 1] += num[i][j + 1]
for i in range(q):
    p, q = list(map(int, input().split()))
    ans = num[q][q] + num[p - 1][p - 1] - num[p - 1][q] - num[q][p - 1]
    print(ans)

+for i in range(n): +    for j in range(n): +        num[i + 1][j + 1] += num[i][j + 1] -    ans = 0 -    for i in range(p, q + 1): -        ans += num[i][q] - num[i][p - 1] +    ans = num[q][q] + num[p - 1][p - 1] - num[p - 1][q] - num[q][p - 1]