db_id
stringclasses
31 values
schema
stringclasses
22 values
schemaComEx
stringclasses
22 values
question
stringlengths
18
181
query
stringlengths
20
577
answer
stringlengths
14
41.7k
complexity
stringclasses
4 values
distinct
bool
2 classes
like
bool
2 classes
between
bool
2 classes
order_by
bool
2 classes
limit
bool
2 classes
grouby_by
bool
2 classes
having
bool
2 classes
single_join
bool
2 classes
multiple_join
bool
2 classes
multiple_select
bool
2 classes
intersect
bool
2 classes
except
bool
2 classes
union
bool
2 classes
baseball_1
null
null
How many team franchises are active, with active value 'Y'?
SELECT count(*) FROM team_franchise WHERE active = 'Y';
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
baseball_1
null
null
Find the number of team franchises that are active (have 'Y' as "active" information).
SELECT count(*) FROM team_franchise WHERE active = 'Y';
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
baseball_1
null
null
Which cities have 2 to 4 parks?
SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
baseball_1
null
null
Find all the cities that have 2 to 4 parks.
SELECT city FROM park GROUP BY city HAVING count(*) BETWEEN 2 AND 4;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
baseball_1
null
null
Which park had most attendances in 2008?
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
baseball_1
null
null
Which park did the most people attend in 2008?
SELECT T2.park_name FROM home_game AS T1 JOIN park AS T2 ON T1.park_id = T2.park_id WHERE T1.year = 2008 ORDER BY T1.attendance DESC LIMIT 1;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find all the distinct district names ordered by city area in descending.
SELECT DISTINCT District_name FROM district ORDER BY city_area DESC
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the different district names in order of descending city area?
SELECT DISTINCT District_name FROM district ORDER BY city_area DESC
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the list of page size which have more than 3 product listed
SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the maximum page size for everything that has more than 3 products listed?
SELECT max_page_size FROM product GROUP BY max_page_size HAVING count(*) > 3
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the name and population of district with population between 200000 and 2000000
SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the district names and city populations for all districts that between 200,000 and 2,000,000 residents?
SELECT District_name , City_Population FROM district WHERE City_Population BETWEEN 200000 AND 2000000
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the name all districts with city area greater than 10 or population larger than 100000
SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the names of all districts with a city area greater than 10 or have more than 100000 people living there?
SELECT district_name FROM district WHERE city_area > 10 OR City_Population > 100000
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Which district has the largest population?
SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the name of the district with the most residents?
SELECT district_name FROM district ORDER BY city_population DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Which district has the least area?
SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the name of the district with the smallest area?
SELECT district_name FROM district ORDER BY city_area ASC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the total population of the top 3 districts with the largest area.
SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the total number of residents for the districts with the 3 largest areas?
SELECT sum(city_population) FROM district ORDER BY city_area DESC LIMIT 3
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find all types of store and number of them.
SELECT TYPE , count(*) FROM store GROUP BY TYPE
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
For each type of store, how many of them are there?
SELECT TYPE , count(*) FROM store GROUP BY TYPE
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the names of all stores in Khanewal District.
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the names of all the stores located in Khanewal District?
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t3.district_name = "Khanewal District"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find all the stores in the district with the most population.
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the names of all the stores in the largest district by population?
SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population DESC LIMIT 1)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Which city is the headquarter of the store named "Blackville" in?
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What city is the headquarter of the store Blackville?
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.store_name = "Blackville"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the number of stores in each city.
SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
How many stores are headquarted in each city?
SELECT t3.headquartered_city , count(*) FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the city with the most number of stores.
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the city with the most number of flagship stores?
SELECT t3.headquartered_city FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id GROUP BY t3.headquartered_city ORDER BY count(*) DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the average pages per minute color?
SELECT avg(pages_per_minute_color) FROM product
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the average number of pages per minute color?
SELECT avg(pages_per_minute_color) FROM product
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What products are available at store named "Miramichi"?
SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What products are sold at the store named Miramichi?
SELECT t1.product FROM product AS t1 JOIN store_product AS t2 ON t1.product_id = t2.product_id JOIN store AS t3 ON t2.store_id = t3.store_id WHERE t3.store_name = "Miramichi"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find products with max page size as "A4" and pages per minute color smaller than 5.
SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the products with the maximum page size A4 that also have a pages per minute color smaller than 5?
SELECT product FROM product WHERE max_page_size = "A4" AND pages_per_minute_color < 5
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find products with max page size as "A4" or pages per minute color smaller than 5.
SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the products with the maximum page size eqal to A4 or a pages per minute color less than 5?
SELECT product FROM product WHERE max_page_size = "A4" OR pages_per_minute_color < 5
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find all the product whose name contains the word "Scanner".
SELECT product FROM product WHERE product LIKE "%Scanner%"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are all of the products whose name includes the substring "Scanner"?
SELECT product FROM product WHERE product LIKE "%Scanner%"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the most prominent max page size among all the products.
SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the most common maximum page size?
SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the name of the products that are not using the most frequently-used max page size.
SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the names of all products that are not the most frequently-used maximum page size?
SELECT product FROM product WHERE product != (SELECT max_page_size FROM product GROUP BY max_page_size ORDER BY count(*) DESC LIMIT 1)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the total population of the districts where the area is bigger than the average city area.
SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What is the total population for all the districts that have an area larger tahn the average city area?
SELECT sum(city_population) FROM district WHERE city_area > (SELECT avg(city_area) FROM district)
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
Find the names of districts where have both city mall and village store type stores.
SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "Village Store"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
store_product
null
null
What are the names of the districts that have both mall and village store style shops?
SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "City Mall" INTERSECT SELECT t3.District_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id JOIN district AS t3 ON t2.district_id = t3.district_id WHERE t1.Type = "Village Store"
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What year is the movie " The Imitation Game " from ?
SELECT release_year FROM movie WHERE title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What year was the movie " The Imitation Game " produced
SELECT release_year FROM movie WHERE title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What year was " Benedict Cumberbatch " born ?
SELECT birth_year FROM actor WHERE name = "Benedict Cumberbatch";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
In what year was " Benedict Cumberbatch " born
SELECT birth_year FROM actor WHERE name = "Benedict Cumberbatch";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What is the nationality of the actress " Christoph Waltz " ?
SELECT nationality FROM actor WHERE name = "Christoph Waltz";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What is the nationality of the actor " Christoph Waltz " ?
SELECT nationality FROM actor WHERE name = "Christoph Waltz";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies produced in 2015
SELECT title FROM movie WHERE release_year = 2015;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors born in " Tehran "
SELECT name FROM actor WHERE birth_city = "Tehran";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors born in Tehran
SELECT name FROM actor WHERE birth_city = "Tehran";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Which actors were born in Tehran
SELECT name FROM actor WHERE birth_city = "Tehran";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors who are from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Give me the name of all the actors from Afghanistan
SELECT name FROM actor WHERE nationality = "Afghanistan";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors who were born in 1984
SELECT name FROM actor WHERE birth_year = 1984;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
When was " Kevin Spacey " born ?
SELECT birth_year FROM actor WHERE name = "actor_name0";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
In what year was " Kevin Spacey " born ?
SELECT birth_year FROM actor WHERE name = "actor_name0";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Where is the birth place of " Kevin Spacey "
SELECT birth_city FROM director WHERE name = "director_name0";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
In what city was " Kevin Spacey " born ?
SELECT birth_city FROM director WHERE name = "director_name0";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What is the nationality of " Kevin Spacey " ?
SELECT nationality FROM director WHERE name = "director_name0";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
How much was the budget of " Finding Nemo "
SELECT budget FROM movie WHERE title = "Finding Nemo";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies directed by " Steven Spielberg " after 2006
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Steven Spielberg" AND t3.release_year > 2006;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who is the director of the movie " James Bond " ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who directed the movie " James Bond " ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
List " James Bond " directors
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "James Bond";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find the actor who played " Alan Turing " in the movie " The Imitation Game "
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who acted " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who was the actor that played " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who acts as " Alan Turing " in the movie " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who is the actor playing " Alan Turing " in " The Imitation Game " ?
SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid = t1.aid JOIN movie AS t3 ON t3.mid = t2.msid WHERE t2.role = "Alan Turing" AND t3.title = "The Imitation Game";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What is the genre of the movie " Jurassic Park " ?
SELECT t2.genre FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.title = "Jurassic Park";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who was the director of the movie Joy from 2015 ?
SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t3.release_year = 2015 AND t3.title = "Joy";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies written by " Matt Damon "
SELECT t1.title FROM written_by AS t3 JOIN movie AS t1 ON t3.msid = t1.mid JOIN writer AS t2 ON t3.wid = t2.wid WHERE t2.name = "Matt Damon";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies written and produced by " Woody Allen "
SELECT t2.title FROM movie AS t2 JOIN made_by AS t3 ON t2.mid = t3.msid JOIN producer AS t1 ON t1.pid = t3.pid JOIN written_by AS t5 ON t5.msid = t2.mid JOIN writer AS t4 ON t5.wid = t4.wid WHERE t1.name = "Woody Allen" AND t4.name = "Woody Allen";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies featuring " Robin Wright "
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What are all the movies featuring " Robin Wright " ?
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies in which " Robin Wright " appears
SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid = t1.aid JOIN movie AS t2 ON t2.mid = t3.msid WHERE t1.name = "Robin Wright";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What was the budget of the movie Juno from 2007 ?
SELECT budget FROM movie WHERE release_year = 2007 AND title = "Juno";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all Sci-Fi produced in year 2010
SELECT t3.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.genre = "Sci-Fi" AND t3.release_year = 2010;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
List all the Sci-Fi movies which released in 2010
SELECT t3.title FROM genre AS t2 JOIN classification AS t1 ON t2.gid = t1.gid JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.genre = "Sci-Fi" AND t3.release_year = 2010;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors born in " Austin " after 1980
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Who are the actors born in " Austin " after 1980 ?
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors from Austin born after 1980
SELECT name FROM actor WHERE birth_city = "Austin" AND birth_year > 1980;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies by directors born in " Los Angeles "
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.birth_city = "Los Angeles";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all actors who were born in " New York City " in 1984
SELECT name FROM actor WHERE birth_city = "New York City" AND birth_year = 1984;
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies about nuclear weapons
SELECT t3.title FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "nuclear weapons";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What are the movies related to nuclear weapons
SELECT t3.title FROM tags AS t2 JOIN keyword AS t1 ON t2.kid = t1.id JOIN movie AS t3 ON t2.msid = t3.mid WHERE t1.keyword = "nuclear weapons";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Which movies did " Alfred Hitchcock " direct ?
SELECT t3.title FROM director AS t2 JOIN directed_by AS t1 ON t2.did = t1.did JOIN movie AS t3 ON t3.mid = t1.msid WHERE t2.name = "Alfred Hitchcock";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
Find all movies directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti "
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
What are all the movies directed by " Asghar Farhadi " featuring " Taraneh Alidoosti " ?
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
imdb
null
null
How many movies are there that are directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti " ?
SELECT t4.title FROM CAST AS t5 JOIN actor AS t1 ON t5.aid = t1.aid JOIN movie AS t4 ON t4.mid = t5.msid JOIN directed_by AS t2 ON t4.mid = t2.msid JOIN director AS t3 ON t3.did = t2.did WHERE t1.name = "Taraneh Alidoosti" AND t3.name = "Asghar Farhadi";
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null