object Main extends App{
    val Array(n, m, q) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
    val LR = new Array[(Int, Int)](m)
    val PQ = new Array[(Int, Int)](q)

    val MM = Array.ofDim[Long](n+1, n+1)

    for(i<-0 until m){
    	val Array(t1, t2) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
    	LR(i) = (t1, t2)
    }

    for(i<-0 until q){
    	val Array(t1, t2) = scala.io.StdIn.readLine.split(" ").map(_.toInt)
    	PQ(i) = (t1, t2)
    }

    LR.map{ case(l,r) => MM(l)(r) += 1 }

    //MM.foreach(a => println(a.mkString(" ")))

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

    val ans = PQ.map{ case(p,q) => 
		MM(q)(q) - MM(p-1)(q) - MM(q)(p-1) + MM(p-1)(p-1)		
	}

	for(x <- ans){
		println(x)
	}

}