select sum(qty)
  from sp
  where pno = 'P2';
