#include <bits/stdc++.h>

using namespace std;

#define rep(i,n) for(long i=1;i<=n;i++)

long n,m,q,p[501][501];

int main(){
  
  cin >> n >> m >> q;
  rep(i,m){
   long l,r;
    cin >> l >> r;
    p[l][r]++;
  }
  rep(i,n){
    rep(j,n) p[i][j]+=p[i][j-1];
  }
  rep(i,n){
    rep(j,n) p[i][j]+=p[i-1][j];
  }
  
 rep(i,q){
  long l,r;
   cin >> l >> r;
   cout <<p[r][r]+p[l-1][l-1]-p[r][l-1]-p[l-1][r] << endl;
 } 

}