'use strict'

const Main = (input) => {
    const lines = input.split('\n')
    const N = Number(lines[0].split(' ')[0])
    const M = Number(lines[0].split(' ')[1])
    const Q = Number(lines[0].split(' ')[2])

    const L = []
    const R = []
    for(let i = 1; i <= M; i++) {
        L.push(Number(lines[i].split(' ')[0]));
        R.push(Number(lines[i].split(' ')[1]));
    }
    for(let i = M + 1; i <= M+Q; i++) {
        const p = Number(lines[i].split(' ')[0])
        const q = Number(lines[i].split(' ')[1])
        const start = L.map((v, index) => {
            if(v >= p){
                return index
            }
            return -1
        }).filter(v => v >= 0)

        const ans = start.filter(v => R[v] <= q)
        console.log(ans.length);
    }
}


//*この行以降は編集しないでください（標準入出力から一度に読み込み、Mainを呼び出します）
Main(require("fs").readFileSync("/dev/stdin", "utf8"));