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

p = []

q = []

x = [[0] * (N+1) for i in range(N+1)]

c = [[0] * (N+1) for i in range(N+1)]



for i in range(M):

    l, r = [int(v) for v in input().split()]

    x[l][r] += 1

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

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

        c[i][j] = c[i][j-1] + x[i][j]

for i in range(Q):

    a, b = [int(v) for v in input().split()]

    p.append(a)

    q.append(b)



for i in range(Q):

    ans = 0

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

        ans += c[j][q[i]] - c[j][p[i]-1]

    print(ans)
N, M, Q = [int(v) for v in input().split()]

p = []

q = []

c = [[0] * (N+1) for i in range(N+1)]



for i in range(M):

    l, r = [int(v) for v in input().split()]

    c[l][r] += 1

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

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

        c[i][j] += c[i][j-1]

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

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

        c[i][j] += c[i-1][j]

for i in range(Q):

    a, b = [int(v) for v in input().split()]

    p.append(a)

    q.append(b)



for l, r in zip(p, q):

    ans = c[r][r] + c[l-1][l-1] - c[l-1][r] - c[r][l-1]

    print(ans)
N, M, Q = [int(v) for v in input().split()]
p = []
q = []
x = [[0] * (N + 1) for i in range(N + 1)]
c = [[0] * (N + 1) for i in range(N + 1)]
for i in range(M):
    l, r = [int(v) for v in input().split()]
    x[l][r] += 1
for i in range(1, N + 1):
    for j in range(1, N + 1):
        c[i][j] = c[i][j - 1] + x[i][j]
for i in range(Q):
    a, b = [int(v) for v in input().split()]
    p.append(a)
    q.append(b)
for i in range(Q):
    ans = 0
    for j in range(p[i], q[i] + 1):
        ans += c[j][q[i]] - c[j][p[i] - 1]
    print(ans)

N, M, Q = [int(v) for v in input().split()]
p = []
q = []
c = [[0] * (N + 1) for i in range(N + 1)]
for i in range(M):
    l, r = [int(v) for v in input().split()]
    c[l][r] += 1
for i in range(1, N + 1):
    for j in range(1, N + 1):
        c[i][j] += c[i][j - 1]
for i in range(1, N + 1):
    for j in range(1, N + 1):
        c[i][j] += c[i - 1][j]
for i in range(Q):
    a, b = [int(v) for v in input().split()]
    p.append(a)
    q.append(b)
for l, r in zip(p, q):
    ans = c[r][r] + c[l - 1][l - 1] - c[l - 1][r] - c[r][l - 1]
    print(ans)

-x = [[0] * (N + 1) for i in range(N + 1)] -    x[l][r] += 1 +    c[l][r] += 1 -        c[i][j] = c[i][j - 1] + x[i][j] +        c[i][j] += c[i][j - 1] +for i in range(1, N + 1): +    for j in range(1, N + 1): +        c[i][j] += c[i - 1][j] -for i in range(Q): -    ans = 0 -    for j in range(p[i], q[i] + 1): -        ans += c[j][q[i]] - c[j][p[i] - 1] +for l, r in zip(p, q): +    ans = c[r][r] + c[l - 1][l - 1] - c[l - 1][r] - c[r][l - 1]