import java.io._
import java.util.StringTokenizer
import scala.util.control.Breaks.{breakable,break}

object Main extends App {
  val in = new InputReader(System.in)
  val pw = new PrintWriter(System.out)

  val N, M, Q = in.next().toInt
  val table = Array.ofDim[Int](501, 501)
  for (_ <- 1 to M){
    val L, R = in.next().toInt
    table(L)(R) += 1
  }


  //
  for (l <- 1 to 500; r <- 2 to 500) {
    table(l)(r) += table(l)(r-1)
  }

  for (_ <- 1 to Q) {
    val p, q = in.next().toInt
    var ans = 0L
    for(l <- p to 500) {
      ans += table(l)(q)
    }
    pw.println(ans)
  }
  pw.flush()
}


class InputReader(stream: InputStream) {
  private val reader = new BufferedReader(new InputStreamReader(stream))
  private var tokenizer: StringTokenizer = new StringTokenizer(reader.readLine())
  def next(): String = {
    while (!tokenizer.hasMoreTokens()) {
      tokenizer = new StringTokenizer(reader.readLine())
    }
    tokenizer.nextToken()
  }
}
