'use strict';

function Main(input) {
  const N = Number(input.split('\n')[0].split(' ')[0]);
  const M = Number(input.split('\n')[0].split(' ')[1]);
  const Q = Number(input.split('\n')[0].split(' ')[2]);
  const sectionlist = input.split('\n').slice(1, M+1).map(x => x.split(' ')).map(x => {x[0] = Number(x[0]); x[1] = Number(x[1]); return([x[0], x[1]])});
  const questionlist = input.split('\n').slice(M+1).map(x => x.split(' ')).map(x => {x[0] = Number(x[0]); x[1] = Number(x[1]); return([x[0], x[1]])});
  let list = [];

  for(let i=0; i<=N; i++) {
    list[i] = [];
    for(let j=0; j<=N; j++) {
      list[i][j] = 0;
      }
    }
  }

  for(let l=0; l<M; l++) {
    if(i <= sectionlist[l][0] && j >= sectionlist[l][1]) {
      list[i][j]++;
    }

  for(let k=0; k<Q; k++) {
    console.log(list[questionlist[k][0]][questionlist[k][1]]);
  }

};

Main(require("fs").readFileSync("/dev/stdin", "utf8").trim());
