'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 dp = Array(N)
const inputs = Array(N)
for (let l=0;l < N;l++) {
  dp[l] = Array(N-l)
  inputs[l] = Array(N-l)
}
for (let i=1;i <= M;i++) {
  const LR = lines[i].split(' ')
  const L = parseInt(LR[0], 10)
  const R = parseInt(LR[1], 10)
  inputs[L-1][R-L] = inputs[L-1][R-L] ? inputs[L-1][R-L] + 1 : 1
}
function query(p, q) {
  return subquery(q, q) - subquery(p-1, q)
}
// Lがl以下,Rがr以下のcount
function subquery(l, r) {
  if (l < 0) return 0
  if (typeof dp[l][r-l] === 'number') return dp[l][r-l]
  for (let i=0;i<=l;i++) {
    let count = 0
    for (let j=0;j<=r-i;j++) {
      count += inputs[i][j] || 0
      dp[i][j] = count + (i > 0 ? dp[i-1][j+1] : 0)
    }
  }
  return dp[l][r-l]
}
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)
  console.log(query(p-1, q-1))
}