Question: What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

order_items : product_id (number) , order_id (number) , order_item_id (number) | orders : order_id (number) , date_order_placed (time)


Question: Find the names of the customers who have order status both "On Road" and "Shipped".

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_status (text) , order_id (number)


Question: Which customers have both "On Road" and "Shipped" as order status? List the customer names.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_status (text) , order_id (number)


Question: Find the id of the customers who have order status both "On Road" and "Shipped".

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_id (number) | orders : customer_id (number) , order_status (text) , order_id (number)


Question: Which customers have both "On Road" and "Shipped" as order status? List the customer ids.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_id (number) | orders : customer_id (number) , order_status (text) , order_id (number)


Question: When was the order placed whose shipment tracking number is 3452? Give me the date.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : date_order_placed (time) , order_id (number) | shipments : order_id (number) , shipment_tracking_number (text) , shipment_id (number)


Question: On which day was the order placed whose shipment tracking number is 3452?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : date_order_placed (time) , order_id (number) | shipments : order_id (number) , shipment_tracking_number (text) , shipment_id (number)


Question: What is the placement date of the order whose invoice number is 10?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : date_order_placed (time) , order_id (number) | shipments : order_id (number) , invoice_number (number) , shipment_id (number)


Question: On what day was the order with invoice number 10 placed?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : date_order_placed (time) , order_id (number) | shipments : order_id (number) , invoice_number (number) , shipment_id (number)


Question: List the count and id of each product in all the orders.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_id (number) | order_items : product_id (number) , order_id (number) , order_item_id (number) | orders : order_id (number)


Question: For each product, return its id and the number of times it was ordered.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_id (number) | order_items : product_id (number) , order_id (number) , order_item_id (number) | orders : order_id (number)


Question: List the name and count of each product in all orders.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_name (text) , product_id (number) | orders : order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number)


Question: For each product, show its name and the number of times it was ordered.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_name (text) , product_id (number) | orders : order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number)


Question: Find the ids of orders which are shipped after 2000-01-01.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

shipments : order_id (number) , shipment_date (time) , shipment_id (number)


Question: Which orders have shipment after 2000-01-01? Give me the order ids.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

shipments : order_id (number) , shipment_date (time) , shipment_id (number)


Question: Find the id of the order which is shipped most recently.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

shipments : order_id (number) , shipment_date (time) , shipment_id (number)


Question: Which order has the most recent shipment? Give me the order id.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

shipments : order_id (number) , shipment_date (time) , shipment_id (number)


Question: List the names of all distinct products in alphabetical order.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_name (text) , product_id (number)


Question: Sort all the distinct products in alphabetical order.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

products : product_name (text) , product_id (number)


Question: List the ids of all distinct orders ordered by placed date.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : order_id (number) , date_order_placed (time)


Question: What are ids of the all distinct orders, sorted by placement date?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : order_id (number) , date_order_placed (time)


Question: What is the id of the order which has the most items?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : order_id (number) | order_items : order_id (number) , order_item_id (number)


Question: Which order deals with the most items? Return the order id.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

orders : order_id (number) | order_items : order_id (number) , order_item_id (number)


Question: What is the name of the customer who has the largest number of orders?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Find the name of the customer who made the most orders.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)


Question: What are the invoice numbers created before 1989-09-03 or after 2007-12-25?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)


Question: Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

invoices : invoice_details (text) , invoice_date (time) , invoice_number (number)


Question: What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

invoices : invoice_details (text) , invoice_date (time) , invoice_number (number)


Question: For each customer who has at least two orders, find the customer name and number of orders made.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Which customers have made at least two orders? Give me each customer name and number of orders made.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: Find the name of the customers who have at most two orders.

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: What are the names of the customers who have made two or less orders?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number)


Question: List the names of the customers who have once bought product "food".

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number) | products : product_id (number) , product_name (text)


Question: What are the names of the customers who bought product "food" at least once?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number) | products : product_id (number) , product_name (text)


Question: List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_status (text) , order_item_id (number) | products : product_id (number) , product_name (text)


Question: Which customers have ever canceled the purchase of the product "food" (the item status is "Cancel")?

customers : customer_id (number) , customer_name (text) , customer_details (text) | invoices : invoice_number (number) , invoice_date (time) , invoice_details (text) | orders : order_id (number) , customer_id (number) , order_status (text) , date_order_placed (time) , order_details (text) | products : product_id (number) , product_name (text) , product_details (text) | order_items : order_item_id (number) , product_id (number) , order_id (number) , order_item_status (text) , order_item_details (text) | shipments : shipment_id (number) , order_id (number) , invoice_number (number) , shipment_tracking_number (text) , shipment_date (time) , other_shipment_details (text) | shipment_items : shipment_id (number) , order_item_id (number)

customers : customer_name (text) , customer_id (number) | orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_status (text) , order_item_id (number) | products : product_id (number) , product_name (text)


Question: How many architects are female?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)


Question: List the name, nationality and id of all male architects ordered by their names lexicographically.

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : name (text) , nationality (text) , id (text) , gender (text)


Question: What is the maximum length in meters for the bridges and what are the architects' names?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

bridge : length_meters (number) , name (text) , architect_id (number) , id (number) , id (text) | architect : name (text) , id (text)


Question: What is the average length in feet of the bridges?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

bridge : length_feet (number) , id (text)


Question: What are the names and year of construction for the mills of 'Grondzeiler' type?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

mill : name (text) , built_year (number) , type (text) , id (text)


Question: What are the distinct names and nationalities of the architects who have ever built a mill?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : name (text) , nationality (text) , id (text) | mill : name (text) , id (number) , architect_id (number) , id (text)


Question: What are the names of the mills which are not located in 'Donceel'?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

mill : name (text) , location (text) , id (text)


Question: What are the distinct types of mills that are built by American or Canadian architects?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

mill : type (text) , architect_id (number) , id (number) , id (text) | architect : id (text) , nationality (text)


Question: What are the ids and names of the architects who built at least 3 bridges ?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : id (text) , name (text) | bridge : id (number) , name (text) , architect_id (number) , id (text)


Question: What is the id, name and nationality of the architect who built most mills?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : id (text) , name (text) , nationality (text) | mill : id (number) , name (text) , architect_id (number) , id (text)


Question: What are the ids, names and genders of the architects who built two bridges or one mill?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : id (text) , name (text) , gender (text) | bridge : id (number) , name (text) , architect_id (number) , id (text) | mill : id (number) , name (text) , architect_id (number) , id (text)


Question: What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

bridge : location (text) , name (text) , id (text)


Question: Which of the mill names contains the french word 'Moulin'?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)


Question: What are the distinct name of the mills built by the architects who have also built a bridge longer than 80 meters?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : name (text) , id (text) | bridge : name (text) , architect_id (number) , id (number) , length_meters (number) , id (text) | mill : name (text) , architect_id (number) , id (number) , id (text)


Question: What is the most common mill type, and how many are there?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)


Question: How many architects haven't built a mill before year 1850?

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : id (text) | mill : id (number) , architect_id (number) , built_year (number) , id (text)


Question: show the name of all bridges that was designed by american archtect, and sort the result by the bridge feet length.

architect : id (text) , name (text) , nationality (text) , gender (text) | bridge : architect_id (number) , id (number) , name (text) , location (text) , length_meters (number) , length_feet (number) | mill : architect_id (number) , id (number) , location (text) , name (text) , type (text) , built_year (number) , notes (text)

architect : name (text) , id (text) , nationality (text) | bridge : name (text) , architect_id (number) , id (number) , length_feet (number) , id (text)


Question: How many book clubs are there?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)


Question: Count the number of book clubs.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)


Question: show the titles, and authors or editors for all books made after the year 1989.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : book_title (text) , author_or_editor (text) , year (number) , book_club_id (number)


Question: What are the titles and authors or editors that correspond to books made after 1989?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : book_title (text) , author_or_editor (text) , year (number) , book_club_id (number)


Question: Show all distinct publishers for books.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: What are all the different book publishers?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: Show the years, book titles, and publishers for all books, in descending order by year.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : year (number) , book_title (text) , publisher (text) , book_club_id (number)


Question: What are the years, titles, and publishers for all books, ordered by year descending?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : year (number) , book_title (text) , publisher (text) , book_club_id (number)


Question: Show all publishers and the number of books for each publisher.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: How many books are there for each publisher?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: What is the publisher with most number of books?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: Return the publisher that has published the most books.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , book_club_id (number)


Question: Show all book categories and the number of books in each category.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : category (text) , book_club_id (number)


Question: How many books fall into each category?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : category (text) , book_club_id (number)


Question: List categories that have at least two books after year 1989.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : category (text) , year (number) , book_club_id (number)


Question: What categories have two or more corresponding books that were made after 1989?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : category (text) , year (number) , book_club_id (number)


Question: Show publishers with a book published in 1989 and a book in 1990.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , year (number) , book_club_id (number)


Question: What are the publishers who have published a book in both 1989 and 1990?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , year (number) , book_club_id (number)


Question: Show all publishers which do not have a book in 1989.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , year (number) , book_club_id (number)


Question: Which publishers did not publish a book in 1989?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

book_club : publisher (text) , year (number) , book_club_id (number)


Question: Show all movie titles, years, and directors, ordered by budget.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , year (number) , director (text) , budget_million (number) , movie_id (number)


Question: What are the titles, years, and directors of all movies, ordered by budget in millions?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , year (number) , director (text) , budget_million (number) , movie_id (number)


Question: How many movie directors are there?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , movie_id (number)


Question: Count the number of different directors.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , movie_id (number)


Question: What is the title and director for the movie with highest worldwide gross in the year 2000 or before?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , director (text) , year (number) , gross_worldwide (number) , movie_id (number)


Question: Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , director (text) , year (number) , gross_worldwide (number) , movie_id (number)


Question: Show all director names who have a movie in both year 1999 and 2000.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , year (number) , movie_id (number)


Question: Which directors had a movie both in the year 1999 and 2000?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , year (number) , movie_id (number)


Question: Show all director names who have a movie in the year 1999 or 2000.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , year (number) , movie_id (number)


Question: Which directors had a movie in either 1999 or 2000?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : director (text) , year (number) , movie_id (number)


Question: What is the average, maximum, and minimum budget for all movies before 2000.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : budget_million (number) , year (number) , movie_id (number)


Question: Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : budget_million (number) , year (number) , movie_id (number)


Question: List all company names with a book published by Alyson.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

culture_company : company_name (text) , book_club_id (text) | book_club : book_club_id (number) , publisher (text)


Question: What are all the company names that have a book published by Alyson?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

culture_company : company_name (text) , book_club_id (text) | book_club : book_club_id (number) , publisher (text)


Question: Show the movie titles and book titles for all companies in China.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , movie_id (number) | book_club : book_title (text) , book_club_id (number) | culture_company : movie_id (text) , book_club_id (text) , incorporated_in (text) , company_name (text)


Question: What are the titles of movies and books corresponding to companies incorporated in China?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

movie : title (text) , movie_id (number) | book_club : book_title (text) , book_club_id (number) | culture_company : movie_id (text) , book_club_id (text) , incorporated_in (text) , company_name (text)


Question: Show all company names with a movie directed in year 1999.

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

culture_company : company_name (text) , movie_id (text) | movie : movie_id (number) , year (number)


Question: What are all company names that have a corresponding movie directed in the year 1999?

book_club : book_club_id (number) , year (number) , author_or_editor (text) , book_title (text) , publisher (text) , category (text) , result (text) | movie : movie_id (number) , title (text) , year (number) , director (text) , budget_million (number) , gross_worldwide (number) | culture_company : company_name (text) , type (text) , incorporated_in (text) , group_equity_shareholding (number) , book_club_id (text) , movie_id (text)

culture_company : company_name (text) , movie_id (text) | movie : movie_id (number) , year (number)