#include<bits/stdc++.h>
using namespace std;
int n,m,q;
int dp[501][501];
int le,r;
int main(){
	//freopen("input.txt","r",stdin);
	//freopen("output.txt","w",stdout);
	cin>>n>>m>>q;
	for(int i=1;i<=m;i++){
		cin>>le>>r;
		dp[le][r]++;
	}
	for(int l=1;l<=n;l++){
		for(int i=1;l+i<=n;i++){
			int j=i+l;
			dp[i][j]+=(dp[i][j-1]+dp[i+1][j]-dp[i+1][j-1]);
		}
	}
	for(int i=1;i<=q;i++){
		cin>>le>>r;
		cout<<dp[le][r]<<endl;
	}
	return 0;
}
