import java.util.Scanner

import scala.collection.mutable.ArrayBuffer

object Main {
  def main(args: Array[String]): Unit = println(solve(new Scanner(System.in)))

  def solve(in: String): String = solve(new Scanner(in))

  def solve(sc: Scanner): String = {
    val N = sc.nextInt
    val M = sc.nextInt
    val Q = sc.nextInt
    val LR = Array.fill(M)(sc.nextInt, sc.nextInt)
    val pq = Array.fill(Q)(sc.nextInt, sc.nextInt)

    val m = ArrayBuffer.fill(N + 1)(ArrayBuffer.fill(N + 1)(0))
    LR.foreach { case (l, r) =>
      m(l)(r) += 1
    }
//    m.foreach(a => println(a.mkString(",")))
    for (i <- 1 to N; j <- 1 to N) {
      m(i)(j) += m(i - 1)(j) + m(i)(j - 1) - m(i - 1)(j - 1)
    }
//    m.foreach(a => println(a.mkString(" ")))

    pq.map { case (p, q) =>
      m(q)(q) - m(p - 1)(q) - m(q)(p - 1) + m(p - 1)(p - 1)
    }.mkString("\n")
  }
}
