select * from s where sno in (
select sno from (
select pno, sno from spj
group by pno, sno
) ta
having count(*) > 3
)