object Main {
  import io.StdIn._

  def getStrings = readLine().split(" ")
  def getInts = getStrings.map(_.toInt)

  def main(args: Array[String]): Unit = {
    val Array(n, m, q) = getInts
    type Interval = (Int, Int)
    val intervals: Seq[Interval] = (1 to m).map(_ => { val Array(l, r) = getInts; (l, r) })
    val queries: Seq[Interval] = (1 to q).map(_ => { val Array(l, r) = getInts; (l, r) })
    val intervalOpenCounts = Array.fill(n) { 0 }
    val intervalCloseCounts = Array.fill(n) { 0 }

    for ((l, r) <- intervals) {
      intervalOpenCounts(l - 1) += 1
      intervalCloseCounts(r - 1) += 1
    }

    val intervalOpenScan = intervalOpenCounts.scan(0)(_ + _)
    val intervalCloseScan = intervalCloseCounts.scan(0)(_ + _)

    for ((l, r) <- queries) {
      println(intervalCloseScan(r) - intervalOpenScan(l - 1))
    }
  }
}
