import scala.io.{StdIn => in}

object Main extends App {
  val Array(n, m, q) = in.readLine.split(" ").map(_.toInt)

  val table = Array.ofDim[Int](n+1, n+1)
  Iterator.continually(in.readLine)
    .take(m)
    .map(_.split(" ").map(_.toInt))
    .foreach { a =>
      table(a(0))(a(1)) += 1
    }

  for {
    i <- 1 to n
    j <- 1 to n
  } {
    table(i)(j) += table(i-1)(j)
    table(i)(j) += table(i)(j-1)
    table(i)(j) -= table(i-1)(j-1)
  }

  val solver = (l:Int, r:Int) =>
    table(r)(r) - table(r)(l-1) - table(l-1)(r) + table(l-1)(l-1)

  val out = new java.io.PrintWriter(System.out)
  Iterator.continually(in.readLine)
    .take(q)
    .map(_.split(" ").map(_.toInt))
    .foreach { a =>
      out.println(solver(a(0),a(1)))
    }
  out.flush
}