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



mat=[[0]*(n+1) for i in range(n+1)]

for i in range(m):

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

    mat[l][r]+=1



for i in range(n+1):

    for j in range(n+1):

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

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

        mat[i][j]-=mat[i-1][j-1]



for i in range(q):

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

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

    print(ans)

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

mat=[[0]*(n+1) for i in range(n+1)]

for i in range(m):

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

  mat[l][r]+=1



for i in range(n+1):

  for j in range(n+1):

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

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

    mat[i][j]-=mat[i-1][j-1]



for i in range(Q):

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

  s=mat[q][q]-mat[q][p-1]-mat[p-1][q]+mat[p-1][p-1]

  print(s)

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

n, m, Q = list(map(int, input().split()))
mat = [[0] * (n + 1) for i in range(n + 1)]
for i in range(m):
    l, r = list(map(int, input().split()))
    mat[l][r] += 1
for i in range(n + 1):
    for j in range(n + 1):
        mat[i][j] += mat[i - 1][j]
        mat[i][j] += mat[i][j - 1]
        mat[i][j] -= mat[i - 1][j - 1]
for i in range(Q):
    p, q = list(map(int, input().split()))
    s = mat[q][q] - mat[q][p - 1] - mat[p - 1][q] + mat[p - 1][p - 1]
    print(s)

-n, m, q = list(map(int, input().split())) +n, m, Q = list(map(int, input().split())) -for i in range(q): -    l, r = list(map(int, input().split())) -    ans = mat[r][r] + mat[l - 1][l - 1] - mat[l - 1][r] - mat[r][l - 1] -    print(ans) +for i in range(Q): +    p, q = list(map(int, input().split())) +    s = mat[q][q] - mat[q][p - 1] - mat[p - 1][q] + mat[p - 1][p - 1] +    print(s)