import itertools

import sys



input = sys.stdin.readline



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

ls = [[0] * n for _ in range(n)]

for _ in range(m):

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

    ls[l - 1][r - l] += 1

for i in range(n):

    ls[i] = list(itertools.accumulate(ls[i]))

for _ in range(q):

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

    l -= 1

    r -= 1

    res = 0

    for i in range(r - l + 1):

        res += ls[l + i][r - l - i]

    print(res)
import sys



input = sys.stdin.readline



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

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

for _ in range(m):

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

    ls[l][r] += 1

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

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

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

for _ in range(q):

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

    print((ls[r][r] - ls[l - 1][r] - ls[r][l - 1] + ls[l - 1][l - 1]))
import itertools
import sys

input = sys.stdin.readline
n, m, q = list(map(int, input().split()))
ls = [[0] * n for _ in range(n)]
for _ in range(m):
    l, r = list(map(int, input().split()))
    ls[l - 1][r - l] += 1
for i in range(n):
    ls[i] = list(itertools.accumulate(ls[i]))
for _ in range(q):
    l, r = list(map(int, input().split()))
    l -= 1
    r -= 1
    res = 0
    for i in range(r - l + 1):
        res += ls[l + i][r - l - i]
    print(res)

import sys

input = sys.stdin.readline
n, m, q = list(map(int, input().split()))
ls = [[0] * (n + 1) for _ in range(n + 1)]
for _ in range(m):
    l, r = list(map(int, input().split()))
    ls[l][r] += 1
for i in range(1, n + 1):
    for j in range(1, n + 1):
        ls[i][j] += ls[i - 1][j] + ls[i][j - 1] - ls[i - 1][j - 1]
for _ in range(q):
    l, r = list(map(int, input().split()))
    print((ls[r][r] - ls[l - 1][r] - ls[r][l - 1] + ls[l - 1][l - 1]))

-import itertools -ls = [[0] * n for _ in range(n)] +ls = [[0] * (n + 1) for _ in range(n + 1)] -    ls[l - 1][r - l] += 1 -for i in range(n): -    ls[i] = list(itertools.accumulate(ls[i])) +    ls[l][r] += 1 +for i in range(1, n + 1): +    for j in range(1, n + 1): +        ls[i][j] += ls[i - 1][j] + ls[i][j - 1] - ls[i - 1][j - 1] -    l -= 1 -    r -= 1 -    res = 0 -    for i in range(r - l + 1): -        res += ls[l + i][r - l - i] -    print(res) +    print((ls[r][r] - ls[l - 1][r] - ls[r][l - 1] + ls[l - 1][l - 1]))