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:500 | Which people born before May 1980 have a height greater than or equal to the maximum height among those born before 1980 who are taller than the tallest individuals known for Free Fire and 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 < '1980-05-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:501 | Show the movie titled 'Dementia 13' that was released in the USA after 2015, has an average rating over 4 and a median rating over 3, and has a listed director. | [
"director_mapping",
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM director_mapping WHERE movie_title = 'Dementia 13') AND title IN (SELECT movie_title FROM ratings WHERE avg_rating > 4 AND median_rating > 3) AND year > 2015 AND country = 'USA' | [
"Dementia 13"
] | 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:502 | How many movies in the Romance genre are titled Basmati Blues? | [
"genre"
] | SELECT COUNT(movie_title) FROM genre WHERE genre = 'Romance' AND movie_title = 'Basmati Blues' | [
"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:503 | How many people have a height greater than or equal to the maximum height of people with a height greater than 100 and also have a height greater than the maximum height of people with a date of birth and a known movie? | [
"names"
] | SELECT COUNT(name) FROM names WHERE height >= (SELECT MAX(height) AS max_height FROM names WHERE height > 100) AND height > (SELECT MAX(height) FROM names WHERE NOT date_of_birth IS NULL AND NOT known_for_movie IS NULL) | [
"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:504 | Who are the people born before 1970, taller than 200 cm, whose height is at least as tall as the tallest person who is both taller than 100 cm and taller than the tallest person 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 height > 100) AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me')) AND height > 200 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:505 | How many distinct movies are there among the top 5 movies with the most actors, excluding movies from India that have a duration longer than 150 minutes? | [
"movie",
"role_mapping"
] | SELECT COUNT(DISTINCT movie_title) FROM role_mapping WHERE movie_title IN (SELECT movie_title FROM role_mapping WHERE category = 'actor' GROUP BY movie_title ORDER BY COUNT(name) DESC LIMIT 5) AND NOT movie_title IN (SELECT title FROM movie WHERE country = 'India' AND duration > 150) | [
"4"
] | true | true | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:506 | How many comedy movies have the word Kingdom in their title? | [
"genre"
] | SELECT COUNT(DISTINCT movie_title) FROM genre WHERE genre = 'Comedy' AND movie_title LIKE '%Kingdom%' | [
"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:507 | How many actors are taller than the tallest person born after January 1, 1970, and also taller than the tallest person known for Love, Simon? | [
"names",
"role_mapping"
] | SELECT COUNT(*) FROM names WHERE height > (SELECT MAX(height) FROM names WHERE date_of_birth > '1970-01-01') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Love, Simon') 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:508 | How many people are there whose height is greater than both 175 cm and the average height of people known for the movie Gangcheolbi, who have directed at least one movie with 'Fan' in its title, whose known-for movie is not 'None', and whose name is not Fred Durst? | [
"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%' AND name_id = names.name_id) AND height > 175 AND NOT known_for_movie IN ('None') AND NOT name IN ('Fred Durst') | [
"1"
] | 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:509 | Which movies released in the USA after 2018? | [
"movie"
] | SELECT title FROM movie WHERE year > 2018 AND country = 'USA' | [
"Lady-Like",
"Point Man",
"Badland",
"Eli",
"Assassinaut",
"Gang of Roses",
"The Legend of Secret Pass",
"Infection: The Invasion Begins",
"Knots",
"The Helpers",
"Would You Rather",
"Sanctuary; Quite a Conundrum",
"100 Ghost Street: The Return of Richard Speck",
"The Forbidden Dimensions"... | 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:510 | How many movies are longer than the longest movie over 100 minutes whose language is exactly 'English', directed by Rahul Shanklya or Mariano Llinás, and with average rating > 5 and median rating ≥ 6? | [
"director_mapping",
"movie",
"ratings"
] | SELECT COUNT(DISTINCT title) AS total_movies FROM movie WHERE duration > (SELECT MAX(duration) FROM movie WHERE duration > 100 AND languages = 'English') AND title IN (SELECT movie_title FROM director_mapping WHERE name IN ('Rahul Shanklya', 'Mariano Llinás') AND movie_title = movie.title) AND title IN (SELECT movie_ti... | [
"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:511 | How many directors are there for the movie Un traductor? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Un traductor' | [
"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:512 | What is the average duration of movies made in the USA after 2018? | [
"movie"
] | SELECT AVG(duration) FROM movie WHERE year > 2018 AND country = 'USA' | [
"96.1770833333333333"
] | 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": true,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:513 | Which movie title is the same as My Friend Dahmer and has a duration of more than 90 minutes and is from the USA? | [
"movie"
] | SELECT title FROM movie WHERE title IN (SELECT title FROM movie WHERE title = 'My Friend Dahmer' AND duration > 90 AND country = 'USA') | [
"My Friend Dahmer"
] | 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:514 | Find the names of people who are taller than the average height of people known for 'Gangcheolbi', taller than the tallest person known for 'Free Fire', and are not a director of 'Unfriended: Dark Web'. | [
"director_mapping",
"names"
] | 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 NOT name IN (SELECT name FROM director_mapping WHERE movie_title = 'Unfriended: Dark Web') | [
"Michael Ritchie",
"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:515 | Find the names of people who are taller than the average height of people known for the movie Gangcheolbi, taller than the tallest person known for the movie Colossal who was born on or after January 1, 1970, taller than 200, and born before 1960. | [
"names"
] | SELECT name FROM names WHERE height > (SELECT AVG(height) FROM names WHERE known_for_movie = 'Gangcheolbi') AND height > (SELECT MAX(height) FROM names WHERE date_of_birth >= '1970-01-01' AND known_for_movie = 'Colossal') AND height > 200 AND date_of_birth < '1960-01-01' | [
"Michael Ritchie"
] | 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:516 | Who are the people whose height is at least as tall as the tallest person born before 1980 that 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') | [
"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:517 | What is the number of movies from the USA released after 2017 with a duration of less than 120 minutes? | [
"movie"
] | SELECT COUNT(title) AS number_of_movies FROM movie WHERE year > 2017 AND country = 'USA' AND duration < 120 | [
"1297"
] | 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:518 | What is the longest duration of the movie 'Fête de famille' that was produced in France and Belgium? | [
"movie"
] | SELECT MAX(duration) FROM movie WHERE title = 'Fête de famille' AND country = 'France, Belgium' | [
"101"
] | 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:519 | Find the titles of movies that are from the same country as some movies with the title also in the USA and the UK, have a duration of more than 120 minutes, and have a worldwide gross income of more than $200,000,000. | [
"movie"
] | SELECT title FROM movie WHERE country IN (SELECT T2.country FROM movie AS T2 WHERE movie.title = T2.title AND country = 'USA, UK' AND title IN (SELECT title FROM movie)) AND duration > 120 AND worlwide_gross_income > 200000000 | [
"Alien: Covenant",
"Mary Poppins Returns"
] | 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:520 | How many movies titled 'Youth in Oregon' are classified as 'Comedy'? | [
"genre"
] | SELECT COUNT(movie_title) AS Comedy_Movies FROM genre WHERE genre = 'Comedy' AND movie_title = 'Youth in Oregon' | [
"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:521 | How many people are listed as being known for the movie Sawoleuiggeut? | [
"names"
] | SELECT COUNT(name) AS total_cast_members FROM names WHERE known_for_movie = 'Sawoleuiggeut' | [
"8"
] | 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:522 | What is the longest runtime, in minutes, for English-language movies that are more than 80 minutes long? | [
"movie"
] | SELECT MAX(duration) FROM movie WHERE duration > 80 AND languages = 'English' | [
"227"
] | 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:523 | How many 2018 movies from the Philippines or Iran, with Tagalog language and not produced by 'Fábrica de Cine' or 'National Theatre Live' and not directed by 'John Stevenson', have a duration greater than the longest movie from 2019 onwards that made more than $5 million worldwide? | [
"director_mapping",
"movie"
] | SELECT COUNT(duration) AS num_movies FROM movie WHERE duration > (SELECT MAX(duration) AS max_duration FROM movie WHERE year > 2018 AND worlwide_gross_income > 5000000) AND NOT title IN (SELECT movie_title FROM director_mapping WHERE name = 'John Stevenson') AND year = 2018 AND country IN ('Philippines', 'Iran') AND la... | [
"1"
] | 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:524 | What are the names of people who are taller than the tallest person known for the movie 'Free Fire' and are taller than 200 and were born after '1960-01-01'? | [
"names"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Free Fire') AND height > 200 AND date_of_birth > '1960-01-01' | [
"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:525 | What are the names of people who are known for a movie? | [
"names"
] | SELECT name FROM names WHERE NOT known_for_movie IS NULL | [
"Sarah Ovens",
"Paul Bushe",
"Peter Nerad",
"Wang Naixun",
"Tae-soo Kim",
"Trae Robin",
"Kenneth Branagh",
"Steve Buscemi",
"Jamie Lee Curtis",
"Gary Oldman",
"Charlize Theron",
"Denzel Washington",
"Christian Bale",
"Angela Bassett",
"Willem Dafoe",
"Laura Dern",
"Matt Dillon",
"J... | 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:526 | How many English-language movies longer than 80 minutes have a duration at least as long as the maximum duration of any other English-language movie over 80 minutes produced by the same production company? | [
"movie"
] | SELECT COUNT(title) FROM movie WHERE movie.duration >= (SELECT MAX(T2.duration) FROM movie AS T2 WHERE T2.duration > 80 AND T2.languages = 'English' AND T2.production_company = movie.production_company) AND duration > 80 AND languages = 'English' | [
"2027"
] | 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:527 | How many different actors were in the movie Wolves at the Door? | [
"role_mapping"
] | SELECT COUNT(DISTINCT name) FROM role_mapping WHERE movie_title = 'Wolves at the Door' | [
"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:528 | Which movie titles are in the comedy and drama genres, have an average rating greater than 7.0 and a median rating of 7, and have a worldwide gross income of more than $1000000? | [
"genre",
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT movie_title FROM genre WHERE genre = 'Comedy' AND movie_title = title) AND title IN (SELECT movie_title FROM ratings WHERE avg_rating > 7.0 AND median_rating = 7 AND movie_title = title) AND title IN (SELECT movie_title FROM genre WHERE genre = 'Drama' AND movie_title = ti... | [
"Umi yori mo mada fukaku",
"Patients",
"Mein Blind Date mit dem Leben",
"The Death of Stalin",
"Isshuukan furenzu",
"Toivon tuolla puolen",
"Sztuka kochania. Historia Michaliny Wislockiej",
"Grießnockerlaffäre",
"Tutto quello che vuoi",
"Cicha noc",
"The Square",
"25 km/h",
"Mi obra maestra"... | 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:529 | What are the titles of drama movies that contain the word Night? | [
"genre"
] | SELECT movie_title FROM genre WHERE genre = 'Drama' AND movie_title LIKE '%Night%' GROUP BY movie_title | [
"All Nighter",
"Beyond the Night",
"Blue Night",
"Break Night",
"Break-Up Nightmare",
"Dark Night",
"EXT. Night",
"Fly By Night",
"Hens Night",
"Hot Summer Nights",
"Kumbalangi Nights",
"Last Night",
"Late Night",
"Live by Night",
"Long Nights Short Mornings",
"Night Comes On",
"Nigh... | 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:530 | Which movie titles have at least one entry from Argentina that runs 808 minutes or more and is at least as long as the longest movie overall—except that the title Inhumane is excluded from that longest‑movie check only if that exact title appears in a separate title list; otherwise, nothing is excluded? | [
"director_mapping",
"movie"
] | SELECT title FROM movie WHERE EXISTS( SELECT 1 FROM movie AS T2 WHERE T2.title = movie.title AND T2.duration >= (SELECT MAX(duration) AS max_duration FROM movie WHERE NOT title IN ( SELECT movie_title FROM director_mapping WHERE movie_title = 'Inhumane')) AND T2.duration >= 808 AND T2.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:531 | Among movies from Argentina whose listed languages include Spanish, what is the maximum duration among those that are at least as long as the longest movie (excluding Kirrak Party and Dead Sea) that has an average rating above 5 and a median rating above 5? | [
"movie",
"ratings"
] | SELECT MAX(duration) AS min_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'))) AND languages LIKE '%Spanish%' AND... | [
"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:532 | What is the maximum average rating for items with a median rating of 8 and an average rating greater than 7? | [
"ratings"
] | SELECT MAX(avg_rating) AS max_avg_rating FROM ratings WHERE median_rating = 8 AND avg_rating > 7 | [
"8.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": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
movie:533 | How many actors have a known movie? | [
"names"
] | SELECT COUNT(known_for_movie) FROM names WHERE NOT known_for_movie IS NULL | [
"10455"
] | 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:534 | Which production companies made movies that are longer than the longest English-language movie with a duration over 80 minutes, that feature actors but are not Rüzgar, and that also have a median rating above 6 and an average rating above 6.5? | [
"movie",
"ratings",
"role_mapping"
] | SELECT production_company FROM movie WHERE duration > (SELECT MAX(duration) FROM movie WHERE duration > 80 AND languages = 'English') AND title IN (SELECT movie_title FROM role_mapping WHERE category = 'actor' AND movie_title <> 'Rüzgar') AND title IN (SELECT movie_title FROM ratings WHERE median_rating > 6 AND avg_rat... | [
"Dongchun Films",
"Epicmedia"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:535 | How many movies have a duration longer than the average duration of movies that are themselves longer than the longest movie released after 2018 with a 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 COUNT(title) AS total_movies 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 to... | [
"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:536 | What is the name of the director of the movie Beyond the Woods? | [
"director_mapping"
] | SELECT name FROM director_mapping WHERE movie_title = 'Beyond the Woods' | [
"Sean Breathnach"
] | 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:537 | How many directors are there for the movie 'Del Playa'? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Del Playa' | [
"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:538 | Who is the director of the movie 'Aliens: Zone of Silence'? | [
"director_mapping"
] | SELECT name FROM director_mapping WHERE movie_title = 'Aliens: Zone of Silence' | [
"Andy Fowler"
] | 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:539 | How many directors are associated with the movie Pass Over? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Pass Over' | [
"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:540 | Which movies from Argentina are longer than the longest movie that (1) had a median rating above 7 with more than 100 total votes, and (2) also had a median rating of 9 with an average rating greater than 6.5? | [
"movie",
"ratings"
] | SELECT title 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 country = 'Argentina' | [
"La flor"
] | 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": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:541 | How many actors are taller than the tallest person born after January 1, 1970 and also taller than the tallest person known for Dusty and Me? | [
"names",
"role_mapping"
] | SELECT COUNT(name) FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND name_id IN (SELECT name_id 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:542 | What are the number of actors who are taller than the tallest actor born after 1970-01-01? | [
"names",
"role_mapping"
] | SELECT COUNT(name) FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01') AND name IN (SELECT name FROM role_mapping WHERE name_id = names.name_id AND category = 'actor') | [
"1"
] | 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:543 | What is the name of the first person, in alphabetical order, who is listed in the role listings for UK movies released in 2018, excluding any movie released after 2017 whose country is listed exactly as Ireland, Belgium, and also excluding any movie released after 2017 that runs under 120 minutes and is from any countr... | [
"movie",
"role_mapping"
] | SELECT name FROM role_mapping WHERE movie_title IN (SELECT T2.title FROM movie AS T2 WHERE T2.year = 2018 AND T2.country = 'UK' AND role_mapping.movie_title = T2.title) AND NOT movie_title IN (SELECT title FROM movie WHERE year > 2017 AND country = 'Ireland, Belgium') AND NOT movie_title IN (SELECT title FROM movie WHE... | [
"Anita-Joy Uwajeh"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": false,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:544 | What is the maximum height among people born before 1990 who are actors and taller than the tallest person known for Love, Simon? | [
"names",
"role_mapping"
] | SELECT MAX(height) AS max_height FROM names WHERE name IN (SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Love, Simon') AND name IN (SELECT name FROM role_mapping WHERE category = 'actor' AND name_id = names.name_id)) AND date_of_birth < '1990-01-01' | [
"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:545 | What is the average duration of movies from the USA that have an average rating greater than 6.5 and a median rating of 8? | [
"movie",
"ratings"
] | SELECT AVG(duration) FROM movie WHERE title IN (SELECT movie_title FROM ratings WHERE avg_rating > 6.5 AND median_rating = 8) AND country = 'USA' | [
"105.3203883495145631"
] | 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": true,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:546 | How many mystery movies are there? | [
"genre"
] | SELECT COUNT(movie_title) FROM genre WHERE genre = 'Mystery' | [
"542"
] | 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:547 | List the names of the people who are 201 cm tall, born before 1970 and have a height greater than the tallest person born after 1970. | [
"names"
] | SELECT 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 height = 201 AND date_of_birth < '1970-01-01') | [
"Michael Ritchie",
"Richard Ashton"
] | 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:548 | What is the minimum runtime among movies with worldwide gross income greater than $100 that are at least as long as the longest movie (excluding Kirrak Party and Dead Sea) whose average rating and median rating are both above 5? | [
"movie",
"ratings"
] | SELECT MIN(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 worlwide_gross_income > 100 | [
"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": false,
"MIN": true,
"SUM": false
} |
movie:549 | How many movies are produced by ToonBox Entertainment? | [
"movie"
] | SELECT COUNT(title) FROM movie WHERE production_company = 'ToonBox Entertainment' | [
"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:550 | How many movies have average rating more than 5.0 and median rating more than 6? | [
"ratings"
] | SELECT COUNT(movie_title) AS "Number of Movies" FROM ratings WHERE avg_rating > 5.0 AND median_rating > 6 | [
"3857"
] | 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:551 | Which actors, born before 1990, are taller than both 200 cm and the tallest person known for Dusty and Me, and who also acted in either The Great Buddha+ or Ray & Liz? | [
"names",
"role_mapping"
] | SELECT name FROM names WHERE name IN (SELECT name FROM names WHERE height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') AND name IN (SELECT name FROM role_mapping WHERE category = 'actor' AND (movie_title = 'The Great Buddha+' OR movie_title = 'Ray & Liz') GROUP BY name)) AND height > 200 AND... | [
"Richard Ashton"
] | 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:552 | How many action movies have the word 'Deliler' in their title? | [
"genre"
] | SELECT COUNT(movie_title) FROM genre WHERE genre = 'Action' AND movie_title LIKE '%Deliler%' | [
"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:553 | Which movies are longer than the longest movie that (1) had a median rating above 7 with more than 100 total votes, and (2) also had a median rating of 9 with an average rating greater than 6.5? | [
"movie",
"ratings"
] | SELECT title 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)) | [
"Ang panahon ng halimaw",
"Da xiang xi di er zuo",
"La flor"
] | 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": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:554 | Which thriller movies with titles containing the letter "a" have more than 200 total votes, an average rating above 6.5, and also an average rating above 5.5 with a median rating above 5? | [
"genre",
"movie",
"ratings"
] | SELECT title FROM movie WHERE title IN (SELECT T2.movie_title FROM ratings AS T2 WHERE T2.avg_rating > 6.5 AND T2.total_votes > 200 AND T2.movie_title = movie.title) AND title IN (SELECT movie_title FROM genre WHERE genre = 'Thriller' GROUP BY movie_title) AND title IN (SELECT movie_title FROM ratings WHERE avg_rating ... | [
"The Autopsy of Jane Doe",
"Ah-ga-ssi",
"Miss Sloane",
"Gurgaon",
"Contratiempo",
"A martfüi rém",
"Forushande",
"Eshtebak",
"A Death in the Gunj",
"Trapped",
"Mientras el Lobo No Está",
"Den 12. mann",
"Puriyaadha Pudhir",
"John Wick: Chapter 2",
"The Fate of the Furious",
"Shot Calle... | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:555 | Which people are taller than the tallest person born after January 1, 1970, taller than the average height of people known for the movie 'Gangcheolbi', and taller than the tallest person known for the movie 'Dusty and Me'? | [
"names"
] | SELECT name FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01') AND height > (SELECT AVG(height) FROM names WHERE known_for_movie = 'Gangcheolbi') AND height > (SELECT MAX(height) FROM names WHERE known_for_movie = 'Dusty and Me') | [
"Michael Ritchie",
"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:556 | How many people are known for the movie 'Les misérables'? | [
"names"
] | SELECT COUNT(name) FROM names WHERE known_for_movie = 'Les misérables' | [
"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:557 | How many directors does the movie 'Vadhayiyaan Ji Vadhayiyaan' have? | [
"director_mapping"
] | SELECT COUNT(DISTINCT name) FROM director_mapping WHERE movie_title = 'Vadhayiyaan Ji Vadhayiyaan' | [
"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:558 | How many people are born before 1970 and taller than the average height of people known for the movie Gangcheolbi and taller than the tallest person known for the movie Love, Simon? | [
"names"
] | SELECT COUNT(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 = 'Love, Simon') AND date_of_birth < '1970-01-01' | [
"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:559 | Which movie does Matt Shively act in? | [
"role_mapping"
] | SELECT movie_title FROM role_mapping WHERE category = 'actor' AND name = 'Matt Shively' | [
"Father of the Year"
] | 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:560 | How many movies were produced by companies that produced a movie in Germany in 2019 with a duration of more than 60 minutes? | [
"movie"
] | SELECT COUNT(title) FROM movie WHERE production_company IN (SELECT production_company FROM movie WHERE year = 2019 AND country = 'Germany' AND duration > 60 GROUP BY production_company) | [
"64"
] | 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": false,
"COUNT": true,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:561 | Which movies released after 2017 in India, with a duration longer than 100 minutes, produced outside the USA but in the English language, have an average rating higher than the maximum average rating of all movies whose median rating is 8 and average rating above 7? | [
"movie",
"ratings"
] | SELECT movie_title FROM ratings WHERE avg_rating > (SELECT MAX(avg_rating) FROM ratings WHERE median_rating = 8 AND avg_rating > 7) AND movie_title IN (SELECT title FROM movie WHERE year > 2017 AND country = 'India') AND movie_title IN (SELECT title FROM movie WHERE duration > 100 AND country <> 'USA' AND languages LIK... | [
"Andhadhun",
"Yatra"
] | true | false | 1 | {
"1": 3,
"2": null,
"3": null
} | 3 | nested (height=1, max_breadth=3) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": false,
"ORDER BY": false,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": false,
"MIN": false,
"SUM": false
} |
movie:562 | What is the total number of the English-language movies from the USA, that are at least as long as the maximum duration of any other English-language movie over 100 minutes produced by the same production company? | [
"movie"
] | SELECT COUNT(title) AS count_of_longest_english_movies FROM movie WHERE duration >= (SELECT MAX(T2.duration) FROM movie AS T2 WHERE T2.duration > 100 AND T2.languages = 'English' AND T2.production_company = movie.production_company) AND languages = 'English' AND country = 'USA' | [
"347"
] | 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:563 | How many of the two titles, 'Maze Runner: The Death Cure' and 'Bharat Ane Nenu', appear as the known-for movie for people who are 200 cm tall? | [
"names"
] | SELECT COUNT(DISTINCT known_for_movie) FROM names WHERE known_for_movie IN ('Maze Runner: The Death Cure', 'Bharat Ane Nenu') AND height = 200 | [
"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:564 | What is the maximum height of actors who are among the top 5 actors with the most movie titles, and who are taller than the tallest person born after January 1, 1970? | [
"names",
"role_mapping"
] | SELECT MAX(height) AS max_height FROM names WHERE height > (SELECT MAX(height) AS max_height FROM names WHERE date_of_birth > '1970-01-01') AND name IN (SELECT T1.name FROM role_mapping AS T1 WHERE T1.category = 'actor' AND T1.name = names.name GROUP BY T1.name ORDER BY COUNT(T1.movie_title) DESC LIMIT 5) | [
"201"
] | true | true | 1 | {
"1": 2,
"2": null,
"3": null
} | 2 | nested (height=1, max_breadth=2) | {
"GROUP BY": true,
"HAVING": false,
"LIMIT": true,
"ORDER BY": true,
"WHERE": true
} | {
"AVG": false,
"COUNT": false,
"MAX": true,
"MIN": false,
"SUM": false
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.