"use strict";
function Main(input) {
    let lines = input.split("\n");
    let nmq = lines.shift().split(/\s/).map((v) => v - 0);
    let N = nmq[0], M = nmq[1], Q = nmq[2];
    let LR = new Array(M);
    for (let m = 0; m < M; m++) {
        LR[m] = lines.shift().split(/\s/).map((v) => v - 0);
    }
    for (let n = 0; n < Q; n++) {
        let ans = 0;
        let pq = lines.shift().split(/\s/).map((v) => v - 0);
        for (let m = 0; m < M; m++) {
            if (pq[0] <= LR[m][0] && LR[m][1] <= pq[1]) ans++;
        }
        console.log(ans);
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));