object Main {
  import io.StdIn._
  import java.util.Scanner

  def readStrings: Array[String] = readLine().split(" ")
  def readInts: Array[Int] = readStrings.map(_.toInt)

  def main(args: Array[String]): Unit = {
    val sc = new Scanner(System.in)

    val Array(n, m, q) = readInts
    val LR = Array.fill(m)(sc.nextInt, sc.nextInt)
    val Q = Array.fill(q)(sc.nextInt, sc.nextInt)

    val mutableIntervals: Array[Array[Int]] = Array.fill(n)(Array.fill(n)(0))
    LR.foreach { case (l, r) => mutableIntervals(l - 1)(r - 1) += 1 }
    val summedInterval = mutableIntervals.map(_.scan(0)(_+_)).transpose.map(_.scan(0)(_+_)).transpose

    Q.foreach { case (l, r) =>
      println(summedInterval(r)(r) - summedInterval(l - 1)(r) - summedInterval(r)(l - 1) + summedInterval(l - 1)(l - 1))
    }

  }
}
