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

lr = [[0 for i in range(n+1)] for j in range(n+1)]

for i in range(m):

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

    lr[l][r] += 1



# 二次元累積和(indexに注意)

s = [[0 for i in range(n+1)] for j in range(n+1)]

# s[x][y]:=[0,x-1]×[0,y-1]の長方形区間の総和

for i in range(n):

    for j in range(n):

        s[i+1][j+1] = s[i+1][j] + s[i][j+1] -s[i][j] + lr[i+1][j+1]



for i in range(Q):

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

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

    print(ans)



# 72
import sys 

input = sys.stdin.readline



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

lr = [[0 for i in range(n+1)] for j in range(n+1)]

for i in range(m):

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

    lr[l][r] += 1



# 二次元累積和(indexに注意)

s = [[0 for i in range(n+1)] for j in range(n+1)]

# s[x][y]:=[0,x-1]×[0,y-1]の長方形区間の総和

for i in range(n):

    for j in range(n):

        s[i+1][j+1] = s[i+1][j] + s[i][j+1] -s[i][j] + lr[i+1][j+1]



for i in range(Q):

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

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

    print(ans)



# 72

n, m, Q = list(map(int, input().split()))
lr = [[0 for i in range(n + 1)] for j in range(n + 1)]
for i in range(m):
    l, r = list(map(int, input().split()))
    lr[l][r] += 1
# 二次元累積和(indexに注意)
s = [[0 for i in range(n + 1)] for j in range(n + 1)]
# s[x][y]:=[0,x-1]×[0,y-1]の長方形区間の総和
for i in range(n):
    for j in range(n):
        s[i + 1][j + 1] = s[i + 1][j] + s[i][j + 1] - s[i][j] + lr[i + 1][j + 1]
for i in range(Q):
    p, q = list(map(int, input().split()))
    ans = s[q][q] - s[q][p - 1] - s[p - 1][q] + s[p - 1][p - 1]
    print(ans)
# 72

import sys

input = sys.stdin.readline
n, m, Q = list(map(int, input().split()))
lr = [[0 for i in range(n + 1)] for j in range(n + 1)]
for i in range(m):
    l, r = list(map(int, input().split()))
    lr[l][r] += 1
# 二次元累積和(indexに注意)
s = [[0 for i in range(n + 1)] for j in range(n + 1)]
# s[x][y]:=[0,x-1]×[0,y-1]の長方形区間の総和
for i in range(n):
    for j in range(n):
        s[i + 1][j + 1] = s[i + 1][j] + s[i][j + 1] - s[i][j] + lr[i + 1][j + 1]
for i in range(Q):
    p, q = list(map(int, input().split()))
    ans = s[q][q] - s[q][p - 1] - s[p - 1][q] + s[p - 1][p - 1]
    print(ans)
# 72

+import sys + +input = sys.stdin.readline