#include "bits/stdc++.h"
using namespace std;

int main() {
	int N, M, Q, L, R, p, q;
	static long long Cum[510][510] = {}, A[510][510] = {};
	cin >> N >> M >> Q;
	for (int i = 0; i < M; i++) {
		cin >> L >> R;
		A[L][R]++;
	}
	for (int i = 1; i <= N; i++) {
		for (int j = 1; j <= N; j++) {
			Cum[i][j] = Cum[i - 1][j] + Cum[i][j - 1] - Cum[i - 1][j - 1] + A[i][j];
		}
	}
	for (int i = 0; i < Q; i++) {
		cin >> p >> q;
		cout << Cum[q][q] - Cum[p - 1][q] - Cum[q][p - 1] + Cum[p - 1][p - 1] << endl;
	}
}