Task: Text to Code
Input (English): SQL: SELECT customer_name FROM Customers GROUP BY customer_name HAVING Count ( * ) > = 3
Feedback: Need to make sure customers have bought at least three distinct products .
Output (English): SELECT DISTINCT T1.customer_name FROM customers AS T1 JOIN customer_orders AS T2 ON T1.customer_id  =  T2.customer_id JOIN order_items AS T3 ON T2.order_id  =  T3.order_id GROUP BY T1.customer_id HAVING COUNT (DISTINCT T3.product_id)  >=  3