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

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

for i in range(M):

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

    L[l][r]+=1



#print(L)

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

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

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



#print(L)



for i in range(Q):

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

    ans=L[q][q]-L[p-1][q]-L[q][p-1]+L[p-1][p-1]

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



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

for i in range(M):

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

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



for i in range(N):

    for j in range(N):

        if i==0 and j==0:

            continue

        elif i==0:

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

        elif j==0:

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

        else:

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





#print(L)

for i in range(Q):

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

    p-=1

    q-=1

    if p==0:

        print((L[q][q]))

    else:

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

N, M, Q = list(map(int, input().split()))
L = [[0] * N for _ in range(N)]
for i in range(M):
    l, r = list(map(int, input().split()))
    L[l - 1][r - 1] += 1
for i in range(N):
    for j in range(N):
        if i == 0 and j == 0:
            continue
        elif i == 0:
            L[i][j] += L[i][j - 1]
        elif j == 0:
            L[i][j] += L[i - 1][j]
        else:
            L[i][j] += L[i - 1][j] + L[i][j - 1] - L[i - 1][j - 1]
# print(L)
for i in range(Q):
    p, q = list(map(int, input().split()))
    p -= 1
    q -= 1
    if p == 0:
        print((L[q][q]))
    else:
        print((L[q][q] - L[p - 1][q] - L[q][p - 1] + L[p - 1][p - 1]))

-L = [[0] * (N + 1) for _ in range(N + 1)] +L = [[0] * N for _ in range(N)] -    L[l][r] += 1 -# print(L) -for i in range(1, N + 1): -    for j in range(1, N + 1): -        L[i][j] += L[i][j - 1] + L[i - 1][j] - L[i - 1][j - 1] +    L[l - 1][r - 1] += 1 +for i in range(N): +    for j in range(N): +        if i == 0 and j == 0: +            continue +        elif i == 0: +            L[i][j] += L[i][j - 1] +        elif j == 0: +            L[i][j] += L[i - 1][j] +        else: +            L[i][j] += L[i - 1][j] + L[i][j - 1] - L[i - 1][j - 1] -    ans = L[q][q] - L[p - 1][q] - L[q][p - 1] + L[p - 1][p - 1] -    print(ans) +    p -= 1 +    q -= 1 +    if p == 0: +        print((L[q][q])) +    else: +        print((L[q][q] - L[p - 1][q] - L[q][p - 1] + L[p - 1][p - 1]))