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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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)


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) | 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) | 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)


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)


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)


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)


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)


Question: How old is the youngest winning pilot and what is their 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)

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


Question: find the name of pilots who did not win the matches held in the country of Australia.

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) , pilot_id (number) | match : winning_pilot (text) , country (text)


Question: What are the names of the pilots that have not won any matches in Australia?

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) , pilot_id (number) | match : winning_pilot (text) , country (text)


Question: How many residents does each property have? List property id and resident count.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

properties : property_id (number) | residents : property_id (number) , resident_id (number)


Question: What is the distinct service types that are provided by the organization which has detail 'Denesik and Sons Party'?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

services : service_type_code (text) , organization_id (number) | organizations : organization_id (number) , organization_details (text)


Question: How many services has each resident requested? List the resident id, details, and the count in descending order of the count.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

residents : resident_id (number) , other_details (text) | residents_services : resident_id (number) , other_details (text)


Question: What is the maximum number that a certain service is provided? List the service id, details and number.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

services : service_id (number) , service_details (text) | residents_services : service_id (number) , resident_id (number)


Question: List the id and type of each thing, and the details of the organization that owns it.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

things : thing_id (number) , type_of_thing_code (text) , organization_id (number) | organizations : organization_details (text) , organization_id (number)


Question: What are the id and details of the customers who have at least 3 events?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

customers : customer_id (number) , customer_details (text) | customer_events : customer_id (number) , customer_event_id (number)


Question: What is each customer's move in date, and the corresponding customer id and details?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

customer_events : date_moved_in (time) , customer_id (number) | customers : customer_id (number) , customer_details (text)


Question: Which events have the number of notes between one and three? List the event id and the property id.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

customer_events : customer_event_id (number) , property_id (number) | customer_event_notes : customer_event_id (number) , property_id (number) , customer_event_note_id (number)


Question: What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

things : thing_id (number) , type_of_thing_code (text) | timed_status_of_things : thing_id (number) , status_of_thing_code (text) , date_and_date (time)


Question: How many distinct locations have the things with service detail 'Unsatisfied' been located in?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

timed_locations_of_things : location_code (text) , thing_id (number) | things : thing_id (number) , service_details (text)


Question: How many different status codes of things are there?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

timed_status_of_things : status_of_thing_code (text)


Question: Which organizations are not a parent organization of others? List the organization id.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)


Question: When is the last day any resident moved in?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)


Question: What are the resident details containing the substring 'Miss'?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)


Question: List the customer event id and the corresponding move in date and property id.

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

customer_events : customer_event_id (number) , date_moved_in (time) , property_id (number)


Question: How many customers did not have any event?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)

customers : customer_id (number) | customer_events : customer_id (number) , customer_event_id (number)


Question: What are the distinct move in dates of the residents?

customers : customer_id (number) , customer_details (text) | properties : property_id (number) , property_type_code (text) , property_address (text) , other_details (text) | residents : resident_id (number) , property_id (number) , date_moved_in (time) , date_moved_out (time) , other_details (text) | organizations : organization_id (number) , parent_organization_id (number) , organization_details (text) | services : service_id (number) , organization_id (number) , service_type_code (text) , service_details (text) | residents_services : resident_id (number) , service_id (number) , date_moved_in (time) , property_id (number) , date_requested (time) , date_provided (time) , other_details (text) | things : thing_id (number) , organization_id (number) , type_of_thing_code (text) , service_type_code (text) , service_details (text) | customer_events : customer_event_id (number) , customer_id (number) , date_moved_in (time) , property_id (number) , resident_id (number) , thing_id (number) | customer_event_notes : customer_event_note_id (number) , customer_event_id (number) , service_type_code (text) , resident_id (number) , property_id (number) , date_moved_in (time) | timed_status_of_things : thing_id (number) , date_and_date (time) , status_of_thing_code (text) | timed_locations_of_things : thing_id (number) , date_and_time (time) , location_code (text)


Question: How many schools are there?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : school (text) , school_id (number)


Question: Count the number of schools.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : school (text) , school_id (number)


Question: List the locations of schools in ascending order of enrollment.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , enrollment (number)


Question: What is the list of school locations sorted in ascending order of school enrollment?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , enrollment (number)


Question: List the locations of schools in descending order of founded year.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , founded (number)


Question: What is the list of school locations sorted in descending order of school foundation year?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , founded (number)


Question: What are the enrollments of schools whose denomination is not "Catholic"?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : enrollment (number) , school (text) , denomination (text)


Question: List the enrollment for each school that does not have "Catholic" as denomination.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : enrollment (number) , school (text) , denomination (text)


Question: What is the average enrollment of schools?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : enrollment (number) , school (text)


Question: Take the average of the school enrollment.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : enrollment (number) , school (text)


Question: What are the teams of the players, sorted in ascending alphabetical order?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)


Question: Find the team of each player and sort them in ascending alphabetical order.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)


Question: How many different positions of players are there?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : position (text) , player (text)


Question: Count the number of distinct player positions.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : position (text) , player (text)


Question: Find the team of the player of the highest age.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , age (number)


Question: Which team has the oldest player?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , age (number)


Question: List the teams of the players with the top 5 largest ages.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , age (number)


Question: What are the teams that have the 5 oldest players?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , age (number)


Question: For each player, show the team and the location of school they belong to.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , school_id (number) | school : location (text) , school (text) , school_id (number)


Question: What are the team and the location of school each player belongs to?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

player : team (text) , player (text) , school_id (number) | school : location (text) , school (text) , school_id (number)


Question: Show the locations of schools that have more than 1 player.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | player : player (text) , school_id (number) , player_id (number)


Question: Which schools have more than 1 player? Give me the school locations.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | player : player (text) , school_id (number) , player_id (number)


Question: Show the denomination of the school that has the most players.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number) | player : player (text) , school_id (number) , player_id (number)


Question: What is the denomination of the school the most players belong to?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number) | player : player (text) , school_id (number) , player_id (number)


Question: Show locations and nicknames of schools.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | school_details : nickname (text) , school_id (number)


Question: What are the location and nickname of each school?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | school_details : nickname (text) , school_id (number)


Question: Please show different denominations and the corresponding number of schools.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number)


Question: For each denomination, return the denomination and the count of schools with that denomination.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number)


Question: Please show different denominations and the corresponding number of schools in descending order.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number)


Question: Order denominations in descending order of the count of schools with the denomination. Return each denomination with the count of schools.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number)


Question: List the school color of the school that has the largest enrollment.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : school_colors (text) , school (text) , enrollment (number)


Question: What is the school color of the school with the largest enrollment?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : school_colors (text) , school (text) , enrollment (number)


Question: List the locations of schools that do not have any player.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | player : school_id (number) , player (text)


Question: Which schools do not have any player? Give me the school locations.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : location (text) , school (text) , school_id (number) | player : school_id (number) , player (text)


Question: Show the denomination shared by schools founded before 1890 and schools founded after 1900

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , founded (number)


Question: What are the denominations used by both schools founded before 1890 and schools founded  after 1900?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , founded (number)


Question: Show the nicknames of schools that are not in division 1.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school_details : nickname (text) , division (text)


Question: What are the nicknames of schools whose division is not 1?

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school_details : nickname (text) , division (text)


Question: Show the denomination shared by more than one school.

school : school_id (number) , school (text) , location (text) , enrollment (number) , founded (number) , denomination (text) , boys_or_girls (text) , day_or_boarding (text) , year_entered_competition (number) , school_colors (text) | school_details : school_id (number) , nickname (text) , colors (text) , league (text) , class (text) , division (text) | school_performance : school_id (number) , school_year (text) , class_a (text) , class_aa (text) | player : player_id (number) , player (text) , team (text) , age (number) , position (text) , school_id (number)

school : denomination (text) , school (text) , school_id (number)