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

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



for i in range(M):

  a, b = list(map(int, input().split()))

  train[a][b] += 1

  

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

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

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





for i in range(Q):

  ans = 0

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

  for j in range(l, r+1):

    ans += train[j][r]-train[j][l-1]

  print(ans)

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

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



for i in range(M):

  a, b = list(map(int, input().split()))

  train[a][b] += 1

  

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

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

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

    

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

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

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





for i in range(Q):

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

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

N, M, Q = list(map(int, input().split()))
train = [[0] * (N + 1) for _ in range(N + 1)]
for i in range(M):
    a, b = list(map(int, input().split()))
    train[a][b] += 1
for i in range(1, N + 1):
    for j in range(1, N + 1):
        train[i][j] += train[i][j - 1]
for i in range(1, N + 1):
    for j in range(1, N + 1):
        train[j][i] += train[j - 1][i]
for i in range(Q):
    l, r = list(map(int, input().split()))
    print((train[r][r] - train[l - 1][r] - train[r][l - 1] + train[l - 1][l - 1]))

+for i in range(1, N + 1): +    for j in range(1, N + 1): +        train[j][i] += train[j - 1][i] -    ans = 0 -    for j in range(l, r + 1): -        ans += train[j][r] - train[j][l - 1] -    print(ans) +    print((train[r][r] - train[l - 1][r] - train[r][l - 1] + train[l - 1][l - 1]))