import sys

input = sys.stdin.readline



N, M, Q = [int(x) for x in input().split()]

L = [0] * M

R = [0] * M

p = [0] * Q

q = [0] * Q

for i in range(M):

    L[i], R[i] = [int(x) for x in input().split()]

for j in range(Q):

    p[j], q[j] = [int(x) for x in input().split()]



train = [[0 for i in range(N + 1)] for _ in range(N + 2)]



for i in range(M): # すべての列車について

    train[L[i]][R[i]] += 1



for col in range(1, N + 1):

    for row in range(col, 0, -1):

        train[row][col] += train[row][col - 1] + train[row + 1][col] - train[row + 1][col - 1]



for j in range(Q):

    print((train[p[j]][q[j]]))

# 20-08-06再トライ

import sys

input = sys.stdin.readline

from itertools import accumulate



N, M, Q = [int(x) for x in input().split()]

train = [[0 for _ in range(N + 1)] for _ in range(N + 1)]

for i in range(M):

    L, R = [int(x) for x in input().split()]

    train[L][R] += 1



cum = [list(accumulate(train[i])) for i in range(N + 1)]

del train

cum = list(zip(*cum))

cum = [list(accumulate(cum[j])) for j in range(N + 1)]



for _ in range(Q):

    p, q = [int(x) for x in input().split()]

    print((cum[q][N] - cum[q][p - 1]))
import sys

input = sys.stdin.readline
N, M, Q = [int(x) for x in input().split()]
L = [0] * M
R = [0] * M
p = [0] * Q
q = [0] * Q
for i in range(M):
    L[i], R[i] = [int(x) for x in input().split()]
for j in range(Q):
    p[j], q[j] = [int(x) for x in input().split()]
train = [[0 for i in range(N + 1)] for _ in range(N + 2)]
for i in range(M):  # すべての列車について
    train[L[i]][R[i]] += 1
for col in range(1, N + 1):
    for row in range(col, 0, -1):
        train[row][col] += (
            train[row][col - 1] + train[row + 1][col] - train[row + 1][col - 1]
        )
for j in range(Q):
    print((train[p[j]][q[j]]))

# 20-08-06再トライ
import sys

input = sys.stdin.readline
from itertools import accumulate

N, M, Q = [int(x) for x in input().split()]
train = [[0 for _ in range(N + 1)] for _ in range(N + 1)]
for i in range(M):
    L, R = [int(x) for x in input().split()]
    train[L][R] += 1
cum = [list(accumulate(train[i])) for i in range(N + 1)]
del train
cum = list(zip(*cum))
cum = [list(accumulate(cum[j])) for j in range(N + 1)]
for _ in range(Q):
    p, q = [int(x) for x in input().split()]
    print((cum[q][N] - cum[q][p - 1]))

+# 20-08-06再トライ +from itertools import accumulate + -L = [0] * M -R = [0] * M -p = [0] * Q -q = [0] * Q +train = [[0 for _ in range(N + 1)] for _ in range(N + 1)] -    L[i], R[i] = [int(x) for x in input().split()] -for j in range(Q): -    p[j], q[j] = [int(x) for x in input().split()] -train = [[0 for i in range(N + 1)] for _ in range(N + 2)] -for i in range(M):  # すべての列車について -    train[L[i]][R[i]] += 1 -for col in range(1, N + 1): -    for row in range(col, 0, -1): -        train[row][col] += ( -            train[row][col - 1] + train[row + 1][col] - train[row + 1][col - 1] -        ) -for j in range(Q): -    print((train[p[j]][q[j]])) +    L, R = [int(x) for x in input().split()] +    train[L][R] += 1 +cum = [list(accumulate(train[i])) for i in range(N + 1)] +del train +cum = list(zip(*cum)) +cum = [list(accumulate(cum[j])) for j in range(N + 1)] +for _ in range(Q): +    p, q = [int(x) for x in input().split()] +    print((cum[q][N] - cum[q][p - 1]))