import numpy as np

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

train = np.zeros((n, n), dtype=int)

for _ in range(m):

    l, r = map(int, input().split())

    l -= 1

    r -= 1

    train[l][r] += 1



# 累積和

for i in range(n):

    np.add.accumulate(train[i], out=train[i])

np.add.accumulate(train, out=train)



ans = []

for _ in range(q):

    x, y = map(int, input().split())

    x -= 1

    y -= 1

    a = train[y][y]

    if x != 0:

        a -= train[x-1][y]

    ans.append(a)



print(*ans, sep="\n")

import numpy as np

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

train = np.zeros((n, n), dtype=int)

for _ in range(m):

    l, r = map(int, input().split())

    l -= 1

    r -= 1

    train[l][r] += 1



# 累積和

for i in range(n):

    np.add.accumulate(train[i], out=train[i])

np.add.accumulate(train, out=train)

train=train.tolist()



ans = []

for _ in range(q):

    x, y = map(int, input().split())

    x -= 1

    y -= 1

    a = train[y][y]

    if x != 0:

        a -= train[x-1][y]

    ans.append(a)



print(*ans, sep="\n")

import numpy as np

n, m, q = map(int, input().split())
train = np.zeros((n, n), dtype=int)
for _ in range(m):
    l, r = map(int, input().split())
    l -= 1
    r -= 1
    train[l][r] += 1
# 累積和
for i in range(n):
    np.add.accumulate(train[i], out=train[i])
np.add.accumulate(train, out=train)
ans = []
for _ in range(q):
    x, y = map(int, input().split())
    x -= 1
    y -= 1
    a = train[y][y]
    if x != 0:
        a -= train[x - 1][y]
    ans.append(a)
print(*ans, sep="\n")

import numpy as np

n, m, q = map(int, input().split())
train = np.zeros((n, n), dtype=int)
for _ in range(m):
    l, r = map(int, input().split())
    l -= 1
    r -= 1
    train[l][r] += 1
# 累積和
for i in range(n):
    np.add.accumulate(train[i], out=train[i])
np.add.accumulate(train, out=train)
train = train.tolist()
ans = []
for _ in range(q):
    x, y = map(int, input().split())
    x -= 1
    y -= 1
    a = train[y][y]
    if x != 0:
        a -= train[x - 1][y]
    ans.append(a)
print(*ans, sep="\n")

+train = train.tolist()