SELECT product_id FROM Order_Items GROUP BY product_id HAVING count(*)  >  3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum(total_amount_purchased)  >  80000
What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?
SELECT product_id FROM Order_Items GROUP BY product_id HAVING count ( * ) > 3 UNION SELECT product_id FROM Product_Suppliers GROUP BY product_id HAVING sum ( total_amount_purchased ) > 80000
select product_id from order_items group by product_id having count ( * ) > value union select product_id from product_suppliers group by product_id having sum ( total_amount_purchased ) > value
What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000 ?