import numpy as np

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

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

for _ in range(m):

    L, R = list(map(int, input().split()))

    cnt[L][R] += 1



S = np.cumsum(cnt, axis=0).cumsum(axis=1)



for _ in range(q):

    L, R = list(map(int, input().split()))

    ans = S[R][R]-S[R][L-1]-S[L-1][R]+S[L-1][L-1]

    print(ans)

import numpy as np

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

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

for _ in range(m):

    L, R = list(map(int, input().split()))

    cnt[L][R] += 1



S = np.cumsum(cnt, axis=0).cumsum(axis=1).tolist()



for _ in range(q):

    L, R = list(map(int, input().split()))

    ans = S[R][R]-S[R][L-1]-S[L-1][R]+S[L-1][L-1]

    print(ans)
import numpy as np

n, m, q = list(map(int, input().split()))
cnt = [[0] * (n + 1) for _ in range(n + 1)]
for _ in range(m):
    L, R = list(map(int, input().split()))
    cnt[L][R] += 1
S = np.cumsum(cnt, axis=0).cumsum(axis=1)
for _ in range(q):
    L, R = list(map(int, input().split()))
    ans = S[R][R] - S[R][L - 1] - S[L - 1][R] + S[L - 1][L - 1]
    print(ans)

import numpy as np

n, m, q = list(map(int, input().split()))
cnt = [[0] * (n + 1) for _ in range(n + 1)]
for _ in range(m):
    L, R = list(map(int, input().split()))
    cnt[L][R] += 1
S = np.cumsum(cnt, axis=0).cumsum(axis=1).tolist()
for _ in range(q):
    L, R = list(map(int, input().split()))
    ans = S[R][R] - S[R][L - 1] - S[L - 1][R] + S[L - 1][L - 1]
    print(ans)

-S = np.cumsum(cnt, axis=0).cumsum(axis=1) +S = np.cumsum(cnt, axis=0).cumsum(axis=1).tolist()