'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]])}).sort((a,b) => {return (a[0] > b[0]) ? 1 : -1;});
  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]])});;

  // console.log(sectionlist);
  // console.log(questionlist);

  for(let i=0; i<Q; i++) {
    let count = 0;
    for(let j=0; j<M; j++) {
      if(questionlist[i][0] <= sectionlist[j][0] && questionlist[i][1] >= sectionlist[j][1]) {
        count++;
      }
    }
    console.log(count);
    count = 0;
  }

};

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