#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < n; i++)

int a[510][510];
int s[510][510];

int main(){
  int n, m, Q; cin >> n >> m >> Q;
  rep(i,m) {
    int l, r; cin >> l >> r;
    l--; r--;
    a[l][r]++;
  }
  rep(i,n) rep(j,n) {
    s[i+1][j+1] = s[i+1][j] + s[i][j+1] - s[i][j] + a[i][j];
  }

  while(Q--){
    int p, q; cin >> p >> q;
    p--; q--;
    cout << s[q+1][q+1] - s[q+1][p] - s[p][q+1] + s[p][p] << endl;
  }
}
