integer N,M,Q
integer,allocatable::S(:,:),PL(:,:)
integer L,R
integer pp,qq

read*,N,M,Q
allocate(PL(N,N))
PL=0
do i=1,M
  read*,L,R
  PL(L,R)=PL(L,R)+1
end do
allocate(S(0:N,0:N))
S=0
do i=1,N
  do j=1,N
    S(i,j)=S(i-1,j)+S(i,j-1)-S(i-1,j-1)+PL(i,j)
  end do
end do
do i=1,Q
  read*,pp,qq
  print"(i0)",S(qq,qq)-S(pp-1,qq)-S(qq,pp-1)+S(pp-1,pp-1)
end do
end