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





class CumSum2d(object):

    def __init__(self, H, W):

        self.H, self.W = H, W

        self.tiles = [[0] * W for _ in range(H)]



    def add(self, x, y, c=1):

        self.tiles[y][x] += c



    def build(self):

        for y in range(self.H):

            for x in range(1, self.W):

                self.tiles[y][x] += self.tiles[y][x - 1]

        for y in range(1, self.H):

            for x in range(self.W):

                self.tiles[y][x] += self.tiles[y - 1][x]



    def get(self, sx, sy, tx, ty):

        assert sx <= tx and sy <= ty

        cnt = self.tiles[ty][tx]

        if sx > 0:

            cnt -= self.tiles[ty][sx - 1]

        if sy > 0:

            cnt -= self.tiles[sy - 1][tx]

        if sx > 0 and sy > 0:

            cnt += self.tiles[sy - 1][sx - 1]

        return cnt





cs = CumSum2d(N, N)

for i in range(M):

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

    cs.add(l - 1, r - 1)

cs.build()



for _ in range(Q):

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

    ans = cs.get(p - 1, p - 1, q - 1, q - 1)

    print(ans)

import sys

input = sys.stdin.readline



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





class CumSum2d(object):

    def __init__(self, H, W):

        self.H, self.W = H, W

        self.tiles = [[0] * W for _ in range(H)]



    def add(self, x, y, c=1):

        self.tiles[y][x] += c



    def build(self):

        for y in range(self.H):

            for x in range(1, self.W):

                self.tiles[y][x] += self.tiles[y][x - 1]

        for y in range(1, self.H):

            for x in range(self.W):

                self.tiles[y][x] += self.tiles[y - 1][x]



    def get(self, sx, sy, tx, ty):

        assert sx <= tx and sy <= ty

        cnt = self.tiles[ty][tx]

        if sx > 0:

            cnt -= self.tiles[ty][sx - 1]

        if sy > 0:

            cnt -= self.tiles[sy - 1][tx]

        if sx > 0 and sy > 0:

            cnt += self.tiles[sy - 1][sx - 1]

        return cnt





cs = CumSum2d(N, N)

for i in range(M):

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

    cs.add(l - 1, r - 1)

cs.build()



for _ in range(Q):

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

    ans = cs.get(p - 1, p - 1, q - 1, q - 1)

    print(ans)

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


class CumSum2d(object):
    def __init__(self, H, W):
        self.H, self.W = H, W
        self.tiles = [[0] * W for _ in range(H)]

    def add(self, x, y, c=1):
        self.tiles[y][x] += c

    def build(self):
        for y in range(self.H):
            for x in range(1, self.W):
                self.tiles[y][x] += self.tiles[y][x - 1]
        for y in range(1, self.H):
            for x in range(self.W):
                self.tiles[y][x] += self.tiles[y - 1][x]

    def get(self, sx, sy, tx, ty):
        assert sx <= tx and sy <= ty
        cnt = self.tiles[ty][tx]
        if sx > 0:
            cnt -= self.tiles[ty][sx - 1]
        if sy > 0:
            cnt -= self.tiles[sy - 1][tx]
        if sx > 0 and sy > 0:
            cnt += self.tiles[sy - 1][sx - 1]
        return cnt


cs = CumSum2d(N, N)
for i in range(M):
    l, r = list(map(int, input().split()))
    cs.add(l - 1, r - 1)
cs.build()
for _ in range(Q):
    p, q = list(map(int, input().split()))
    ans = cs.get(p - 1, p - 1, q - 1, q - 1)
    print(ans)

import sys

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


class CumSum2d(object):
    def __init__(self, H, W):
        self.H, self.W = H, W
        self.tiles = [[0] * W for _ in range(H)]

    def add(self, x, y, c=1):
        self.tiles[y][x] += c

    def build(self):
        for y in range(self.H):
            for x in range(1, self.W):
                self.tiles[y][x] += self.tiles[y][x - 1]
        for y in range(1, self.H):
            for x in range(self.W):
                self.tiles[y][x] += self.tiles[y - 1][x]

    def get(self, sx, sy, tx, ty):
        assert sx <= tx and sy <= ty
        cnt = self.tiles[ty][tx]
        if sx > 0:
            cnt -= self.tiles[ty][sx - 1]
        if sy > 0:
            cnt -= self.tiles[sy - 1][tx]
        if sx > 0 and sy > 0:
            cnt += self.tiles[sy - 1][sx - 1]
        return cnt


cs = CumSum2d(N, N)
for i in range(M):
    l, r = list(map(int, input().split()))
    cs.add(l - 1, r - 1)
cs.build()
for _ in range(Q):
    p, q = list(map(int, input().split()))
    ans = cs.get(p - 1, p - 1, q - 1, q - 1)
    print(ans)

+import sys + +input = sys.stdin.readline