#include <bits/stdc++.h>
#define int long long
#define r(i,n) for(int i=0;i<n;i++)
using namespace std;
signed main(){
  int n,m,q;
  cin>>n>>m>>q;
  int h=n+1,w=n+1;
  int a[n+1][n+1];
  r(i,n+1)r(j,n+1)a[i][j]=0;
  r(i,m){
    int x,y;
    cin>>x>>y;
    a[y][x]++;
  }
  r(i,h-1)r(j,w)a[i+1][j]+=a[i][j];
  r(i,h)r(j,w-1)a[i][j+1]+=a[i][j];
  while(q--){
    int x,y;
    cin>>x>>y;
    cout<<a[y][y]-a[x-1][y]-a[y][x-1]+a[x-1][x-1]<<endl;
  }
}