import Control.Monad
main = do
  [n,m,q] <- map read . words <$> getLine
  lrs <- replicateM m $ do
    [l, r] <- map read . words <$> getLine
    return (l, r)
  pqs <- replicateM q $ do
    [p, q] <- map read . words <$> getLine
    return (p, q)
  mapM_ (print.f lrs) pqs
  
f :: [(Int,Int)] -> (Int,Int) -> Int
f lrs (p,q) = length [1|(l,r)<-lrs,p<=l,r<=q]