Question: Find the name of the room with the maximum occupancy.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , maxoccupancy (number)


Question: What is the name of the room that can accommodate the most people?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , maxoccupancy (number)


Question: Find the id and name of the most expensive base price room.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) , roomname (text) , baseprice (number)


Question: Which room has the highest base price?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) , roomname (text) , baseprice (number)


Question: List the type of bed and name of all traditional rooms.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , bedtype (text) , decor (text)


Question: What are the bed type and name of all the rooms with traditional decor?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , bedtype (text) , decor (text)


Question: Find the number of rooms with king bed for each decor type.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , bedtype (text) , roomid (text)


Question: How many rooms have king beds? Report the number for each decor type.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , bedtype (text) , roomid (text)


Question: Find the average and minimum price of the rooms in different decor.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , baseprice (number)


Question: What is the average minimum and price of the rooms for each different decor.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , baseprice (number)


Question: List the name of all rooms sorted by their prices.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: Sort all the rooms according to the price. Just report the room names.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: Find the number of rooms with price higher than 120 for different decor.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , baseprice (number) , roomid (text)


Question: How many rooms cost more than 120, for each different decor?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : decor (text) , baseprice (number) , roomid (text)


Question: For each bed type, find the average room price.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : bedtype (text) , baseprice (number)


Question: What is the average base price of rooms, for each bed type?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : bedtype (text) , baseprice (number)


Question: List the name of rooms with king or queen bed.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , bedtype (text)


Question: What are the names of rooms that have either king or queen bed?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , bedtype (text)


Question: How many different types of beds are there?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)


Question: Find the number of distinct bed types available in this inn.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)


Question: Find the name and id of the top 3 expensive rooms.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) , roomname (text) , baseprice (number)


Question: What are the name and id of the three highest priced rooms?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) , roomname (text) , baseprice (number)


Question: Find the name of rooms whose price is higher than the average price.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: What are the name of rooms that cost more than the average.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: Find the number of rooms that do not have any reservation.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) | reservations : room (text) , code (number)


Question: How many rooms have not had any reservation yet?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomid (text) | reservations : room (text) , code (number)


Question: Return the name and number of reservations made for each of the rooms.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)


Question: For each room, find its name and the number of times reservations were made for it.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)


Question: Find the names of rooms that have been reserved for more than 60 times.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)


Question: What are the names of rooms whose reservation frequency exceeds 60 times?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , code (number)


Question: Find the name of rooms whose base price is between 120 and 150.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: Which rooms cost between 120 and 150? Give me the room names.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , baseprice (number)


Question: Find the name of rooms booked by some customers whose first name contains ROY.

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , firstname (text)


Question: What are the name of rooms booked by customers whose first name has "ROY" in part?

rooms : roomid (text) , roomname (text) , beds (number) , bedtype (text) , maxoccupancy (number) , baseprice (number) , decor (text) | reservations : code (number) , room (text) , checkin (text) , checkout (text) , rate (number) , lastname (text) , firstname (text) , adults (number) , kids (number)

rooms : roomname (text) , roomid (text) | reservations : room (text) , firstname (text)


Question: what are the details of the cmi masters that have the cross reference code 'Tax'?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

customer_master_index : cmi_details (text) , master_customer_id (number) | cmi_cross_references : master_customer_id (number) , source_system_code (text)


Question: What is the cmi cross reference id that is related to at least one council tax entry? List the cross reference id and source system code.

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : cmi_cross_ref_id (number) , source_system_code (text) | council_tax : cmi_cross_ref_id (number) , council_tax_id (number)


Question: How many business rates are related to each cmi cross reference? List cross reference id, master customer id and the n

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) | business_rates : cmi_cross_ref_id (number) , business_rates_id (number)


Question: What is the tax source system code related to the benefits and overpayments? List the code and the benifit id, order by benifit id.

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : source_system_code (text) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number)


Question: Wat is the tax source system code and master customer id of the taxes related to each parking fine id?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : source_system_code (text) , master_customer_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number)


Question: What are the renting arrears tax ids related to the customer master index whose detail is not 'Schmidt, Kertzmann and Lubowitz'?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) | customer_master_index : master_customer_id (number) , cmi_details (text)


Question: What are the register ids of electoral registries that have the cross reference source system code 'Electoral' or 'Tax'?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number) | cmi_cross_references : cmi_cross_ref_id (number) , source_system_code (text)


Question: How many different source system code for the cmi cross references are there?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : source_system_code (text)


Question: List all information about customer master index, and sort them by details in descending order.

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

customer_master_index : cmi_details (text) , master_customer_id (number)


Question: List the council tax ids and their related cmi cross references of all the parking fines.

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)


Question: How many council taxes are collected for renting arrears ?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)


Question: What are the distinct cross reference source system codes which are related to the master customer details 'Gottlieb, Becker and Wyman'?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : source_system_code (text) , master_customer_id (number) | customer_master_index : master_customer_id (number) , cmi_details (text)


Question: Which cmi cross reference id is not related to any parking taxes?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : cmi_cross_ref_id (number) | parking_fines : cmi_cross_ref_id (number)


Question: Which distinct source system code includes the substring 'en'?

customer_master_index : master_customer_id (number) , cmi_details (text) | cmi_cross_references : cmi_cross_ref_id (number) , master_customer_id (number) , source_system_code (text) | council_tax : council_tax_id (number) , cmi_cross_ref_id (number) | business_rates : business_rates_id (number) , cmi_cross_ref_id (number) | benefits_overpayments : council_tax_id (number) , cmi_cross_ref_id (number) | parking_fines : council_tax_id (number) , cmi_cross_ref_id (number) | rent_arrears : council_tax_id (number) , cmi_cross_ref_id (number) | electoral_register : electoral_register_id (number) , cmi_cross_ref_id (number)

cmi_cross_references : source_system_code (text)


Question: How many parties are there?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: Count the number of parties.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: List the themes of parties in ascending order of number of hosts.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , number_of_hosts (number)


Question: What are the themes of parties ordered by the number of hosts in ascending manner?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , number_of_hosts (number)


Question: What are the themes and locations of parties?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , location (text)


Question: Give me the theme and location of each party.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , location (text)


Question: Show the first year and last year of parties with theme "Spring" or "Teqnology".

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : first_year (text) , last_year (text) , party_theme (text)


Question: What are the first year and last year of the parties whose theme is "Spring" or "Teqnology"?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : first_year (text) , last_year (text) , party_theme (text)


Question: What is the average number of hosts for parties?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: Compute the average number of hosts for parties.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: What is the location of the party with the most hosts?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , number_of_hosts (number)


Question: Which party had the most hosts? Give me the party location.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , number_of_hosts (number)


Question: Show different nationalities along with the number of hosts of each nationality.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : nationality (text) , host_id (number)


Question: How many hosts does each nationality have? List the nationality and the count.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : nationality (text) , host_id (number)


Question: Show the most common nationality of hosts.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : nationality (text) , host_id (number)


Question: Which nationality has the most hosts?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : nationality (text) , host_id (number)


Question: Show the nations that have both hosts older than 45 and hosts younger than 35.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: Which nations have both hosts of age above 45 and hosts of age below 35?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)


Question: Show the themes of parties and the names of the party hosts.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , party_id (number) | host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number)


Question: For each party, return its theme and the name of its host.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : party_theme (text) , party_id (number) | host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number)


Question: Show the locations of parties and the names of the party hosts in ascending order of the age of the host.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , party_id (number) | host : name (text) , host_id (number) , age (text) | party_host : host_id (number) , party_id (number)


Question: For each party, find its location and the name of its host. Sort the result in ascending order of the age of the host.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , party_id (number) | host : name (text) , host_id (number) , age (text) | party_host : host_id (number) , party_id (number)


Question: Show the locations of parties with hosts older than 50.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , party_id (number) | host : host_id (number) , age (text) | party_host : host_id (number) , party_id (number)


Question: Which parties have hosts of age above 50? Give me the party locations.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

party : location (text) , party_id (number) | host : host_id (number) , age (text) | party_host : host_id (number) , party_id (number)


Question: Show the host names for parties with number of hosts greater than 20.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number) | party : party_id (number) , number_of_hosts (number)


Question: Which parties have more than 20 hosts? Give me the host names for these parties.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , host_id (number) | party_host : host_id (number) , party_id (number) | party : party_id (number) , number_of_hosts (number)


Question: Show the name and the nationality of the oldest host.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , nationality (text) , age (text)


Question: What are the name and the nationality of the host of the highest age?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , nationality (text) , age (text)


Question: List the names of hosts who did not serve as a host of any party in our record.

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , host_id (number) | party_host : host_id (number)


Question: What are the names of hosts who did not host any party in our record?

party : party_id (number) , party_theme (text) , location (text) , first_year (text) , last_year (text) , number_of_hosts (number) | host : host_id (number) , name (text) , nationality (text) , age (text) | party_host : party_id (number) , host_id (number) , is_main_in_charge (others)

host : name (text) , host_id (number) | party_host : host_id (number)


Question: How many regions do we have?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Count the number of regions.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Show all region code and region name sorted by the codes.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_code (text) , region_name (text)


Question: What are the codes and names for all regions, sorted by codes?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_code (text) , region_name (text)


Question: List all region names in alphabetical order.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


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

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Show names for all regions except for Denmark.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Return the names of all regions other than Denmark.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: How many storms had death records?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : number_deaths (number) , storm_id (number)


Question: Count the number of storms in which at least 1 person died.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : number_deaths (number) , storm_id (number)


Question: List name, dates active, and number of deaths for all storms with at least 1 death.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , dates_active (text) , number_deaths (number)


Question: What are the names, dates active, and number of deaths for storms that had 1 or more death?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , dates_active (text) , number_deaths (number)


Question: Show the average and maximum damage for all storms with max speed higher than 1000.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : damage_millions_usd (number) , max_speed (number)


Question: What is the average and maximum damage in millions for storms that had a max speed over 1000?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : damage_millions_usd (number) , max_speed (number)


Question: What is the total number of deaths and damage for all storms with a max speed greater than the average?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : number_deaths (number) , damage_millions_usd (number) , max_speed (number)


Question: Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : number_deaths (number) , damage_millions_usd (number) , max_speed (number)


Question: List name and damage for all storms in a descending order of max speed.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , damage_millions_usd (number) , max_speed (number)


Question: What are the names and damage in millions for storms, ordered by their max speeds descending?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , damage_millions_usd (number) , max_speed (number)


Question: How many regions are affected?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Count the number of different affected regions.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)


Question: Show the name for regions not affected.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: What are the names of regions that were not affected?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: Show the name for regions and the number of storms for each region.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: How many storms occured in each region?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: List the name for storms and the number of affected regions for each storm.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: How many regions were affected by each storm?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: What is the storm name and max speed which affected the greatest number of regions?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , max_speed (number) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: Return the name and max speed of the storm that affected the most regions.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , max_speed (number) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: Show the name of storms which don't have affected region in record.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number)


Question: What are the names of storms that did not affect any regions?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number)


Question: Show storm name with at least two regions and 10 cities affected.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , number_city_affected (number) , region_id (number)


Question: What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , number_city_affected (number) , region_id (number)


Question: Show all storm names except for those with at least two affected regions.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: What are the names of storms that did not affect two or more regions?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | affected_region : storm_id (number) , region_id (number)


Question: What are the region names affected by the storm with a number of deaths of least 10?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) | storm : storm_id (number) , number_deaths (number)


Question: Return the names of the regions affected by storms that had a death count of at least 10.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) | storm : storm_id (number) , number_deaths (number)


Question: Show all storm names affecting region "Denmark".

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | region : region_id (number) , region_name (text) | affected_region : region_id (number) , storm_id (number)


Question: What are the names of the storms that affected Denmark?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | region : region_id (number) , region_name (text) | affected_region : region_id (number) , storm_id (number)


Question: Show the region name with at least two storms.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: What are the names of regions with two or more storms?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number)


Question: Find the names of the regions which were affected by the storm that killed the greatest number of people.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) | storm : storm_id (number) , number_deaths (number)


Question: What are the names of regions that were affected by the storm in which the most people died?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

region : region_name (text) , region_id (number) | affected_region : region_id (number) , storm_id (number) | storm : storm_id (number) , number_deaths (number)


Question: Find the name of the storm that affected both Afghanistan and Albania regions.

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | region : region_id (number) , region_name (text) | affected_region : region_id (number) , storm_id (number)


Question: What are the names of the storms that affected both the regions of Afghanistan and Albania?

storm : storm_id (number) , name (text) , dates_active (text) , max_speed (number) , damage_millions_usd (number) , number_deaths (number) | region : region_id (number) , region_code (text) , region_name (text) | affected_region : region_id (number) , storm_id (number) , number_city_affected (number)

storm : name (text) , storm_id (number) | region : region_id (number) , region_name (text) | affected_region : region_id (number) , storm_id (number)


Question: How many counties are there in total?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Count the total number of counties.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the county name and population of all counties.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: What are the name and population of each county?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Show the average population of all counties.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: On average how large is the population of the counties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Return the maximum and minimum population among all counties.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: What are the maximum and minimum population of the counties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show all the distinct districts for elections.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: What are the distinct districts for elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the zip code of the county with name "Howard".

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : zip_code (text) , county_name (text)


Question: What is the zip code the county named "Howard" is located in?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : zip_code (text) , county_name (text)


Question: Show the delegate from district 1 in election.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number)


Question: Who is the delegate of district 1 in the elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number)


Question: Show the delegate and committee information of elections.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , committee (text)


Question: What are the delegate and committee information for each election record?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , committee (text)


Question: How many distinct governors are there?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Count the number of distinct governors.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the lieutenant governor and comptroller from the democratic party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : lieutenant_governor (text) , comptroller (text) , party (text)


Question: Who are the lieutenant governor and comptroller from the democratic party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : lieutenant_governor (text) , comptroller (text) , party (text)


Question: In which distinct years was the governor "Eliot Spitzer"?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : year (number) , party (text) , governor (text)


Question: Find the distinct years when the governor was named "Eliot Spitzer".

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : year (number) , party (text) , governor (text)


Question: Show all the information about election.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Return all the information for each election record.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the delegates and the names of county they belong to.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_name (text) , county_id (number)


Question: What are the delegate and name of the county they belong to, for each county?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_name (text) , county_id (number)


Question: Which delegates are from counties with population smaller than 100000?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_id (number) , population (number)


Question: Find the delegates who are from counties with population below 100000.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_id (number) , population (number)


Question: How many distinct delegates are from counties with population larger than 50000?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_id (number) , population (number)


Question: Count the number of distinct delegates who are from counties with population above 50000.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , district (number) | county : county_id (number) , population (number)


Question: What are the names of the county that the delegates on "Appropriations" committee belong to?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , committee (text)


Question: Which county do the delegates on "Appropriations" committee belong to? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , committee (text)


Question: Show the delegates and the names of the party they belong to.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , party (number) | party : party (text) , party_id (number)


Question: For each delegate, find the names of the party they are part of.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : delegate (text) , party (number) | party : party (text) , party_id (number)


Question: Who were the governors of the parties associated with delegates from district 1?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , district (number)


Question: Find the parties associated with the delegates from district 1. Who served as governors of the parties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number) | election : party (number) , district (number)


Question: Who were the comptrollers of the parties associated with the delegates from district 1 or district 2?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) | election : party (number) , district (number)


Question: Find the parties associated with the delegates from district 1 or 2. Who served as comptrollers of the parties?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number) | election : party (number) , district (number)


Question: Return all the committees that have delegates from Democratic party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) | party : party (text) , party_id (number)


Question: Which committees have delegates from the Democratic party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) | party : party (text) , party_id (number)


Question: Show the name of each county along with the corresponding number of delegates from that county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , election_id (number)


Question: For each county, find the name of the county and the number of delegates from that county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , election_id (number)


Question: Show the name of each party and the corresponding number of delegates from that party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: For each party, return the name of the party and the number of delegates from that party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Return the names of all counties sorted by population in ascending order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Sort the names of all counties in ascending order of population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Return the names of all counties sorted by county name in descending alphabetical order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Sort the names of all counties in descending alphabetical order.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)


Question: Show the name of the county with the biggest population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Which county has the largest population? Give me the name of the county.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Show the 3 counties with the smallest population.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: What are the 3 counties that have the smallest population? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , population (number)


Question: Show the names of counties that have at least two delegates.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , election_id (number)


Question: Which counties have two or more delegates? Give me the county names.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

county : county_name (text) , county_id (number) | election : district (number) , election_id (number)


Question: Show the name of the party that has at least two records.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number)


Question: Which party has two or more records?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number)


Question: Show the name of the party that has the most delegates.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Which party has the largest number of delegates?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , election_id (number)


Question: Show the people that have been governor the most times.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number)


Question: Which people severed as governor most frequently?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : governor (text) , party (text) , party_id (number)


Question: Show the people that have been comptroller the most times and the corresponding number of times.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number)


Question: Which people severed as comptroller most frequently? Give me the name of the person and the frequency count.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : comptroller (text) , party (text) , party_id (number)


Question: What are the names of parties that do not have delegates in election?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number)


Question: Which parties did not have any delegates in elections?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number)


Question: What are the names of parties that have both delegates on "Appropriations" committee and

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , committee (text)


Question: Which parties have delegates in both the "Appropriations" committee and the "Economic Matters" committee?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

party : party (text) , party_id (number) | election : party (number) , committee (text)


Question: Which committees have delegates from both democratic party and liberal party?

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) | party : party (text) , party_id (number)


Question: Find the committees that have delegates both from from the democratic party and the liberal party.

county : county_id (number) , county_name (text) , population (number) , zip_code (text) | party : party_id (number) , year (number) , party (text) , governor (text) , lieutenant_governor (text) , comptroller (text) , attorney_general (text) , us_senate (text) | election : election_id (number) , counties_represented (text) , district (number) , delegate (text) , party (number) , first_elected (number) , committee (text)

election : committee (text) , party (number) | party : party (text) , party_id (number)


Question: How many journalists are there?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)


Question: List the names of journalists in ascending order of years working.

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : name (text) , years_working (number)


Question: What are the nationalities and ages of journalists?

event : event_id (number) , date (text) , venue (text) , name (text) , event_attendance (number) | journalist : journalist_id (number) , name (text) , nationality (text) , age (text) , years_working (number) | news_report : journalist_id (number) , event_id (number) , work_type (text)

journalist : nationality (text) , age (text)