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

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

for _ in range(M):

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

    L -= 1; R -= 1

    dp1[L][R] += 1



for i in range(N):

    for j in range(N - 1):

        dp1[i][j + 1] += dp1[i][j]



for k in range(Q):

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

    ans = 0; p -= 1; q -= 1

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

        ans += dp1[i][q]

    print(ans)

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

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

for _ in range(M):

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

    dp[L][R] += 1



for i in range(N + 1):

    for j in range(N):

        dp[i][j + 1] += dp[i][j]

for j in range(N + 1):

    for i in range(N):

        dp[i + 1][j] += dp[i][j]

for k in range(Q):

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

    print((dp[q][q] - dp[p - 1][q]))

N, M, Q = list(map(int, input().split()))
dp1 = [[0] * N for _ in range(N)]
for _ in range(M):
    L, R = list(map(int, input().split()))
    L -= 1
    R -= 1
    dp1[L][R] += 1
for i in range(N):
    for j in range(N - 1):
        dp1[i][j + 1] += dp1[i][j]
for k in range(Q):
    p, q = list(map(int, input().split()))
    ans = 0
    p -= 1
    q -= 1
    for i in range(p, q + 1):
        ans += dp1[i][q]
    print(ans)

N, M, Q = list(map(int, input().split()))
dp = [[0] * (N + 1) for _ in range(N + 1)]
for _ in range(M):
    L, R = list(map(int, input().split()))
    dp[L][R] += 1
for i in range(N + 1):
    for j in range(N):
        dp[i][j + 1] += dp[i][j]
for j in range(N + 1):
    for i in range(N):
        dp[i + 1][j] += dp[i][j]
for k in range(Q):
    p, q = list(map(int, input().split()))
    print((dp[q][q] - dp[p - 1][q]))

-dp1 = [[0] * N for _ in range(N)] +dp = [[0] * (N + 1) for _ in range(N + 1)] -    L -= 1 -    R -= 1 -    dp1[L][R] += 1 -for i in range(N): -    for j in range(N - 1): -        dp1[i][j + 1] += dp1[i][j] +    dp[L][R] += 1 +for i in range(N + 1): +    for j in range(N): +        dp[i][j + 1] += dp[i][j] +for j in range(N + 1): +    for i in range(N): +        dp[i + 1][j] += dp[i][j] -    ans = 0 -    p -= 1 -    q -= 1 -    for i in range(p, q + 1): -        ans += dp1[i][q] -    print(ans) +    print((dp[q][q] - dp[p - 1][q]))