import scala.io.StdIn

object Main {
  //Console.setIn(new FileReader(new java.io.File("in")))
  //Console.setOut(new PrintStream(new java.io.File("output")))
  var caseNo = 1
  val magicMod = 1000000007

  def doCase(): Unit ={

    val Array(n, m, q) = readIntLine()

    val tally = Array.fill(n, n)(0)

    var read = 0
    while (read < m) {
      val Array(l, r) = readIntLine()
      tally(l - 1)(r - 1) += 1
      read += 1
    }

    val strictlyWithin = Array.fill(n, n)(-1)

    var query = 0
    while (query < q) {
      val Array(ql, qr) = readIntLine()
      println(dp(ql - 1, qr - 1, tally, strictlyWithin))
      query += 1
    }
  }

  def dp(l: Int, r: Int, tally: Array[Array[Int]], strictlyWithin: Array[Array[Int]]): Int = {
    if (l < 0 || r >= tally.length) {
      return 0
    }
    if (strictlyWithin(l)(r) == -1) {
      var answ = 0
      var i = l
      while (i <= r) {
        answ += tally(l)(i)
        i += 1
      }
      var j = l + 1
      while (j <= r) {
        answ += tally(j)(r)
        j += 1
      }
      if (r - l > 1) {
        answ += dp(l + 1, r - 1, tally, strictlyWithin)
      }
      strictlyWithin(l)(r) = answ
    }
    strictlyWithin(l)(r)
  }

  def main(args: Array[String]): Unit = {
    val noCases = 1
    for (i <- 0 until noCases) {
      doCase()
    }
  }

  def readIntLine(): Array[Int] = {
    StdIn.readLine().split(" ").map(_.toInt)
  }

  def readLongLine(): Array[Long] = {
    StdIn.readLine().split(" ").map(_.toLong)
  }

  def readBigIntLine(): Array[BigInt] = {
    StdIn.readLine().split(" ").map(BigInt.apply)
  }
}