Task: Text to Code
Input (English): Step 1: For each row in Customers table, find the corresponding rows in Customer_Orders table.
Step 2: find without repetition Customers's customer_id of the results of step 1 whose order_date less than Cancelled
Output (English): SELECT DISTINCT T1.customer_id FROM Customers AS T1 JOIN Customer_Orders AS T2 ON T1.customer_id = T2.customer_id WHERE T2.order_date < "Cancelled"