import scala.collection.mutable

object Main {
  import io.StdIn._

  @inline def readStrings: Array[String] = readLine().split(" ")
  @inline 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 = Seq.fill(m)(sc.nextInt, sc.nextInt)
    val Q = Seq.fill(m)(sc.nextInt, sc.nextInt)

    val mutableIntervals: Seq[mutable.Seq[Int]] = Seq.fill(n)(mutable.Seq.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))
    }

  }
}
