CREATE TABLE Customer_Orders (customer_id VARCHAR2, order_date NUMBER, order_status_code VARCHAR2)

Find the ids of all distinct customers who made order after some orders that were Cancelled.
SELECT DISTINCT customer_id FROM Customer_Orders WHERE order_date > (SELECT MIN(order_date) FROM Customer_Orders WHERE order_status_code = "Cancelled")
SELECT DISTINCT "customer_id" FROM "Customer_Orders" WHERE "order_date" > (SELECT MIN("order_date") FROM "Customer_Orders" WHERE "Cancelled" = "order_status_code")