// 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 = [];
	for (var i = 0; i < m; i++) {
		trains.push(input[i+1].split(" "))
	}
	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);
		var ans = 0;
		for (var i in trains) {
			if(trains[i][0]>=q1 && trains[i][1]<=q2)
				ans++;
		}
		console.log('%d',ans);
	}
	//output
}
// Don't edit this line!
Main(require("fs").readFileSync("/dev/stdin", "utf8"));