function Main(input) {
    input = input.trim().split("\n").map(function(x) { return x.split(" ")});
    let N = parseInt(input[0][0], 10);
    let M = parseInt(input[0][1], 10);
    let Q = parseInt(input[0][2], 10);
    let arr = [];
    for (let i = 0; i < N; i++){
        arr.push(Array.from({length: N}, () => 0));
    }

    let line;
    for (let i = 0; i < M; i++){
        line = input[i + 1].map(e => parseInt(e, 10));
        arr[line[0] - 1][line[1] - 1]++;
    }

    let arr_ruiseki = [];
    arr_ruiseki.push(Array.from({length: N + 1}, () => 0));
    for  (let i = 0; i < N; i++){
        arr_ruiseki.push([0]);
        for (let j = 0; j < N; j ++){
            arr_ruiseki[i + 1].push(arr_ruiseki[i][j + 1] - arr_ruiseki[i][j] + arr_ruiseki[i + 1][j] + arr[i][j]);
        }
    }

    let v_ans = [];

    for (let i = 0; i < Q; i++){
        line = input[i + M + 1].map(e => parseInt(e, 10));
        v_ans.push(arr_ruiseki[line[1]][line[1]] - arr_ruiseki[line[1]][line[0] - 1] - arr_ruiseki[line[0] - 1][line[1]] + arr_ruiseki[line[0] - 1][line[0] - 1]);
    }

    // console.log(arr_ruiseki);
    console.log(v_ans.join("\n"));

}

Main(require("fs").readFileSync("/dev/stdin", "utf8"));
