Question: List the name and phone number of all suppliers in the alphabetical order of their addresses.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

suppliers : supplier_name (text) , supplier_phone (text) , supplier_id (number) | supplier_addresses : supplier_id (number) , address_id (number) | addresses : address_id (number) , address_details (text)


Question: What are the names and phone numbers for all suppliers, sorted in alphabetical order of their addressed?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

suppliers : supplier_name (text) , supplier_phone (text) , supplier_id (number) | supplier_addresses : supplier_id (number) , address_id (number) | addresses : address_id (number) , address_details (text)


Question: What are the phone numbers of all customers and suppliers.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_phone (text) , customer_id (number) | suppliers : supplier_phone (text) , supplier_id (number)


Question: Return the phone numbers for all customers and suppliers.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_phone (text) , customer_id (number) | suppliers : supplier_phone (text) , supplier_id (number)


Question: Return the ids of all products that were ordered more than three times or supplied more than 80000.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , total_amount_purchased (text)


Question: What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

order_items : product_id (number) , order_item_id (number) | product_suppliers : product_id (number) , total_amount_purchased (text)


Question: What are id and name of the products whose price is lower than 600 or higher than 900?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_name (text) , product_price (number)


Question: Give the ids and names of products with price lower than 600 or higher than 900.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_id (number) , product_name (text) , product_price (number)


Question: Find the id of suppliers whose average amount purchased for each product is above 50000 or below 30000.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

product_suppliers : supplier_id (number) , total_amount_purchased (text) , product_id (number)


Question: What are the ids of suppliers which have an average amount purchased of above 50000 or below 30000?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

product_suppliers : supplier_id (number) , total_amount_purchased (text) , product_id (number)


Question: What are the average amount purchased and value purchased for the supplier who supplies the most products.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

product_suppliers : total_amount_purchased (text) , total_value_purchased (number) , supplier_id (number) , product_id (number)


Question: Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

product_suppliers : total_amount_purchased (text) , total_value_purchased (number) , supplier_id (number) , product_id (number)


Question: What is the largest and smallest customer codes?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_code (text) , customer_id (number)


Question: Return the maximum and minimum customer codes.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_code (text) , customer_id (number)


Question: List the names of all the distinct customers who bought a keyboard.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_name (text) , customer_id (number) | customer_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 distinct names of customers who have purchased a keyboard?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_name (text) , customer_id (number) | customer_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 and phone numbers of all the distinct suppliers who supply red jeans.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

suppliers : supplier_name (text) , supplier_phone (text) , supplier_id (number) | product_suppliers : supplier_id (number) , product_id (number) | products : product_id (number) , product_name (text)


Question: What are the distinct names and phone numbers for suppliers who have red jeans?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

suppliers : supplier_name (text) , supplier_phone (text) , supplier_id (number) | product_suppliers : supplier_id (number) , product_id (number) | products : product_id (number) , product_name (text)


Question: What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_price (number) , product_type_code (text) , product_id (number)


Question: Give the maximum and minimum product prices for each product type, grouped and ordered by product type.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_price (number) , product_type_code (text) , product_id (number)


Question: List the order id, customer id for orders in Cancelled status, ordered by their order dates.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)


Question: What are the order ids and customer ids for orders that have been Cancelled, sorted by their order dates?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)


Question: Find the names of products that were bought by at least two distinct customers.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

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


Question: What are the distinct names of products purchased by at least two different customers?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

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


Question: Find the names of customers who have bought by at least three distinct products.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number)


Question: What are the distinct names of customers who have purchased at least three different products?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_name (text) , customer_id (number) | customer_orders : customer_id (number) , order_id (number) | order_items : order_id (number) , product_id (number) , order_item_id (number)


Question: Find the name and gender of the staff who has been assigned the job of Sales Person but never Clerical Staff.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

staff : staff_name (text) , staff_gender (text) , staff_id (number) | staff_department_assignments : staff_id (number) , job_title_code (text)


Question: What are the names and genders of staff who have held the title Sales Person, but never Clerical Staff?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

staff : staff_name (text) , staff_gender (text) , staff_id (number) | staff_department_assignments : staff_id (number) , job_title_code (text)


Question: Find the id and name of customers whose address contains WY state and do not use credit card for payment.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_id (number) , customer_name (text) , customer_address (text) , payment_method_code (text)


Question: What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

customers : customer_id (number) , customer_name (text) , customer_address (text) , payment_method_code (text)


Question: Find the average price of all product clothes.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_price (number) , product_type_code (text) , product_id (number)


Question: What is the average price of clothes?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_price (number) , product_type_code (text) , product_id (number)


Question: Find the name of the most expensive hardware product.

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_name (text) , product_type_code (text) , product_price (number) , product_id (number)


Question: What is the name of the hardware product with the greatest price?

addresses : address_id (number) , address_details (text) | staff : staff_id (number) , staff_gender (text) , staff_name (text) | suppliers : supplier_id (number) , supplier_name (text) , supplier_phone (text) | department_store_chain : dept_store_chain_id (number) , dept_store_chain_name (text) | customers : customer_id (number) , payment_method_code (text) , customer_code (text) , customer_name (text) , customer_address (text) , customer_phone (text) , customer_email (text) | products : product_id (number) , product_type_code (text) , product_name (text) , product_price (number) | supplier_addresses : supplier_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_addresses : customer_id (number) , address_id (number) , date_from (time) , date_to (time) | customer_orders : order_id (number) , customer_id (number) , order_status_code (text) , order_date (time) | department_stores : dept_store_id (number) , dept_store_chain_id (number) , store_name (text) , store_address (text) , store_phone (text) , store_email (text) | departments : department_id (number) , dept_store_id (number) , department_name (text) | order_items : order_item_id (number) , order_id (number) , product_id (number) | product_suppliers : product_id (number) , supplier_id (number) , date_supplied_from (time) , date_supplied_to (time) , total_amount_purchased (text) , total_value_purchased (number) | staff_department_assignments : staff_id (number) , department_id (number) , date_assigned_from (time) , job_title_code (text) , date_assigned_to (time)

products : product_name (text) , product_type_code (text) , product_price (number) , product_id (number)


Question: How many aircrafts are there?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number)


Question: What is the number of aircraft?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number)


Question: List the description of all aircrafts.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : description (text) , aircraft (text) , aircraft_id (number)


Question: What are the descriptions for the aircrafts?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : description (text) , aircraft (text) , aircraft_id (number)


Question: What is the average number of international passengers of all airports?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , airport_id (number)


Question: What is the average number of international passengers for an airport?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , airport_id (number)


Question: What are the number of international and domestic passengers of the airport named London "Heathrow"?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , domestic_passengers (number) , airport_name (text) , airport_id (number)


Question: How many international and domestic passengers are there in the airport London Heathrow?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , domestic_passengers (number) , airport_name (text) , airport_id (number)


Question: What are the total number of Domestic Passengers of airports that contain the word "London".

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : domestic_passengers (number) , airport_name (text) , airport_id (number)


Question: What are the total number of domestic passengers at all London airports?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : domestic_passengers (number) , airport_name (text) , airport_id (number)


Question: What are the maximum and minimum number of transit passengers of all aiports.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : transit_passengers (number) , airport_id (number)


Question: What is the maximum and mininum number of transit passengers for all airports?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : transit_passengers (number) , airport_id (number)


Question: What are the name of pilots aged 25 or older?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: what is the name of every pilot who is at least 25 years old?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: List all pilot names in ascending alphabetical order.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)


Question: What are the names of the pilots in alphabetical order?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)


Question: List names of all pilot aged 30 or younger in descending alphabetical order.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: What are the names of all pilots 30 years old or young in descending alphabetical order?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: Please show the names of aircrafts associated with airport with name "London Gatwick".

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , airport_name (text)


Question: What are the names of all the aircrafts associated with London Gatwick airport?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , airport_name (text)


Question: Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , description (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , total_passengers (number)


Question: What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , description (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , total_passengers (number)


Question: What is the average total number of passengers of airports that are associated with aircraft "Robinson R-22"?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : total_passengers (number) , airport_id (number) | aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number)


Question: What is the average total number of passengers for all airports that the aircraft "Robinson R-22" visits?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : total_passengers (number) , airport_id (number) | aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number)


Question: Please list the location and the winning aircraft name.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

match : location (text) , winning_aircraft (text) , round (number) | aircraft : aircraft (text) , aircraft_id (number)


Question: What is the location and name of the winning aircraft?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

match : location (text) , winning_aircraft (text) , round (number) | aircraft : aircraft (text) , aircraft_id (number)


Question: List the name of the aircraft that has been named winning aircraft the most number of times.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: What is the name of the aircraft that has won an award the most?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: List the names of aircrafts and the number of times it won matches.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: For each aircraft that has won an award, what is its name and how many time has it won?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: List names of all pilot in descending order of age.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: What are the names of all pilots listed by descending age?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number)


Question: List the names of aircrafts and that won matches at least twice.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: What are the names of all aircrafts that have won a match at least twice?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: List the names of aircrafts and that did not win any match.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: What are the names of all aicrafts that have never won any match?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | match : winning_aircraft (text) , round (number)


Question: Show the names of aircrafts that are associated with both an airport named "London Heathrow" and an airport named "London Gatwick"

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , airport_name (text)


Question: What are the names of all aircrafts that are associated with both London Heathrow and Gatwick airports?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

aircraft : aircraft (text) , aircraft_id (number) | airport_aircraft : aircraft_id (number) , airport_id (number) | airport : airport_id (number) , airport_name (text)


Question: Show all information on the airport that has the largest number of international passengers.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , airport_id (number)


Question: What is all the information on the airport with the largest number of international passengers?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

airport : international_passengers (number) , airport_id (number)


Question: find the name and age of the pilot who has won the most number of times among the pilots who are younger than 30.

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number) | match : winning_pilot (text) , round (number)


Question: What is the name and age of the pilot younger than 30 who has won the most number of times?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number) | match : winning_pilot (text) , round (number)


Question: what is the name and age of the youngest winning pilot?

pilot : pilot_id (number) , name (text) , age (number) | aircraft : aircraft_id (number) , aircraft (text) , description (text) , max_gross_weight (text) , total_disk_area (text) , max_disk_loading (text) | match : round (number) , location (text) , country (text) , date (text) , fastest_qualifying (text) , winning_pilot (text) , winning_aircraft (text) | airport : airport_id (number) , airport_name (text) , total_passengers (number) , %_change_2007 (text) , international_passengers (number) , domestic_passengers (number) , transit_passengers (number) , aircraft_movements (number) , freight_metric_tonnes (number) | airport_aircraft : id (number) , airport_id (number) , aircraft_id (number)

pilot : name (text) , age (number) , pilot_id (number) | match : winning_pilot (text) , round (number)