human
Schema:
Customers (customer_id, customer_name, customer_details)
Invoices (invoice_number, invoice_date, invoice_details)
Orders (order_id, customer_id, order_status, date_order_placed, order_details)
Products (product_id, product_name, product_details)
Order_Items (order_item_id, product_id, order_id, order_item_status, order_item_details)
Shipments (shipment_id, order_id, invoice_number, shipment_tracking_number, shipment_date, other_shipment_details)
Shipment_Items (shipment_id, order_item_id)
Please answer with SQL.
assistant
Sure, I understand.
human
Find the customer id of Savannah?
assistant
SELECT customer_id FROM customers WHERE customer_name = 'Savannah';
human
Which date of order placed in Alberto?
assistant
SELECT T2.date_order_placed FROM customers AS T1 JOIN orders AS T2 ON T1.customer_id = T2.customer_id WHERE t1.customer_name = 'Alberto';
human
What are the customer details of order id 2?
assistant
SELECT customer_details FROM customers WHERE customer_id = "2" ;