program atcoder_express2
  implicit none
  integer :: n, m, q, l, r, t(0:500,0:500), i, j
  t = 0
  read(*,*) n, m, q
  do i = 1, m
    read(*,*) l, r
    t(l,r) = t(l,r) + 1
  end do
  do i = 1, n
    do j = 1, n
      t(i,j) = t(i,j) + t(i,j-1)
    end do
  end do
  do j = 1, n
    do i = 1, n
      t(i,j) = t(i,j) + t(i-1,j)
    end do
  end do
  do i = 1, q
    read(*,*) l, r
    write(*,'(i0)') t(r,r)-t(r,l-1)-t(l-1,r)+t(l-1,l-1)
  end do
  stop
end program atcoder_express2