#include <bits/stdc++.h>
using namespace std;
int N, M, Q, table[509][509];

int main(){

	cin>>N>>M>>Q;

	for (int i=0;i<M;i++){
		int L, R;cin>>L>>R;
		table[L][R]++;
	}

	for (int l=1;l<=N;++l){
		for (int r=1;r<=N;++r){
			table[l][r+1]+=table[l][r];
		}
	}

	for (int l=1;l<=N;++l){
		for (int r=1;r<=N;++r){
			table[l+1][r]+=table[l][r];
		}
	}


	for (int i=0;i<Q;++i){
		int p,q;cin>>p>>q;
		int ans=table[q][q]+table[p-1][p-1]-table[q][p-1]-table[p-1][q];
		cout << ans << endl;
	}

	return 0; 
}