select saleid from Product_Relation where valueid=13 or valueid=30 or valueid=268 group by saleid having count(saleid)=3