Database: department_store
Question: What are the ids of all products that were either ordered more than 3 times or have a sum of amount purchased above 80000?
SQL: 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