'use strict'
const lines = require('fs').readFileSync(0, 'utf8').split('\n')
const nmq = lines[0].split(' ')
const N = parseInt(nmq[0], 10)
const M = parseInt(nmq[1], 10)
const Q = parseInt(nmq[2], 10)
const LRs = []
for (let i=1;i <= M;i++) {
  const LR = lines[i].split(' ')
  LRs.push({L: parseInt(LR[0], 10), R: parseInt(LR[1], 10)})
}
for (let i=M+1;i <= M+Q;i++) {
  const pq = lines[i].split(' ')
  const p = parseInt(pq[0], 10)
  const q = parseInt(pq[1], 10)
  let count = 0
  for (const LR of LRs) {
    if (p <= LR.L && LR.R <= q) count++
  }
  console.log(count)
}