#include <iostream>

using namespace std;

int n, m, q, s[505][505];

int main()
{
	cin >> n >> m >> q;
	for (int i = 1; i <= m; i++)
	{
		int x, y;
		cin >> x >> y;
		s[x][y]++;
	}
	for (int i = 1; i <= n; i++)
		for (int j = 1; j <= n; j++)
			s[i][j] += s[i - 1][j] + s[i][j - 1] - s[i - 1][j - 1];
	for (int i = 1; i <= q; i++)
	{
		int x, y;
		cin >> x >> y;
		swap(x, y);
		cout << s[x][x] - s[x][y - 1] - s[y - 1][x] + s[y - 1][y - 1] << endl;
	}
	return 0;
}