select sname from s where exists
  (select * from sp where sno = s.sno and pno = 'P2');