#include<iostream>
#include<vector>
using namespace std;

vector<int> road[510];
int main(void){
	int n, m, q;
	int a, b;
	cin >> n >> m >> q;
	for(int i = 0; i < m; i++){
		cin >> a >> b;
		road[a].push_back(b);
	}
	int cnt;
	for(int i = 0; i < q; i++){
		cnt = 0;
		cin >> a >> b;
		for(int j = a; j <= b; j++){
			for(int k = 0; k < road[j].size(); k++){
				if(road[j][k] <= b)cnt++;
			}
		}
		cout << cnt << endl;
	}
	return 0;
}