
#include<bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 550;

int a[N][N], b[N][N], n, m, Q;

int main() {
	scanf("%d%d%d", &n, &m, &Q);
	for (int i = 1; i <= m; ++ i) {
		int x, y; scanf("%d%d", &x, &y); ++ a[x][y];
	}
	for (int i = n; i >= 1; -- i) {
		for (int j = 1; j <= n; ++ j) {
			b[i][j] = a[i][j] + b[i + 1][j] + b[i][j - 1] - b[i + 1][j - 1];
		}
	}
	
	while (Q --) {
		int x, y; scanf("%d%d", &x, &y);
		cout << b[x][y] << endl;
	}
	return 0;
}
