const input = require("fs").readFileSync("/dev/stdin", "utf8") 

;(input => {
    const lines = input.split('\n')
    const [N, M, Q] = lines[0].split(' ').map(Number)

    const L = []
    const R = []
    for (let i = 0; i < M; i++) {
        [L[i], R[i]] = lines[i + 1].split(' ').map(Number)
    }

    const p = []
    const q = []
    for (let i = 0; i < Q; i++) {
        [p[i], q[i]] = lines[i + 1 + M].split(' ').map(Number)
    }

    const r = Array(N).fill().map(_ => Array(N).fill(0))
    for (let i = 0; i < M; i++) {
        r[L[i] - 1][R[i] - 1]++
    }
    for (let i = 0; i < N; i++) {
        for (let j = 1; j < N; j++) {
            r[i][j] += r[i][j - 1]
        }
    }

    const ans = []
    for (let i = 0; i < Q; i++) {
        let sum = 0
        for (let j = p[i] - 1; j < N; j++) {
            sum += r[j][q[i] - 1]
        }
        ans.push(sum)
    }
    console.log(ans.join('\n'))

})(input)
