// parameter "input" gets all data
function Main(input) {
	// the first line is assigned to input[0], the second line is assigned to input[1] similarly.
	input = input.split("\n");
	tmp = input[0].split(" ");
	// convert string from integer using "parseInt"
	var n = parseInt(tmp[0], 10);
	var m = parseInt(tmp[1], 10);
	var q = parseInt(tmp[2], 10);
	var trains = [];
	var table = [];
	for(var i=0;i<=n;i++){
		table[i] = [];
		for(var j=0;j<=n;j++){
			table[i][j]=0;
		}	
	}
	for (var i = 0; i < m; i++) {
		var train  =input[i+1].split(" ");
		var q1 = parseInt(train[0], 10);
		var q2 = parseInt(train[1], 10);
		for(var j=1;j<=q1;j++){
			for(var k=q2;k<=n;k++){
				table[j][k]++;
			}
		}
	}
	var p = m;
	for (var j = 0; j < q; j++) {
		query = input[++p].split(" ");
		var q1 = parseInt(query[0], 10);
		var q2 = parseInt(query[1], 10);
		
		console.log('%d',table[q1][q2]);
	}
	//output
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));