import numpy as np

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

table = np.zeros((N, N), np.int64)

for _ in range(M):

    L, R = [int(n) - 1 for n in input().split()]

    table[L][R] += 1

table = np.rot90(np.rot90(table, k=-1).cumsum(axis=0).cumsum(axis=1), k=1).tolist()

for _ in range(Q):

    p, q = [int(n) - 1 for n in input().split()]

    print((table[p][q]))
import numpy as np

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

table = [[0] * N for _ in range(N)]

for _ in range(M):

    L, R = [int(n) - 1 for n in input().split()]

    table[L][R] += 1

table = np.rot90(np.rot90(table, k=-1).cumsum(axis=0).cumsum(axis=1), k=1).tolist()

for _ in range(Q):

    p, q = [int(n) - 1 for n in input().split()]

    print((table[p][q]))
import numpy as np

N, M, Q = list(map(int, input().split()))
table = np.zeros((N, N), np.int64)
for _ in range(M):
    L, R = [int(n) - 1 for n in input().split()]
    table[L][R] += 1
table = np.rot90(np.rot90(table, k=-1).cumsum(axis=0).cumsum(axis=1), k=1).tolist()
for _ in range(Q):
    p, q = [int(n) - 1 for n in input().split()]
    print((table[p][q]))

import numpy as np

N, M, Q = list(map(int, input().split()))
table = [[0] * N for _ in range(N)]
for _ in range(M):
    L, R = [int(n) - 1 for n in input().split()]
    table[L][R] += 1
table = np.rot90(np.rot90(table, k=-1).cumsum(axis=0).cumsum(axis=1), k=1).tolist()
for _ in range(Q):
    p, q = [int(n) - 1 for n in input().split()]
    print((table[p][q]))

-table = np.zeros((N, N), np.int64) +table = [[0] * N for _ in range(N)]