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(501)(ArrayBuffer.fill(501)(0))
    LR.foreach { case (l, r) =>
      m(l)(r) += 1
    }

    pq.map { case (p, q) =>
      (for (i <- p to q; j <- p to q) yield m(i)(j)).sum
    }.mkString("\n")
  }
}
