#include <cstdio>
#include <string.h>
#include <algorithm>
#define N 510

using namespace std;
int cnt[N][N], dp[N][N];

int main() {
	int n, m, q, l, r;
	scanf("%d%d%d", &n, &m, &q);
	for (int i = 1; i <= m; ++i) {
		scanf("%d%d", &l, &r);
		cnt[l][r]++;
	}
	for (int i = n; i >= 1; --i) {
        for (int j = 1; j <= n; ++j) {
            dp[i][j] = cnt[i][j] + dp[i + 1][j] + dp[i][j - 1] - dp[i + 1][j - 1];
        }
    }
	for (int i = 1; i <= q; ++i) {
		scanf("%d%d", &l, &r);
		printf("%d\n", dp[l][r]); 
	}
	return 0;
}