Question: List the names of counties in descending order of population.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , population (number) , county_id (number)


Question: What are the names of the counties of public safety, ordered by population descending?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , population (number) , county_id (number)


Question: List the distinct police forces of counties whose location is not on east side.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , location (text) , county_id (number)


Question: What are the different police forces of counties that are not located in the East?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , location (text) , county_id (number)


Question: What are the minimum and maximum crime rate of counties?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , county_id (number)


Question: Return the minimum and maximum crime rates across all counties.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , county_id (number)


Question: Show the crime rates of counties in ascending order of number of police officers.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , police_officers (number) , county_id (number)


Question: What are the crime rates of counties sorted by number of offices ascending?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , police_officers (number) , county_id (number)


Question: What are the names of cities in ascending alphabetical order?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)


Question: Return the names of cities, ordered alphabetically.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)


Question: What are the percentage of hispanics in cities with the black percentage higher than 10?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : hispanic (number) , black (number) , city_id (number)


Question: Return the hispanic percentage for cities in which the black percentage is greater than 10.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : hispanic (number) , black (number) , city_id (number)


Question: List the name of the county with the largest population.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , population (number) , county_id (number)


Question: What is the name of the county with the greatest population?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , population (number) , county_id (number)


Question: List the names of the city with the top 5 white percentages.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : name (text) , white (number) , city_id (number)


Question: What are the names of the five cities with the greatest proportion of white people?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : name (text) , white (number) , city_id (number)


Question: Show names of cities and names of counties they are in.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) | city : name (text) , county_id (number) , city_id (number)


Question: What are the names of cities, as well as the names of the counties they correspond to?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) | city : name (text) , county_id (number) , city_id (number)


Question: Show white percentages of cities and the crime rates of counties they are in.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : white (number) , county_id (number) , city_id (number) | county_public_safety : crime_rate (number) , county_id (number)


Question: What are the white percentages of cities, and the corresponding crime rates of the counties they correspond to?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

city : white (number) , county_id (number) , city_id (number) | county_public_safety : crime_rate (number) , county_id (number)


Question: Show the name of cities in the county that has the largest number of police officers.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) , police_officers (number) | city : name (text) , county_id (number) , city_id (number)


Question: What are the names of cities that are in the county with the most police officers?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) , police_officers (number) | city : name (text) , county_id (number) , city_id (number)


Question: Show the number of cities in counties that have a population more than 20000.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : county_id (number) , population (number) | city : county_id (number) , city_id (number)


Question: How many cities are in counties that have populations of over 20000?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : county_id (number) , population (number) | city : county_id (number) , city_id (number)


Question: Show the crime rate of counties with a city having white percentage more than 90.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , county_id (number) | city : county_id (number) , white (number) , city_id (number)


Question: What are the crime rates of counties that contain cities that have white percentages of over 90?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : crime_rate (number) , county_id (number) | city : county_id (number) , white (number) , city_id (number)


Question: Please show the police forces and the number of counties with each police force.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , county_id (number)


Question: How many counties correspond to each police force?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , county_id (number)


Question: What is the location shared by most counties?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : location (text) , county_id (number)


Question: Which location has the most corresponding counties?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : location (text) , county_id (number)


Question: List the names of counties that do not have any cities.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) | city : name (text) , county_id (number) , city_id (number)


Question: What are the names of counties that do not contain any cities?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) | city : name (text) , county_id (number) , city_id (number)


Question: Show the police force shared by counties with location on the east and west.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , location (text) , county_id (number)


Question: Which police forces operate in both counties that are located in the East and in the West?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : police_force (text) , location (text) , county_id (number)


Question: Show the names of cities in counties that have a crime rate less than 100.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) , crime_rate (number) | city : name (text) , county_id (number) , city_id (number)


Question: What are the names of cities that are in counties that have a crime rate below 100?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : name (text) , county_id (number) , crime_rate (number) | city : name (text) , county_id (number) , city_id (number)


Question: Show the case burden of counties in descending order of population.

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : case_burden (number) , population (number) , county_id (number)


Question: What are the case burdens of counties, ordered descending by population?

county_public_safety : county_id (number) , name (text) , population (number) , police_officers (number) , residents_per_officer (number) , case_burden (number) , crime_rate (number) , police_force (text) , location (text) | city : city_id (number) , county_id (number) , name (text) , white (number) , black (number) , amerindian (number) , asian (number) , multiracial (number) , hispanic (number)

county_public_safety : case_burden (number) , population (number) , county_id (number)


Question: Find the names of all modern rooms with a base price below $160 and two beds.

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) , beds (number) , decor (text) , roomid (text)


Question: What are the names of modern rooms that have a base price lower than $160 and two beds.

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) , beds (number) , decor (text) , roomid (text)


Question: Find all the rooms that have a price higher than 160 and can accommodate more than 2 people. Report room names and ids.

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) , baseprice (number) , maxoccupancy (number)


Question: What are the room names and ids of all the rooms that cost more than 160 and can accommodate more than two 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) , roomid (text) , baseprice (number) , maxoccupancy (number)


Question: Find the most popular room in the hotel. The most popular room is the room that had seen the largest number of reservations.

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: Which room has the largest number of reservations?

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: How many kids stay in the rooms reserved by ROY SWEAZY?

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)

reservations : kids (number) , firstname (text) , lastname (text) , code (number)


Question: Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.

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)

reservations : kids (number) , firstname (text) , lastname (text) , code (number)


Question: How many times does ROY SWEAZY has reserved a 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)

reservations : firstname (text) , lastname (text) , code (number)


Question: Find the number of times ROY SWEAZY has reserved a 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)

reservations : firstname (text) , lastname (text) , code (number)


Question: Which room has the highest rate? List the room's full name, rate, check in and check out date.

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 : rate (number) , checkin (text) , checkout (text) , room (text) , code (number)


Question: Return the name, rate, check in and check out date for the room with the highest rate.

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 : rate (number) , checkin (text) , checkout (text) , room (text) , code (number)


Question: How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?

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)

reservations : adults (number) , checkin (text) , firstname (text) , lastname (text) , code (number)


Question: Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.

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)

reservations : adults (number) , checkin (text) , firstname (text) , lastname (text) , code (number)


Question: How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?

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)

reservations : kids (number) , checkin (text) , firstname (text) , lastname (text) , code (number)


Question: Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on  Sep 21, 2010.

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)

reservations : kids (number) , checkin (text) , firstname (text) , lastname (text) , code (number)


Question: How many king 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)

rooms : beds (number) , bedtype (text) , roomid (text)


Question: Find the total number of king beds available.

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 : beds (number) , bedtype (text) , roomid (text)


Question: List the names and decor of rooms that have a king bed. Sort the list by their 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) , decor (text) , bedtype (text) , baseprice (number) , roomid (text)


Question: What are the names and decor of rooms with a king bed? Sort them by their 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) , decor (text) , bedtype (text) , baseprice (number) , roomid (text)


Question: Which room has cheapest base price? List the room's name and the 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 : roomname (text) , baseprice (number) , roomid (text)


Question: What are the room name and base price of the room with the lowest 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 : roomname (text) , baseprice (number) , roomid (text)


Question: What is the decor of room Recluse and defiance?

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) , roomname (text) , roomid (text)


Question: Return the decor of the room named "Recluse and defiance".

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) , roomname (text) , roomid (text)


Question: What is the average base price of different bed type? List bed type and average 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 : bedtype (text) , baseprice (number) , roomid (text)


Question: For each bed type, find the average base price of different 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) , roomid (text)


Question: What is the total number of people who could stay in the modern rooms 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)

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


Question: How many people in total can stay in the modern rooms of 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)

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


Question: What kind of decor has the least number of reservations?

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) , roomid (text) | reservations : room (text) , code (number)


Question: What is the least popular kind of 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) , roomid (text) | reservations : room (text) , code (number)


Question: List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.

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)

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


Question: How many times the number of adults and kids staying in a room reached the maximum capacity of the 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)

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


Question: Find the first and last names of people who payed more than the rooms' base 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)

reservations : firstname (text) , lastname (text) , room (text) , rate (number) , code (number) | rooms : roomid (text) , baseprice (number)


Question: What are the first and last names of people who payed more than the rooms' base 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)

reservations : firstname (text) , lastname (text) , room (text) , rate (number) , code (number) | rooms : roomid (text) , baseprice (number)


Question: How many rooms 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: What is the total number of rooms 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 number of rooms with a king 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)


Question: How many rooms have a king 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)


Question: Find the number 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)


Question: What are the number 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)


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) , roomid (text)


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) , roomid (text)


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) , roomid (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) , roomid (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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , roomid (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) , roomid (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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , roomid (text)


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) , code (number)


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) , code (number)


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) , cmi_cross_ref_id (number)


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) , cmi_cross_ref_id (number)


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) , cmi_cross_ref_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) , council_tax_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) , cmi_cross_ref_id (number)


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) , party_id (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) , party_id (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) , party_id (number)


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) , party_id (number)


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) , party_id (number)


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) , party_id (number)


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)

party : number_of_hosts (number) , party_id (number)


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)

party : number_of_hosts (number) , party_id (number)


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) , party_id (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) , party_id (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)

host : nationality (text) , age (text) , host_id (number)


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)

host : nationality (text) , age (text) , host_id (number)


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) , host_id (number)


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) , host_id (number)


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) , party_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) , party_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) , region_id (number)


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) , region_id (number)


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)

region : region_name (text) , region_id (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)

region : region_name (text) , region_id (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)

region : region_name (text) , region_id (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)

region : region_name (text) , region_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , storm_id (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) , region_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) , region_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)