Database: department_store
Question: What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?
SQL:
SELECT supplier_id FROM Product_Suppliers GROUP BY supplier_id HAVING avg(total_amount_purchased)  >  50000 OR avg(total_amount_purchased)  <  30000