question_id stringlengths 7 9 | question stringlengths 29 436 | table listlengths 1 4 | sql_query stringlengths 41 515 | answer listlengths 0 15.3k | is_nested bool 2
classes | is_aggregated bool 2
classes | height int64 0 3 | breadth dict | max_breadth int64 0 3 | type stringclasses 7
values | clause_usage dict | aggregate_usage dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
movie:100 | How many people have a height of 201, were born before January 1, 1960, and share a birthday with someone who is taller than the tallest person known for the movie "Free Fire"? | [
"names"
] | SELECT COUNT(*) FROM names WHERE name_id IN ( SELECT name_id FROM names WHERE date_of_birth IN ( SELECT date_of_birth FROM names WHERE height > ( SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire' )) AND height = 201 AND date_of_birth < '1960-01-01') | [
"1"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:101 | What is the longest duration of a movie produced by Dongchun Films that is longer than the longest movie which is both (i) rated with a median score above 7 and more than 100 total votes, and (ii) rated with a median of 9 and an average rating above 6.5? | [
"movie",
"ratings"
] | SELECT MAX(duration) FROM movie WHERE duration > (SELECT MAX(duration) FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE median_rating > 7 AND total_votes > 100 ORDER BY avg_rating DESC) AND title IN (SELECT movie_title FROM ratings WHERE median_rating = 9 AND avg_rating > 6.5)) AND production_company = ... | [
"230"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:102 | What are the names of people taller than the average height of people known for the movie 'Gangcheolbi'? | [
"names"
] | SELECT name FROM names WHERE height > (SELECT AVG(height) FROM names WHERE known_for_movie = 'Gangcheolbi') | [
"Maggie Smith",
"Bailey Chase",
"Greg Ellis",
"Lauren Bacall",
"Richard Burton",
"Olivia de Havilland",
"Marlene Dietrich",
"Margaux Hemingway",
"Charlton Heston",
"Alfred Hitchcock",
"Stanley Kubrick",
"Akira Kurosawa",
"Alan Ladd",
"David Niven",
"Tyrone Power",
"Anthony Quinn",
"O... | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:103 | What is the maximum duration of the movies with average rating more than 5.5, median rating of 6, and total votes more than 1000? | [
"movie",
"ratings"
] | SELECT MAX(duration) FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 5.5 AND total_votes > 1000 AND median_rating = 6 AND movie_title = title) | [
"197"
] | true | true | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:104 | How many people are taller than the tallest person who was born in 1970 or later and known for the movie Colossal? | [
"names"
] | SELECT COUNT(name) FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth >= '1970-01-01' AND known_for_movie = 'Colossal') | [
"2"
] | true | true | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:105 | Which people are taller than the tallest person who is known for the movie Free Fire and were born before January 1, 1980? | [
"names"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND date_of_birth < '1980-01-01' | [
"Michael Ritchie",
"Richard Ashton"
] | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:106 | What is the name of the director of the movie titled '5th Passenger'? | [
"director_mapping"
] | SELECT name FROM director_mapping WHERE movie_title = '5th Passenger' | [
"Scotty Baker"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:107 | What are the titles of movies released after 2017 whose country is listed exactly as Ireland, Belgium (in that order, with no additional countries)? | [
"movie"
] | SELECT title FROM movie WHERE year > 2017 AND country = 'Ireland, Belgium' | [
"Extra Ordinary"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:108 | Which countries have movies whose runtime is at least as long as the single longest movie that simultaneously: is at least as long as the longest highly rated title (average rating over 5 and median rating over 5), excluding 'Kirrak Party' and 'Dead Sea'; runs longer than 120; and has worldwide gross income over 100? | [
"movie",
"ratings"
] | SELECT country FROM movie WHERE duration >= ( SELECT MAX(duration) FROM movie WHERE duration >= ( SELECT MAX(duration) FROM movie WHERE title IN ( SELECT movie_title FROM ratings WHERE avg_rating > 5 AND median_rating > 5 AND movie_title = title AND NOT movie_title IN ('Kirrak Party', 'Dead Sea'))) AND duration > 120 A... | [
"Argentina"
] | true | false | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:109 | What is the maximum height among people born after 1960 who are at least as tall as the tallest person born before 1980 whose height is greater than the tallest person known for Free Fire and also greater than the tallest person known for Dusty and Me? | [
"names"
] | SELECT MAX(height) AS max_height FROM names WHERE height >= (SELECT MAX(height) AS max_height FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND date_of_birth < '1980-01-01') AND date_of_bi... | [
"201"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:110 | Which movies were directed by Vivek Athreya? | [
"director_mapping"
] | SELECT movie_title FROM director_mapping WHERE name = 'Vivek Athreya' GROUP BY movie_title | [
"Brochevarevarura",
"Mental Madhilo"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:111 | What is the highest worldwide gross income for movies from India that are longer than 90 minutes? | [
"movie"
] | SELECT MAX(worlwide_gross_income) AS highest_grossing_movie FROM movie WHERE duration > 90 AND country = 'India' | [
"254158390"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:112 | Which movies have an average rating greater than 8, a median rating of 10, and more than 500 total votes, where their average rating is also at least as high as the highest average rating among movies with an average rating above 7 and more than 1000 votes? | [
"ratings"
] | SELECT movie_title FROM ratings WHERE avg_rating >= (SELECT MAX(avg_rating) FROM ratings WHERE avg_rating > 7 AND total_votes > 1000) AND avg_rating > 8 AND median_rating = 10 AND total_votes > 500 GROUP BY movie_title | [
"Kirket",
"Love in Kilnerry"
] | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:113 | Which English-language movies longer than 90 minutes have both an average rating greater than 9 and a median rating of 10, and whose average rating is at least as high as the maximum average rating among all movies (except Smallfoot) with a median rating above 5 and an average rating above 6? | [
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating >= (SELECT MAX(avg_rating) FROM ratings WHERE median_rating > 5 AND avg_rating > 6 AND movie_title <> 'Smallfoot') AND movie_title IN (SELECT title FROM movie WHERE duration > 90 AND languages = 'English' GROUP BY title) AND avg_ra... | [
"Love in Kilnerry"
] | true | false | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:114 | What is the maximum height among people who are not included in those taller than the tallest person known for the movie Free Fire? | [
"names"
] | SELECT MAX(height) FROM names WHERE NOT name_id IN ( SELECT name_id FROM names WHERE height > ( SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire')) | [
"200"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:115 | What are the movie titles that have an average rating greater than the maximum average rating of movies with a median rating of 8, and also have an average rating greater than 8.7, more than 100 total votes, and a median rating of 9, listed in order of highest average rating and then by total votes? | [
"ratings"
] | SELECT movie_title FROM ratings WHERE avg_rating > (SELECT MAX(avg_rating) FROM ratings WHERE median_rating = 8) AND avg_rating > 8.7 AND total_votes > 100 AND median_rating = 9 ORDER BY avg_rating DESC, total_votes DESC | [
"Our Little Haven",
"Adutha Chodyam",
"National Theatre Live: Angels in America Part Two - Perestroika",
"Abstruse",
"Officer Arjun Singh IPS",
"National Theatre Live: Angels in America Part One - Millennium Approaches",
"Distant Sky - Nick Cave & The Bad Seeds Live in Copenhagen",
"My Friend, Tucker"... | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:116 | What is the maximum movie duration for movies that have a duration greater than or equal to the maximum duration of movies with an average rating and median rating greater than 5, excluding the movies Kirrak Party and Dead Sea? | [
"movie",
"ratings"
] | SELECT MAX(duration) AS max_duration FROM movie WHERE duration >= (SELECT MAX(duration) AS max_duration FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 5 AND median_rating > 5 AND movie_title = title AND NOT movie_title IN ('Kirrak Party', 'Dead Sea'))) | [
"808"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:117 | Which people are taller than the tallest person born after January 1, 1970, but were themselves born before January 1, 1970? | [
"names"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth > '1970-01-01') AND date_of_birth < '1970-01-01' | [
"Michael Ritchie",
"Richard Ashton"
] | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:118 | What are the titles of the top 5 movies from the USA released in 2017, ordered by worldwide gross income in descending order and then by title in ascending order? | [
"movie"
] | SELECT title FROM movie WHERE year = 2017 AND country = 'USA' ORDER BY worlwide_gross_income DESC, title ASC LIMIT 5 | [
"11:55",
"12 Feet Deep",
"12 Pound Balls",
"1922",
"1 Buck"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:119 | What are the movie titles directed by John Stevenson? | [
"director_mapping"
] | SELECT movie_title FROM director_mapping WHERE name = 'John Stevenson' | [
"Sherlock Gnomes"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:120 | What is the maximum duration among movies from the USA that are longer than 100 minutes? | [
"movie"
] | SELECT MAX(duration) FROM movie WHERE duration > 100 AND country = 'USA' | [
"209"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:121 | What is the longest movie from Argentina, produced by El Pampero Cine, that has worldwide gross income greater than 0, and is longer than or equal to the longest movie that is longer than or equal to the movie that is longer than or equal to the longest English movie that is longer than 100 minutes? | [
"movie"
] | SELECT MAX(duration) FROM movie WHERE duration >= (SELECT MAX(duration) FROM movie WHERE duration >= (SELECT MAX(duration) FROM movie WHERE duration >= (SELECT MAX(duration) FROM movie WHERE duration > 100 AND languages = 'English'))) AND country = 'Argentina' AND worlwide_gross_income > 0 AND production_company = 'El ... | [
"808"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:122 | What are the production companies of American movies that are over 100 minutes long? | [
"movie"
] | SELECT production_company FROM movie WHERE duration > 100 AND country = 'USA' GROUP BY production_company | [
"Deja Vu (II)",
"Reelhouse Productions",
"Apatow Productions",
"CounterNarrative Films",
"CreativeBionics",
"Fright Teck Pictures",
"Butler Pictures",
"Newroz Films",
"Flashlight Films",
"Clown Town Productions",
"13 Films",
"Haphazard Films",
"Czar Film",
"Acevedo Smith Productions",
"1... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:123 | How many people are taller than the average height of people known for Gangcheolbi and are associated with a movie whose title contains "Fan" or "Red Army Hooligans"? | [
"director_mapping",
"names"
] | SELECT COUNT(name) FROM names WHERE height > (SELECT AVG(height) FROM names WHERE known_for_movie = 'Gangcheolbi') AND name IN (SELECT name FROM director_mapping WHERE (movie_title LIKE '%Fan%' OR movie_title LIKE '%Red Army Hooligans%') AND name_id = names.name_id) | [
"2"
] | true | true | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:124 | Find the number of movies Nick Moran acted in. | [
"role_mapping"
] | SELECT COUNT(DISTINCT movie_title) FROM role_mapping WHERE category = 'actor' AND name = 'Nick Moran' | [
"2"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:125 | How many people are taller than the tallest person born after January 1, 1970? | [
"names"
] | SELECT COUNT(name) FROM names WHERE name IN (SELECT name FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01')) | [
"2"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:126 | What is the longest runtime for an Argentine movie that runs at least 808 minutes and is at least as long as the longest movie overall, where that "longest movie" is computed after excluding "Inhumane" if that title appears in the director info? | [
"director_mapping",
"movie"
] | SELECT MAX(duration) FROM movie WHERE title IN (SELECT title FROM movie WHERE duration >= (SELECT MAX(duration) AS max_duration FROM movie WHERE NOT title IN (SELECT movie_title FROM director_mapping WHERE movie_title = 'Inhumane')) AND duration >= 808 AND country = 'Argentina') | [
"808"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:127 | What are the titles of the thriller movies? | [
"genre"
] | SELECT movie_title FROM genre WHERE genre = 'Thriller' | [
"Corbin Nash",
"Wild for the Night",
"Call of the Wolf",
"Jungle",
"The Prodigy",
"Darc",
"Buckout Road",
"The Standoff at Sparrow Creek",
"Fashionista",
"The Wrong Mother",
"Bullet Head",
"The Doll 2",
"The Fast and the Fierce",
"Playing with Dolls: Havoc",
"The Fox",
"Carnivores",
... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:128 | What is the average duration of movies whose length is at least as long as the longest movie that is not among those with an average rating of at least the maximum average rating achieved by movies average rated above 7 with more than 1,000 votes, while also having an average rating greater than 8, a median rating of 1... | [
"movie",
"ratings"
] | SELECT AVG(duration) FROM movie WHERE duration >= (SELECT MAX(duration) FROM movie WHERE NOT title IN (SELECT movie_title FROM ratings WHERE avg_rating >= (SELECT MAX(avg_rating) FROM ratings WHERE avg_rating > 7 AND total_votes > 1000) AND avg_rating > 8 AND median_rating = 10 AND total_votes > 500 GROUP BY movie_titl... | [
"808.0000000000000000"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": true,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:129 | Which directors worked on Dementia 13, where the movie has a duration longer than 60 minutes, is in English, and was produced in the USA? | [
"director_mapping",
"movie"
] | SELECT name FROM director_mapping WHERE movie_title IN (SELECT movie_title FROM director_mapping WHERE movie_title = 'Dementia 13') AND movie_title IN (SELECT title FROM movie WHERE duration > 60 AND languages LIKE '%English%' AND movie.title = director_mapping.movie_title) AND movie_title IN (SELECT title FROM movie W... | [
"Richard LeMay"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:130 | How many people are taller than the tallest person known for Love, Simon and at least as tall as the tallest person born on or after January 1, 1970 who is known for Colossal? | [
"names"
] | SELECT COUNT(*) AS count_of_actors FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE known_for_movie = 'Love, Simon') AND height >= (SELECT MAX(height) FROM names WHERE date_of_birth >= '1970-01-01' AND known_for_movie = 'Colossal') | [
"2"
] | true | true | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:131 | What are the top 5 actors with the most movies in the database? | [
"role_mapping"
] | SELECT name FROM role_mapping WHERE category = 'actor' GROUP BY name ORDER BY COUNT(movie_title) DESC LIMIT 5 | [
"Tom Sizemore",
"Yogi Babu",
"James Franco",
"Mammootty",
"Mohanlal"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:132 | Who are the people born before 1970 whose height is at least as tall as the tallest person (born before 1980) who is taller than both the tallest individual known for Free Fire and the tallest individual known for Dusty and Me? | [
"names"
] | SELECT name FROM names WHERE height >= (SELECT MAX(height) AS max_height FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND date_of_birth < '1980-01-01') AND date_of_birth < '1970-01-01' | [
"Michael Ritchie",
"Richard Ashton"
] | true | false | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:133 | List all actresses in ascending order of their movie titles. | [
"role_mapping"
] | SELECT name FROM role_mapping WHERE category = 'actress' ORDER BY movie_title ASC | [
"Hansika Motwani",
"Bibiana Beglau",
"Emma Bading",
"Firy Beuk",
"Merel de Zwart",
"Nola Kemper",
"Hayley Derryberry",
"Jennifer Robyn Jacobs",
"Sali Hamada",
"Valentina Lodovini",
"Bianca Usai",
"Angelica Elli",
"Dendrie Taylor",
"Veronnica Avila",
"Lindsey Shaw",
"Imen Tablusi",
"A... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:134 | How many actors are taller than the tallest person known for Love, Simon and taller than the tallest person known for Dusty and Me? | [
"names",
"role_mapping"
] | SELECT COUNT(name) AS count_of_actors FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE known_for_movie = 'Love, Simon') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND name IN (SELECT name FROM role_mapping WHERE category = 'actor') | [
"1"
] | true | true | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:135 | Which countries have movies whose titles appear in both cases: (1) movies rated with an average score above 6 and a median rating equal to 6, and (2) movies with a median rating of at least 6 and more than 100 total votes? | [
"movie",
"ratings"
] | SELECT country FROM movie WHERE title IN (SELECT title FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 6 AND median_rating = 6 AND movie_title = title) AND title IN (SELECT movie_title FROM ratings WHERE median_rating >= 6 AND total_votes > 100 AND movie_title = title)) GROUP BY country | [
"Argentina",
"Argentina, Brazil, France, Poland, Germany, Denmark",
"Argentina, France",
"Argentina, France, USA, Germany, Qatar",
"Argentina, Mexico",
"Argentina, Spain",
"Australia",
"Australia, USA, Mexico",
"Belgium",
"Belgium, France",
"Belgium, France, USA",
"Belgium, Netherlands, Senega... | true | false | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:136 | Who are the three oldest people known for the movie 'Jumanji: Welcome to the Jungle'? | [
"names"
] | SELECT name FROM names WHERE known_for_movie = 'Jumanji: Welcome to the Jungle' ORDER BY date_of_birth ASC LIMIT 3 | [
"Paul Mounsey",
"Dwayne Johnson",
"Nick Jonas"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:137 | What are the titles of movies from India that were released after 2017? | [
"movie"
] | SELECT title FROM movie WHERE year > 2017 AND country = 'India' | [
"Ek Din Achanak",
"Nanak Shah Fakir",
"Mohalla Assi",
"Sila Samayangalil",
"III Smoking Barrels",
"Tikli and Laxmi Bomb",
"Sexy Durga",
"Brij Mohan Amar Rahe",
"Babumoshai Bandookbaaz",
"Omerta",
"Mukkabaaz",
"Village Rockstars",
"Love and Shukla",
"Chamak",
"Bhaiaji Superhit",
"Vishwa... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:138 | How many directors are there for the movie Meitantei Conan: Zero no Shikkônin? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Meitantei Conan: Zero no Shikkônin' | [
"1"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:139 | How many people have a height exactly equal to the tallest height among those born after January 1, 1970, are at least as tall as the tallest person known for Love, Simon who shares their date of birth, and are also at least as tall as the tallest person known for Peppermint who was born on June 22, 1975? | [
"names"
] | SELECT COUNT(*) FROM names WHERE height = (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01') AND height >= (SELECT MAX(n.height) FROM names as n WHERE n.known_for_movie = 'Love, Simon' AND n.date_of_birth = names.date_of_birth) AND height >= (SELECT MAX(height) FROM names WHERE known_for_m... | [
"1"
] | true | true | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:140 | Which movies are from countries that have at least one movie longer than the longest movie with an average rating above 5.5, more than 1000 votes, and a median rating of 6? | [
"movie",
"ratings"
] | SELECT title FROM movie WHERE country IN (SELECT T2.country FROM movie AS T2 WHERE T2.duration > (SELECT MAX(T3.duration) FROM movie AS T3 WHERE T3.title IN (SELECT T4.movie_title FROM ratings AS T4 WHERE T4.avg_rating > 5.5 AND T4.total_votes > 1000 AND T4.median_rating = 6 AND T4.movie_title = T3.title)) AND movie.co... | [
"A Matter of Life and Death",
"The Nest of the Cuckoo Birds",
"Against All Hope",
"Cook Off!",
"Crazy",
"Emilio",
"Fast Girl",
"Road to Hell",
"SEAL Team VI",
"Boogie Woogie",
"The Mitchell Tapes",
"3 Times a Charm",
"Bai lu yuan",
"Identical",
"Without",
"Scenes from a Gay Marriage",
... | true | false | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:141 | What are the titles of movies that have more than 1000 total votes and a median rating greater than 5. | [
"ratings"
] | SELECT movie_title FROM ratings WHERE median_rating > 5 AND total_votes > 1000 GROUP BY movie_title | [
"Colette",
"Burning Sands",
"Blade Runner 2049",
"The Neighborhood",
"Museo",
"Men in Black: International",
"Sameblod",
"Lady and the Tramp",
"Burn",
"Bhaagamathie",
"Pieles",
"Alibi.com",
"Carbone",
"Breakthrough",
"Astérix: Le secret de la potion magique",
"Crypto",
"Brigsby Bear"... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:142 | What is the maximum height among people, provided that there exists at least one person whose height is greater than the tallest person known for the movie Free Fire? | [
"names"
] | SELECT MAX(height) AS max_height FROM names WHERE EXISTS( SELECT 1 FROM names WHERE height > ( SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire')) | [
"201"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:143 | Is the movie The Competition classified as a romance film? | [
"genre"
] | SELECT movie_title FROM genre WHERE genre = 'Romance' AND movie_title = 'The Competition' GROUP BY movie_title | [
"The Competition"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:144 | What is the shortest movie duration among movies whose duration is at least the average duration of movies that are at least as long as the shortest English-language movie running over 100 minutes? | [
"movie"
] | SELECT MIN(duration) FROM movie WHERE duration >= ( SELECT AVG(duration) FROM movie WHERE duration >= ( SELECT MIN(duration) FROM movie WHERE duration > 100 AND languages = 'English')) | [
"122"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": true,
"SUM": false
} |
movie:145 | What are the titles of the Indian Telugu movies with a longer duration than the average duration of comedies? | [
"genre",
"movie"
] | SELECT title FROM movie WHERE duration > (SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Comedy')) AND country = 'India' AND languages = 'Telugu' | [
"Gautamiputra Satakarni",
"Guru",
"Dwaraka",
"Khaidi No. 150",
"Radha",
"Om Namo Venkatesaya",
"Rarandoi Veduka Chudham",
"Luck Unnodu",
"Raju Gari Gadhi 2",
"Keshava",
"Shatamanam Bhavati",
"Nenu Local",
"Winner",
"Gunturodu",
"PSV Garuda Vega",
"Yuddham Sharanam",
"Oxygen",
"Kitt... | true | false | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:146 | How many people were born after January 1st, 1950, and are taller than the tallest person known for the movie Dusty and Me? | [
"names"
] | SELECT COUNT(name) FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND date_of_birth > '1950-01-01' | [
"1"
] | true | true | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:147 | What is the date of birth of the people that are known for the movie 'National Theatre Live: Obsession'? | [
"names"
] | SELECT date_of_birth FROM names WHERE known_for_movie = 'National Theatre Live: Obsession' GROUP BY date_of_birth | [
"1988-11-18 00:00:00"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:148 | What is the highest average rating among movies whose median rating is 7 and have more than 500 total votes? | [
"ratings"
] | SELECT MAX(avg_rating) FROM ratings WHERE movie_title IN (SELECT T2.movie_title FROM ratings AS T2 WHERE ratings.movie_title = T2.movie_title AND T2.median_rating = 7) AND total_votes > 500 | [
"8.8"
] | true | true | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:149 | What is the maximum duration of any movie whose worldwide gross income is greater than the highest worldwide gross income among movies that last at least as long as the longest movie with an average rating greater than 5, a median rating greater than 5, and a title not equal to Kirrak Party or Dead Sea? | [
"movie",
"ratings"
] | SELECT MAX(duration) AS max_duration FROM movie WHERE worlwide_gross_income > ( SELECT MAX(worlwide_gross_income) FROM movie AS T2 WHERE T2.duration >= ( SELECT MAX(duration) AS max_duration FROM movie WHERE title IN ( SELECT movie_title FROM ratings WHERE avg_rating > 5 AND median_rating > 5 AND movie_title = title AN... | [
"230"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:150 | What are the titles of the movies that are longer than or equal to the longest movie that is longer than the average length of comedy movies, have a worldwide gross income of $4032, and are from Argentina? | [
"genre",
"movie"
] | SELECT title FROM movie WHERE duration >= ( SELECT MAX(duration) FROM movie WHERE duration > ( SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Comedy'))) AND worlwide_gross_income = 4032 AND country = 'Argentina' | [
"La flor"
] | true | false | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:151 | Which movie titles have a worldwide gross income that is at least the average among movies whose worldwide gross is greater than the minimum worldwide gross of movies released after 2018 that earned over $5,000,000 worldwide? | [
"movie"
] | SELECT title FROM movie WHERE worlwide_gross_income >= ( SELECT AVG(worlwide_gross_income) FROM movie WHERE worlwide_gross_income > ( SELECT MIN(worlwide_gross_income) FROM movie WHERE year > 2018 AND worlwide_gross_income > 5000000)) | [
"The Great Wall",
"Hacksaw Ridge",
"Resident Evil: The Final Chapter",
"Sing",
"Lion",
"La La Land",
"Hidden Figures",
"Baywatch",
"Wonder Woman",
"Justice League",
"Ghost in the Shell",
"xXx: Return of Xander Cage",
"It",
"The Greatest Showman",
"The Foreigner",
"The Dark Tower",
"P... | true | false | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:152 | 2018 Chinese movies with worldwide gross income over $10,000 and longer than the longest English movies over 80 minutes and longer than the longest 2017 movies with worldwide gross income, ordered by worldwide gross income and then by duration in descending order. | [
"movie"
] | SELECT title FROM movie WHERE duration > (SELECT MAX(duration) FROM movie WHERE duration > 80 AND languages = 'English') AND duration > (SELECT MAX(duration) FROM movie WHERE year = 2017 AND NOT worlwide_gross_income IS NULL) AND year = 2018 AND country = 'China' AND worlwide_gross_income > 10000 ORDER BY worlwide_gros... | [
"Da xiang xi di er zuo"
] | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:153 | What is the maximum worldwide gross income among movies whose worldwide gross income is at least the maximum worldwide gross income of any movie made by a production company that has at least one movie with an average rating above 5.5, a median rating of 6, and more than 1,000 total votes? | [
"movie",
"ratings"
] | SELECT MAX(worlwide_gross_income) FROM movie WHERE worlwide_gross_income >= ( SELECT MAX(worlwide_gross_income) FROM movie WHERE production_company IN ( SELECT production_company FROM movie WHERE title IN ( SELECT movie_title FROM ratings WHERE avg_rating > 5.5 AND total_votes > 1000 AND median_rating = 6 AND movie_tit... | [
"2797800564"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:154 | What are the titles of the drama movies that have a longer duration than the longest movie released after 2018 with a worldwide gross income over $5 million? | [
"genre",
"movie"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Drama' AND movie_title = title) AND duration > (SELECT MAX(duration) AS max_duration FROM movie WHERE year > 2018 AND worlwide_gross_income > 5000000) | [
"National Theatre Live: Angels in America Part One - Millennium Approaches",
"National Theatre Live: Angels in America Part Two - Perestroika",
"Ang panahon ng halimaw",
"Da xiang xi di er zuo",
"Antony & Cleopatra",
"Hezarpa",
"La flor",
"National Theatre Live: King Lear",
"The Irishman"
] | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:155 | How many movies have a duration at least as long as the longest movie with an average rating above 5, a median rating above 5, and that is not Kirrak Party or Dead Sea? | [
"movie",
"ratings"
] | SELECT COUNT(title) FROM movie WHERE duration >= (SELECT MAX(duration) AS max_duration FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 5 AND median_rating > 5 AND movie_title = title AND NOT movie_title IN ('Kirrak Party', 'Dead Sea'))) | [
"1"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:156 | What is the maximum duration of movies whose duration is at least as long as the average duration of movies in the Comedy genre? | [
"genre",
"movie"
] | SELECT MAX(duration) FROM movie WHERE title IN (SELECT title FROM movie WHERE duration >= (SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Comedy'))) | [
"808"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:157 | How many movies are there that are of the genre 'Drama' and are titled 'The Bookshop'? | [
"genre"
] | SELECT COUNT(movie_title) FROM genre WHERE genre = 'Drama' AND movie_title = 'The Bookshop' | [
"1"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:158 | How many actors are in the movie Thithi? | [
"role_mapping"
] | SELECT COUNT(DISTINCT name) FROM role_mapping WHERE category = 'actor' AND movie_title = 'Thithi' | [
"4"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:159 | What is the average duration of movies whose length is at least as long as the longest movie that is itself at least as long as the longest movie featuring actors and not titled Galaxy of Horrors, provided that the movie also has worldwide gross income greater than 1,500? | [
"movie",
"role_mapping"
] | SELECT AVG(duration) FROM movie WHERE duration >= ( SELECT MAX(duration) FROM movie WHERE duration >= ( SELECT MAX(duration) FROM movie WHERE title IN ( SELECT movie_title FROM role_mapping WHERE category = 'actor' AND movie_title <> 'Galaxy of Horrors')) AND worlwide_gross_income > 1500) | [
"808.0000000000000000"
] | true | true | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": true,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:160 | How many different movies have actresses appeared in? | [
"role_mapping"
] | SELECT COUNT(DISTINCT movie_title) FROM role_mapping WHERE category = 'actress' | [
"3329"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:161 | What is the maximum height of people known for the movie 'Dusty and Me'? | [
"names"
] | SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me' | [
"200"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:162 | Find the names of actors who are taller than the tallest person born after January 1st, 1970. | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth > '1970-01-01') AND name IN (SELECT T2.name FROM role_mapping AS T2 WHERE T2.category = 'actor' AND T2.name = names.name) | [
"Richard Ashton"
] | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:163 | How many people are taller than the tallest person who is known for the movie Peppermint and was born on June 22, 1975? | [
"names"
] | SELECT COUNT(*) FROM names WHERE name_id IN ( SELECT name_id FROM names WHERE height > ( SELECT MAX(height) FROM names WHERE known_for_movie = 'Peppermint' AND date_of_birth = '1975-06-22' )) | [
"2"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:164 | Which countries have at least one movie whose worldwide box office revenue is greater than the highest average rating that same movie received, considering only ratings where the median rating is 8 and the average rating is greater than 7? | [
"movie",
"ratings"
] | SELECT country FROM movie WHERE worlwide_gross_income > (SELECT MAX(avg_rating) FROM ratings WHERE median_rating = 8 AND avg_rating > 7 AND movie_title = title) GROUP BY country | [
"Argentina",
"Argentina, Spain",
"Australia",
"Australia, USA",
"Australia, USA, UK, India, Singapore",
"Austria, Israel",
"Bosnia and Herzegovina, Republic of Macedonia, Serbia, Croatia",
"Bosnia and Herzegovina, Slovenia, Germany, Croatia",
"Brazil",
"Brazil, Germany",
"Bulgaria, Germany, Fran... | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:165 | Which actors who appeared in Shadow Wolves, are known for the movie Wind River, have a height greater than 170 cm, and are also associated with a movie that someone with height 200 cm is known for? | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE known_for_movie IN (SELECT known_for_movie FROM names WHERE height = 200 AND name_id = names.name_id) AND name IN (SELECT name FROM role_mapping WHERE category = 'actor' AND movie_title = 'Shadow Wolves') AND known_for_movie = 'Wind River' AND height > 170 | [
"Graham Greene"
] | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:166 | How many distinct birth dates are there among people known for the movie As Boas Maneiras? | [
"names"
] | SELECT COUNT(DISTINCT date_of_birth) AS count_of_birth_dates FROM names WHERE known_for_movie = 'As Boas Maneiras' | [
"3"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:167 | Which actors are taller than the tallest person born on or after January 1, 1970 whose best-known movie is Colossal, who themselves have an acting credit in a movie other than Rüzgar, and whose name also appears among actors with a credit in a movie other than Zaba? | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth >= '1970-01-01' AND known_for_movie = 'Colossal') AND name_id IN (SELECT name_id FROM role_mapping WHERE category = 'actor' AND movie_title <> 'Rüzgar' AND name = names.name) AND name IN (SELECT name FROM role_mapping WHERE categor... | [
"Richard Ashton"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:168 | How many movies have a median rating of 9 and an average rating greater than 6.5? | [
"ratings"
] | SELECT COUNT(movie_title) AS total_movies FROM ratings WHERE median_rating = 9 AND avg_rating > 6.5 | [
"303"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:169 | Who are the people born after 1965 whose height is at least as tall as the tallest person (born before 1980) who is taller than both the tallest individual known for Free Fire and the tallest individual known for Dusty and Me? | [
"names"
] | SELECT name FROM names WHERE height >= (SELECT MAX(height) FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND date_of_birth < '1980-01-01') AND date_of_birth > '1965-01-01' | [
"Richard Ashton"
] | true | false | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:170 | Which actors are taller than the average height of people known for the movie Gangcheolbi and taller than the tallest person known for the movie Free Fire? | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE height > (SELECT AVG(height) FROM names WHERE known_for_movie = 'Gangcheolbi') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND name_id IN (SELECT name_id FROM role_mapping WHERE category = 'actor' AND name_id = names.name_id) | [
"Richard Ashton"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:171 | What movies has Sergio Peris-Mencheta acted in? | [
"role_mapping"
] | SELECT movie_title FROM role_mapping WHERE category = 'actor' AND name = 'Sergio Peris-Mencheta' | [
"Rambo: Last Blood"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:172 | What are the names of the 3 oldest people who are known for the movie 'Batman and Harley Quinn'? | [
"names"
] | SELECT name FROM names WHERE known_for_movie = 'Batman and Harley Quinn' ORDER BY date_of_birth ASC LIMIT 3 | [
"Loren Lester",
"Paget Brewster",
"Melissa Rauch"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:173 | What is the average duration of the movie 'Hacksaw Ridge'? | [
"movie",
"role_mapping"
] | SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM role_mapping WHERE movie_title = 'Hacksaw Ridge' AND movie_title = title GROUP BY movie_title, category) | [
"139.0000000000000000"
] | true | true | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": true,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:174 | Which movies have a duration greater than or equal to the maximum duration of movies excluding those whose titles appear in the ratings table with an average rating higher than 8, a median rating of 10, more than 500 total votes, and where that average rating is at least as high as the maximum average rating among movi... | [
"movie",
"ratings"
] | SELECT title FROM movie WHERE duration >= (SELECT MAX(duration) FROM movie WHERE NOT title IN (SELECT movie_title FROM ratings WHERE avg_rating >= (SELECT MAX(avg_rating) FROM ratings WHERE avg_rating > 7 AND total_votes > 1000) AND avg_rating > 8 AND median_rating = 10 AND total_votes > 500 GROUP BY movie_title)) | [
"La flor"
] | true | false | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:175 | What is the maximum duration among movies whose duration is at least as long as the longest movie that is not associated with Ryan Smithee in the director records? | [
"director_mapping",
"movie"
] | SELECT MAX(duration) AS max_duration FROM movie WHERE duration >= ( SELECT MAX(duration) AS max_duration FROM movie WHERE NOT title IN ( SELECT movie_title FROM director_mapping WHERE name = 'Ryan Smithee')) | [
"808"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:176 | Which movies were directed by Sherif Elbendary? | [
"director_mapping"
] | SELECT movie_title FROM director_mapping WHERE name = 'Sherif Elbendary' GROUP BY movie_title | [
"Ali Mizah wa Ibrahim"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:177 | What is the production company of the movie Ji wu from Hong Kong, Malaysia with Chinese language? | [
"director_mapping",
"movie"
] | SELECT production_company FROM movie WHERE title IN (SELECT movie_title FROM director_mapping WHERE movie_title = 'Ji wu' AND movie_title = title) AND title = 'Ji wu' AND country = 'Hong Kong, Malaysia' AND languages = 'Chinese' | [
"MM2 Entertainment"
] | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:178 | How many directors are there in the movie Shot? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Shot' | [
"1"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:179 | Who are the people known for the movie Radha? | [
"names"
] | SELECT name FROM names WHERE known_for_movie = 'Radha' | [
"Chandra Mohan Chintada"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:180 | How many distinct people are at least as tall as the tallest person born before 1980 whose height is greater than the tallest person known for Free Fire and also greater than the tallest person known for Dusty and Me? | [
"names"
] | SELECT COUNT(DISTINCT name) FROM names WHERE height >= (SELECT MAX(height) AS max_height FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND date_of_birth < '1980-01-01') | [
"2"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:181 | How many movies are longer than the average duration of movies whose length is greater than the longest movie released after 2018 with worldwide gross income above 5 million dollars, and that also have a median rating above 5 with more than 100 total votes? | [
"movie",
"ratings"
] | SELECT COUNT(title) FROM movie WHERE duration > (SELECT AVG(duration) AS average_movie_duration FROM movie WHERE duration > (SELECT MAX(duration) AS max_duration FROM movie WHERE year > 2018 AND worlwide_gross_income > 5000000) AND title IN (SELECT movie_title FROM ratings WHERE median_rating > 5 AND total_votes > 100 ... | [
"1"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:182 | What are the names of the individuals born between 1965-10-02 and 1975-06-22, and have a height greater than or equal to the maximum height of individuals with a height greater than the maximum height of individuals who are known for the movie Peppermint, born in 1975-06-22, and have a height of more than 200 cm and ar... | [
"names"
] | SELECT name FROM names WHERE name IN ( SELECT name FROM names WHERE height >= ( SELECT MAX(height) FROM names WHERE height > ( SELECT MAX(height) FROM names WHERE known_for_movie = 'Peppermint' AND date_of_birth = '1975-06-22') AND height > 200 AND name LIKE '%Michael%')) AND date_of_birth BETWEEN '1965-10-02' AND '197... | [
"Richard Ashton"
] | true | false | 3 | {
"1": 1,
"2": 1,
"3": 1
} | 1 | nested (height=3, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:183 | What are the names of actors who have acted in a movie other than Rüzgar and are taller than the tallest person known for the movie Colossal who was born on or after January 1st, 1970? | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth >= '1970-01-01' AND known_for_movie = 'Colossal') AND name IN (SELECT name FROM role_mapping WHERE category = 'actor' AND movie_title <> 'Rüzgar') | [
"Richard Ashton"
] | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:184 | How many different movies has Jake Gyllenhaal acted in? | [
"role_mapping"
] | SELECT COUNT(DISTINCT movie_title) AS num_movies FROM role_mapping WHERE category = 'actor' AND name = 'Jake Gyllenhaal' | [
"4"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:185 | What are the titles of movies that have a median rating of more than 5 and are not 'Portal'? | [
"ratings"
] | SELECT movie_title FROM ratings WHERE median_rating > 5 AND movie_title <> 'Portal' | [
"Der müde Tod",
"A Matter of Life and Death",
"Road to Hell",
"Without",
"Soog",
"Centro Histórico",
"Watashi no dorei ni narinasai",
"Circus of the Dead",
"Mining for Ruby",
"Kelly & Cal",
"4:48",
"Teenkahon",
"eHero",
"A Horse Tail",
"Cruel",
"For Here or to Go?",
"Frisky",
"Jess... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:186 | Which countries have movies whose duration is longer than the average duration of the movie Hacksaw Ridge? | [
"movie",
"role_mapping"
] | SELECT country FROM movie WHERE duration > (SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM role_mapping WHERE movie_title = 'Hacksaw Ridge' AND movie_title = title GROUP BY movie_title, category)) GROUP BY country | [
"Venezuela",
"China, Hong Kong, Czech Republic",
"Portugal",
"Norway, Sweden",
"Denmark, France, Sweden, Germany, Belgium",
"Netherlands, France, Germany, Belgium, Sweden, UK, USA",
"Egypt",
"USA, Germany",
"Norway",
"Bulgaria, Republic of Macedonia",
"Pakistan",
"France, Germany, Russia, Lith... | true | false | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:187 | Which movies were produced by companies that also produced at least one movie featuring an actor other than Vyto Ruginis? | [
"movie",
"role_mapping"
] | SELECT title FROM movie WHERE production_company IN (SELECT production_company FROM movie WHERE title IN (SELECT movie_title FROM role_mapping WHERE category = 'actor' AND name <> 'Vyto Ruginis' AND movie_title = title)) | [
"A Matter of Life and Death",
"Vaikai is Amerikos viesbucio",
"Leila",
"Road to Hell",
"SEAL Team VI",
"Boogie Woogie",
"Zadboom",
"The Eagle Path",
"Zombie Beach",
"The Entitled",
"Identical",
"Nobel Chor",
"The Garlock Incident",
"Found",
"Watashi no dorei ni narinasai",
"No somos an... | true | false | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:188 | How many people share a name with someone born before January 1, 1970, whose height is greater than the tallest person born after January 1, 1970? | [
"names"
] | SELECT COUNT(name) FROM names WHERE name IN (SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth > '1970-01-01') AND date_of_birth < '1970-01-01') | [
"2"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:189 | What are the titles of movies that are from the USA, have English in their languages, have a worldwide gross income over $1,000,000, and have a median rating of 7 and average rating above 6.5? | [
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE median_rating = 7 AND avg_rating > 6.5) AND country = 'USA' AND languages LIKE '%English%' AND worlwide_gross_income > 1000000 | [
"The Lost City of Z",
"The Founder",
"Same Kind of Different as Me",
"Pirates of the Caribbean: Dead Men Tell No Tales",
"The Glass Castle",
"Star Wars: Episode VIII - The Last Jedi",
"Going in Style",
"Beauty and the Beast",
"Cars 3",
"Stronger",
"The Book of Henry",
"Good Time",
"Megan Lea... | true | false | 1 | {
"1": 1,
"2": null,
"3": null
} | 1 | nested (height=1, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:190 | Which people are taller than 180 centimeters? | [
"names"
] | SELECT name FROM names WHERE height > 180 | [
"Bailey Chase",
"Greg Ellis",
"Margaux Hemingway",
"Charlton Heston",
"Akira Kurosawa",
"Anthony Quinn",
"Orson Welles",
"John Cleese",
"Nicolas Cage",
"Kevin Costner",
"John Cusack",
"Leonardo DiCaprio",
"Colin Firth",
"Morgan Freeman",
"Denzel Washington",
"Christian Bale",
"Matt D... | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:191 | How many roles are there for actors who are among the ten earliest-born individuals known for the movie Colossal? | [
"names",
"role_mapping"
] | SELECT COUNT(name) FROM role_mapping WHERE role_mapping.name IN (SELECT name FROM names WHERE name IN (SELECT name FROM names WHERE known_for_movie = 'Colossal' ORDER BY date_of_birth ASC LIMIT 10) AND name IN (SELECT name FROM role_mapping WHERE category = 'actor' AND name_id = names.name_id)) | [
"5"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:192 | How many directors worked on the movie 'Sing'? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Sing' | [
"2"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:193 | What is the maximum height of people born after January 1st, 1970? | [
"names"
] | SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01' | [
"200"
] | false | true | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:194 | Who is the director of the movie 'Tumbbad'? | [
"director_mapping"
] | SELECT name FROM director_mapping WHERE movie_title = 'Tumbbad' | [
"Anand Gandhi",
"Adesh Prasad",
"Rahi Anil Barve"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:195 | What are the movie titles that have an average rating greater than 6, median rating of 6, and have more than 100 total votes? | [
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 6 AND median_rating = 6 AND movie_title = title) AND title IN (SELECT movie_title FROM ratings WHERE median_rating >= 6 AND total_votes > 100 AND movie_title = title) | [
"The Entitled",
"Bai lu yuan",
"Centro Histórico",
"Kelly & Cal",
"Dough",
"Touched with Fire",
"The Belko Experiment",
"Una",
"Some Freaks",
"Norman: The Moderate Rise and Tragic Fall of a New York Fixer",
"Detour",
"Slam: Tutto per una ragazza",
"In Dubious Battle",
"Porto",
"Colossal"... | true | false | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:196 | How many drama movies are there whose titles start with "Is"? | [
"genre",
"movie"
] | SELECT COUNT(title) AS total_drama_movies FROM movie WHERE title IN (SELECT title FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Drama') AND title LIKE 'Is%') | [
"11"
] | true | true | 2 | {
"1": 1,
"2": 1,
"3": null
} | 1 | nested (height=2, max_breadth=1) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:197 | How many movies have a worldwide gross income and have a median rating of more than 5 and total votes of more than 1000, and have at least one actor and are rated in the ratings table? | [
"movie",
"ratings",
"role_mapping"
] | SELECT COUNT(CASE WHEN NOT worlwide_gross_income IS NULL THEN 1 END) AS total_movies_with_worldwide_gross_income FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE median_rating > 5 AND total_votes > 1000 AND movie_title = title GROUP BY movie_title) AND title IN (SELECT movie_title FROM role_mapping WHER... | [
"794"
] | true | true | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:198 | What is the highest worldwide gross income among movies whose duration is longer than the average duration of movies that are themselves longer than the longest movie released after 2018 with worldwide gross income greater than 5 million dollars, and that also have a median rating above 5 with more than 100 total votes... | [
"movie",
"ratings"
] | SELECT MAX(worlwide_gross_income) AS max_worlwide_gross_income FROM movie WHERE duration > (SELECT AVG(duration) AS average_movie_duration FROM movie WHERE duration > (SELECT MAX(duration) AS max_duration FROM movie WHERE year > 2018 AND worlwide_gross_income > 5000000) AND title IN (SELECT movie_title FROM ratings WHE... | [
"4032"
] | true | true | 2 | {
"1": 1,
"2": 2,
"3": null
} | 2 | nested (height=2, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:199 | What is the name of the director of the movie titled King of Boys? | [
"director_mapping"
] | SELECT name FROM director_mapping WHERE movie_title = 'King of Boys' | [
"Kemi Adetiba"
] | false | false | 0 | {
"1": null,
"2": null,
"3": null
} | 0 | non-nested | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.