import Control.Monad
import Data.Array

main = do
  l <- getLine
  let [n,m,q] = map read $ words l
  lrs <- getpairs m
  pqs <- getpairs q
  let lra = prepare n lrs
  mapM (print . compute lra) pqs

getpairs :: Int -> IO [(Int,Int)]
getpairs n = forM [1..n] $ \_ -> do
  l <- getLine
  let [a,b] = map read $ words l
  return (a,b)

prepare n lrs = accumArray (+) 0 ((1,1),(n,n)) $ map (\lr -> (lr,1)) lrs

compute lra (p,q) = sum $ elems $ ixmap ((p,p),(q,q)) id lra