#include<stdio.h>

int main()
{
	int n, m, q, min, max, l, r, table[501][501]{};

	scanf("%d%d%d", &n, &m, &q);
	for (int i = 0; i < m; ++i)
	{
		scanf("%d%d", &l, &r);
		for (int j = r; j < n + 1; ++j)
			table[l][j]++;
	}
	for (int i = 1; i < n + 1; ++i)
	{
		for (int j = i; j < n + 1; ++j)
			table[i][j] += table[i - 1][j];
	}
	for (int i = 0; i < q; ++i)
	{
		scanf("%d%d", &min, &max);
		printf("%d\n", table[max][max] - table[min - 1][max]);
	}

	return 0;
}