"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 T = new Array(N).fill(0).map(() => new Array(N).fill(0));
    for (let m = 0; m < M; m++) {
        let lr = lines.shift().split(/\s/).map((v) => v - 0 - 1);
        T[lr[0]][lr[1]] += 1;
    }
    for (let n = 0; n < Q; n++) {
        let ans = 0;
        let pq = lines.shift().split(/\s/).map((v) => v - 0 - 1);
        for (let p = pq[0]; p <= pq[1]; p++) {
            for (let q = pq[0]; q <=  pq[1]; q++) {
                ans += T[p][q];
            }
        }
        console.log(ans);
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"))
