db_id
stringclasses 140
values | question
stringlengths 16
224
| schema
stringclasses 140
values | summarized-schema
stringlengths 18
304
| shrink-score
float64 0
1
|
---|---|---|---|---|
movie_1 | For each director, what is the title and score of their most poorly rated movie? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , director (text) , mid (number) | rating : stars (number) , mid (number) | 0.5 |
movie_1 | What is the name of the movie that is rated by most of times? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) | 0.7 |
movie_1 | What is the name of the movie that has been reviewed the most? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) | 0.7 |
movie_1 | What are the titles of all movies that have rating star is between 3 and 5? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) , stars (number) | 0.6 |
movie_1 | What are the titles of all movies that have between 3 and 5 stars? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) , stars (number) | 0.6 |
movie_1 | Find the names of reviewers who had given higher than 3 star ratings. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | reviewer : name (text) , rid (number) | rating : rid (number) , stars (number) | 0.6 |
movie_1 | What are the names of the reviewers who have rated a movie more than 3 stars before? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | reviewer : name (text) , rid (number) | rating : rid (number) , stars (number) | 0.6 |
movie_1 | Find the average rating star for each movie that are not reviewed by Brittany Harris. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , stars (number) , rid (number) | reviewer : rid (number) , name (text) | 0.5 |
movie_1 | What is the average rating for each movie that has never been reviewed by Brittany Harris? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , stars (number) , rid (number) | reviewer : rid (number) , name (text) | 0.5 |
movie_1 | What are the ids of the movies that are not reviewed by Brittany Harris. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , rid (number) | reviewer : rid (number) , name (text) | 0.6 |
movie_1 | What are the ids of all moviest hat have not been reviewed by Britanny Harris? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , rid (number) | reviewer : rid (number) , name (text) | 0.6 |
movie_1 | Find the average rating star for each movie that received at least 2 ratings. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , stars (number) | 0.8 |
movie_1 | For each movie that received more than 3 reviews, what is the average rating? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : mid (number) , stars (number) | 0.8 |
movie_1 | find the ids of reviewers who did not give 4 star. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : rid (number) , stars (number) | 0.8 |
movie_1 | What are the ids of all reviewers who did not give 4 stars? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : rid (number) , stars (number) | 0.8 |
movie_1 | Find the ids of reviewers who didn't only give 4 star. | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : rid (number) , stars (number) | 0.8 |
movie_1 | What are the ids of all reviewers who have not given 4 stars at least once? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | rating : rid (number) , stars (number) | 0.8 |
movie_1 | What are names of the movies that are either made after 2000 or reviewed by Brittany Harris? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) , year (number) | rating : mid (number) , rid (number) | reviewer : rid (number) , name (text) | 0.3 |
movie_1 | What are the names of all movies that were made after 2000 or reviewed by Brittany Harris? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) , year (number) | rating : mid (number) , rid (number) | reviewer : rid (number) , name (text) | 0.3 |
movie_1 | What are names of the movies that are either made before 1980 or directed by James Cameron? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , director (text) , year (number) | 0.7 |
movie_1 | What are the names of all movies made before 1980 or had James Cameron as the director? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , director (text) , year (number) | 0.7 |
movie_1 | What are the names of reviewers who had rated 3 star and 4 star? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | reviewer : name (text) , rid (number) | rating : rid (number) , stars (number) | 0.6 |
movie_1 | What are the names of all reviewers that have given 3 or 4 stars for reviews? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | reviewer : name (text) , rid (number) | rating : rid (number) , stars (number) | 0.6 |
movie_1 | What are the names of movies that get 3 star and 4 star? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) , stars (number) | 0.6 |
movie_1 | What are the names of all movies that received 3 or 4 stars? | movie : mid (number) , title (text) , year (number) , director (text) | reviewer : rid (number) , name (text) | rating : rid (number) , mid (number) , stars (number) , ratingdate (time) | movie : title (text) , mid (number) | rating : mid (number) , stars (number) | 0.6 |
county_public_safety | How many counties are there? | 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) | 0.944444 |
county_public_safety | Count the number of countries. | 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) | 0.944444 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.944444 |
county_public_safety | 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) | 0.944444 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | city : name (text) | 0.944444 |
county_public_safety | 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) | city : name (text) | 0.944444 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | county_public_safety : crime_rate (number) , county_id (number) | 0.777778 |
county_public_safety | 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) | county_public_safety : crime_rate (number) , county_id (number) | 0.777778 |
county_public_safety | 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) | 0.722222 |
county_public_safety | 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) | 0.722222 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.777778 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.722222 |
county_public_safety | 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) | 0.722222 |
county_public_safety | 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) | 0.888889 |
county_public_safety | 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) | 0.888889 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.625 |
inn_1 | 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) | 0.625 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.75 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.875 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.8125 |
inn_1 | 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) | 0.625 |
inn_1 | 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) | 0.625 |
inn_1 | 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) | rooms : roomid (text) , baseprice (number) | 0.625 |
inn_1 | 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) | rooms : roomid (text) , baseprice (number) | 0.625 |
inn_1 | 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) | rooms : roomid (text) | 0.9375 |