[Schema (values) (types)]: | imdb |  actor : aid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | copyright : id (text) , msid (number) , cid (text) | cast : id (text) , msid (number) , aid (text) , role (text) | genre : gid (text) , genre (number) | classification : id (text) , msid (number) , gid (text) | company : id (text) , name (number) , country_code (text) | director : did (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | producer : pid (text) , gender (number) , name (text) , nationality (text) , birth_city (text) , birth_year (text) | directed_by : id (text) , msid (number) , did (text) | keyword : id (text) , keyword (number) | made_by : id (text) , msid (number) , pid (text) | movie : mid (text) , title (number) , release_year (text) , title_aka (text) , budget (text) | tags : id (text) , msid (number) , kid (text) | tv_series : sid (text) , title (number) , release_year (text) , num_of_seasons (text) , num_of_episodes (text) , title_aka (text) , budget (number) | writer : wid (text) , gender (number) , name (text) , nationality (text) , num_of_episodes (text) , birth_city (text) , birth_year (number) | written_by : id (text) , msid (number) , wid (text);
[Primary Keys]: actor : aid, copyright : id, cast : id, genre : gid, classification : id, company : id, director : did, producer : pid, directed_by : id, keyword : id, made_by : id, movie : mid, tags : id, tv_series : sid, writer : wid
[Foreign Keys]: cast : msid = copyright : msid | cast : aid = actor : aid | classification : msid = copyright : msid | classification : gid = genre : gid | directed_by : did = director : did | directed_by : msid = copyright : msid | made_by : pid = producer : pid | made_by : msid = copyright : msid | tags : msid = copyright : msid | written_by : wid = writer : wid | written_by : msid = copyright : msid

Question: What year is the movie " The Imitation Game " from ?
SQL: SELECT release_year FROM movie WHERE title  =  "The Imitation Game";

Question: What year was the movie " The Imitation Game " produced
SQL: SELECT release_year FROM movie WHERE title  =  "The Imitation Game";

Question: What year was " Benedict Cumberbatch " born ?
SQL: SELECT birth_year FROM actor WHERE name  =  "Benedict Cumberbatch";

Question: In what year was " Benedict Cumberbatch " born
SQL: SELECT birth_year FROM actor WHERE name  =  "Benedict Cumberbatch";

Question: What is the nationality of the actress " Christoph Waltz " ?
SQL: SELECT nationality FROM actor WHERE name  =  "Christoph Waltz";

Question: What is the nationality of the actor " Christoph Waltz " ?
SQL: SELECT nationality FROM actor WHERE name  =  "Christoph Waltz";

Question: Find all movies produced in 2015
SQL: SELECT title FROM movie WHERE release_year  =  2015;

Question: Find all actors born in " Tehran "
SQL: SELECT name FROM actor WHERE birth_city  =  "Tehran";

Question: Find all actors born in Tehran
SQL: SELECT name FROM actor WHERE birth_city  =  "Tehran";

Question: Which actors were born in Tehran
SQL: SELECT name FROM actor WHERE birth_city  =  "Tehran";

Question: Find all actors who are from Afghanistan
SQL: SELECT name FROM actor WHERE nationality  =  "Afghanistan";

Question: Find all actors from Afghanistan
SQL: SELECT name FROM actor WHERE nationality  =  "Afghanistan";

Question: Give me the name of all the actors from Afghanistan
SQL: SELECT name FROM actor WHERE nationality  =  "Afghanistan";

Question: Find all actors who were born in 1984
SQL: SELECT name FROM actor WHERE birth_year  =  1984;

Question: When was " Kevin Spacey " born ?
SQL: SELECT birth_year FROM actor WHERE name  =  "actor_name0";

Question: In what year was " Kevin Spacey " born ?
SQL: SELECT birth_year FROM actor WHERE name  =  "actor_name0";

Question: Where is the birth place of " Kevin Spacey "
SQL: SELECT birth_city FROM director WHERE name  =  "director_name0";

Question: In what city was " Kevin Spacey " born ?
SQL: SELECT birth_city FROM director WHERE name  =  "director_name0";

Question: What is the nationality of " Kevin Spacey " ?
SQL: SELECT nationality FROM director WHERE name  =  "director_name0";

Question: How much was the budget of " Finding Nemo "
SQL: SELECT budget FROM movie WHERE title  =  "Finding Nemo";

Question: Find all movies directed by " Steven Spielberg " after 2006
SQL: 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;

Question: Who is the director of the movie " James Bond " ?
SQL: 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";

Question: Who directed the movie " James Bond " ?
SQL: 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";

Question: List " James Bond " directors
SQL: 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";

Question: Find the actor who played " Alan Turing " in the movie " The Imitation Game "
SQL: 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";

Question: Who acted " Alan Turing " in the movie " The Imitation Game " ?
SQL: 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";

Question: Who was the actor that played " Alan Turing " in the movie " The Imitation Game " ?
SQL: 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";

Question: Who acts as " Alan Turing " in the movie " The Imitation Game " ?
SQL: 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";

Question: Who is the actor playing " Alan Turing " in " The Imitation Game " ?
SQL: 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";

Question: What is the genre of the movie " Jurassic Park " ?
SQL: 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";

Question: Who was the director of the movie Joy from 2015 ?
SQL: 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";

Question: Find all movies written by " Matt Damon "
SQL: 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";

Question: Find all movies written and produced by " Woody Allen "
SQL: 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";

Question: Find all movies featuring " Robin Wright "
SQL: 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";

Question: What are all the movies featuring " Robin Wright " ?
SQL: 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";

Question: Find all movies in which " Robin Wright " appears
SQL: 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";

Question: What was the budget of the movie Juno from 2007 ?
SQL: SELECT budget FROM movie WHERE release_year  =  2007 AND title  =  "Juno";

Question: Find all Sci-Fi produced in year 2010
SQL: 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;

Question: List all the Sci-Fi movies which released in 2010
SQL: 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;

Question: Find all actors born in " Austin " after 1980
SQL: SELECT name FROM actor WHERE birth_city  =  "Austin" AND birth_year  >  1980;

Question: Who are the actors born in " Austin " after 1980 ?
SQL: SELECT name FROM actor WHERE birth_city  =  "Austin" AND birth_year  >  1980;

Question: Find all actors from Austin born after 1980
SQL: SELECT name FROM actor WHERE birth_city  =  "Austin" AND birth_year  >  1980;

Question: Find all movies by directors born in " Los Angeles "
SQL: 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";

Question: Find all actors who were born in " New York City " in 1984
SQL: SELECT name FROM actor WHERE birth_city  =  "New York City" AND birth_year  =  1984;

Question: Find all movies about nuclear weapons
SQL: 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";

Question: What are the movies related to nuclear weapons
SQL: 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";

Question: Which movies did " Alfred Hitchcock " direct ?
SQL: 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";

Question: Find all movies directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti "
SQL: 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";

Question: What are all the movies directed by " Asghar Farhadi " featuring " Taraneh Alidoosti " ?
SQL: 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";

Question: How many movies are there that are directed by " Asghar Farhadi " and featuring " Taraneh Alidoosti " ?
SQL: 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";

Question: List all the movies directed by " Asghar Farhadi " in which " Taraneh Alidoosti " played
SQL: 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";

Question: What are all the tv series created by " Shonda Rhimes " ?
SQL: SELECT t2.title FROM producer AS t1 JOIN made_by AS t3 ON t1.pid  =  t3.pid JOIN tv_series AS t2 ON t2.sid  =  t3.msid WHERE t1.name  =  "Shonda Rhimes";

Question: Who acts " Olivia Pope " in the series Scandal ?
SQL: SELECT t1.name FROM CAST AS t3 JOIN actor AS t1 ON t3.aid  =  t1.aid JOIN tv_series AS t2 ON t2.sid  =  t3.msid WHERE t3.role  =  "Olivia Pope" AND t2.title  =  "Scandal";

Question: Who is the writer of the movie " The Truman Show "
SQL: SELECT t2.name FROM written_by AS t3 JOIN movie AS t1 ON t3.msid  =  t1.mid JOIN writer AS t2 ON t3.wid  =  t2.wid WHERE t1.title  =  "The Truman Show";

Question: Who is the writer of " The Truman Show "
SQL: SELECT t2.name FROM written_by AS t3 JOIN movie AS t1 ON t3.msid  =  t1.mid JOIN writer AS t2 ON t3.wid  =  t2.wid WHERE t1.title  =  "The Truman Show";

Question: What are the series featuring " Scott Foley " ?
SQL: SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid  =  t1.aid JOIN tv_series AS t2 ON t2.sid  =  t3.msid WHERE t1.name  =  "Scott Foley";

Question: What are the series in which " Scott Foley " is an actor ?
SQL: SELECT t2.title FROM CAST AS t3 JOIN actor AS t1 ON t3.aid  =  t1.aid JOIN tv_series AS t2 ON t2.sid  =  t3.msid WHERE t1.name  =  "Scott Foley";

Question: Find the directors of all movies featuring " Kate Winslet "
SQL: SELECT t3.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid  =  t1.aid JOIN movie AS t5 ON t5.mid  =  t4.msid JOIN directed_by AS t2 ON t5.mid  =  t2.msid JOIN director AS t3 ON t3.did  =  t2.did WHERE t1.name  =  "Kate Winslet";

Question: Find the producers of all movies in which " Kate Winslet " is an actor
SQL: SELECT t1.name FROM CAST AS t3 JOIN actor AS t2 ON t3.aid  =  t2.aid JOIN movie AS t5 ON t5.mid  =  t3.msid JOIN made_by AS t4 ON t5.mid  =  t4.msid JOIN producer AS t1 ON t1.pid  =  t4.pid WHERE t2.name  =  "Kate Winslet";

Question: Who is the director of the tv series " House of Cards " from 2013 ?
SQL: SELECT t2.name FROM director AS t2 JOIN directed_by AS t1 ON t2.did  =  t1.did JOIN tv_series AS t3 ON t3.sid  =  t1.msid WHERE t3.release_year  =  2013 AND t3.title  =  "House of Cards";

Question: Find all the female actors from Austin
SQL: SELECT name FROM actor WHERE birth_city  =  "Austin" AND gender  =  "female";

Question: Find all actors from Italy born after 1980
SQL: SELECT name FROM actor WHERE birth_year  >  1980 AND nationality  =  "Italy";

Question: Find all the female actors born in " New York City " after 1980
SQL: SELECT name FROM actor WHERE birth_city  =  "New York City" AND birth_year  >  1980 AND gender  =  "female";

Question: Find all the female actors in the movie " Saving Private Ryan "
SQL: 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 t1.gender  =  "female" AND t3.title  =  "Saving Private Ryan";

Question: Find all the directors who are from Afghanistan
SQL: SELECT name FROM director WHERE nationality  =  "Afghanistan";

Question: Find the actors who played in the movie " Camp X-Ray "
SQL: 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 t3.title  =  "Camp X-Ray";

Question: Find all actors from Canada who acted in " James Bond " movies
SQL: 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 t1.nationality  =  "Canada" AND t3.title  =  "James Bond";

Question: find all films in which " Rowan Atkinson " acted as " Mr. Bean "
SQL: 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  =  "Rowan Atkinson" AND t3.role  =  "Mr. Bean";

Question: where is the director of " The Past " from
SQL: SELECT t2.birth_city 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  =  "The Past";

Question: who acted the role of " Mr. Bean "
SQL: SELECT t1.name FROM CAST AS t2 JOIN actor AS t1 ON t2.aid  =  t1.aid WHERE t2.role  =  "Mr. Bean";

Question: what are the genres of movies directed by " Asghar Farhadi "
SQL: SELECT t3.genre FROM director AS t5 JOIN directed_by AS t2 ON t5.did  =  t2.did JOIN movie AS t4 ON t4.mid  =  t2.msid JOIN classification AS t1 ON t4.mid  =  t1.msid JOIN genre AS t3 ON t3.gid  =  t1.gid WHERE t5.name  =  "Asghar Farhadi";

Question: Which movie had the character " Daffy Duck "
SQL: SELECT t1.title FROM movie AS t1 JOIN CAST AS t2 ON t1.mid  =  t2.msid WHERE t2.role  =  "Daffy Duck";

Question: What are the major roles in the movie " Daddy Long Legs "
SQL: SELECT t2.role FROM CAST AS t2 JOIN actor AS t1 ON t2.aid  =  t1.aid JOIN movie AS t3 ON t3.mid  =  t2.msid WHERE t3.title  =  "Daddy Long Legs";

Question: List all the directors of movies about nuclear weapons
SQL: SELECT t3.name FROM director AS t3 JOIN directed_by AS t2 ON t3.did  =  t2.did JOIN movie AS t4 ON t4.mid  =  t2.msid JOIN tags AS t5 ON t5.msid  =  t4.mid JOIN keyword AS t1 ON t5.kid  =  t1.id WHERE t1.keyword  =  "nuclear weapons";

Question: What is the number of movies in which " Jennifer Aniston " acted after 2010 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Jennifer Aniston" AND t2.release_year  >  2010;

Question: What is the number of actors in the movie " Saving Private Ryan " ?
SQL: SELECT COUNT ( DISTINCT 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 t3.title  =  "Saving Private Ryan";

Question: How many actors are in the movie " Saving Private Ryan " ?
SQL: SELECT COUNT ( DISTINCT 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 t3.title  =  "Saving Private Ryan";

Question: How many movies did " Steven Spielberg " direct ?
SQL: SELECT COUNT ( DISTINCT 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";

Question: How many movies were produced in the year 2013 ?
SQL: SELECT COUNT ( DISTINCT title  ) FROM movie WHERE release_year  =  2013;

Question: What is the number of movies produced in 2013 ?
SQL: SELECT COUNT ( DISTINCT title  ) FROM movie WHERE release_year  =  2013;

Question: What is the number of movies directed by " Woody Allen " per year ?
SQL: SELECT COUNT ( DISTINCT t3.title  )  ,  t3.release_year 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  =  "Woody Allen" GROUP BY t3.release_year;

Question: How many movies did " Shahab Hosseini " act in ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Shahab Hosseini";

Question: What is the number of movies in which " Shahab Hosseini " acted ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Shahab Hosseini";

Question: What is the number of movies featuring " Shahab Hosseini " ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Shahab Hosseini";

Question: How many movies did " Shahab Hosseini " act in
SQL: SELECT COUNT ( DISTINCT 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  =  "Shahab Hosseini";

Question: How many actors were born in " Los Angeles " after 2000 ?
SQL: SELECT COUNT ( DISTINCT name  ) FROM actor WHERE birth_city  =  "Los Angeles" AND birth_year  >  2000;

Question: How many movies did " Humphrey Bogart " act in before 1942 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Humphrey Bogart" AND t2.release_year  <  1942;

Question: What is the number of movies that " Brad Pitt " acts in per year ?
SQL: SELECT COUNT ( DISTINCT t2.title  )  ,  t2.release_year 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  =  "Brad Pitt" GROUP BY t2.release_year;

Question: How many movies about Iraq war were produced in 2015 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Iraq war" AND t3.release_year  =  2015;

Question: How many movies about Persians were released after 1990 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Persians" AND t3.release_year  >  1990;

Question: How many movies did " Quentin Tarantino " direct after 2010 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Quentin Tarantino" AND t3.release_year  >  2010;

Question: How many movies did " Quentin Tarantino " direct before 2010 ?
SQL: SELECT COUNT ( DISTINCT 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  =  "Quentin Tarantino" AND t3.release_year  <  2010;

Question: How many movies did " Quentin Tarantino " direct before 2002 and after 2010 ?
SQL: SELECT COUNT ( DISTINCT t4.title  ) FROM director AS t3 JOIN directed_by AS t2 ON t3.did  =  t2.did JOIN movie AS t4 ON t4.mid  =  t2.msid JOIN made_by AS t5 ON t4.mid  =  t5.msid JOIN producer AS t1 ON t1.pid  =  t5.pid WHERE t3.name  =  "Quentin Tarantino" AND t4.release_year  <  2010 AND t4.release_year  >  2002;

Question: How many female actors were born in " New York City " after 1980 ?
SQL: SELECT COUNT ( DISTINCT name  ) FROM actor WHERE birth_city  =  "New York City" AND birth_year  >  1980 AND gender  =  "female";

Question: find the number of actors from Iran who played in " Jim Jarmusch " movies
SQL: SELECT COUNT ( DISTINCT t1.name  ) FROM CAST AS t4 JOIN actor AS t1 ON t4.aid  =  t1.aid JOIN movie AS t5 ON t5.mid  =  t4.msid JOIN directed_by AS t2 ON t5.mid  =  t2.msid JOIN director AS t3 ON t3.did  =  t2.did WHERE t1.nationality  =  "Iran" AND t3.name  =  "Jim Jarmusch";

Question: How many actors from China have acted in " Rush Hour 3 "
SQL: SELECT COUNT ( DISTINCT 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 t1.nationality  =  "China" AND t3.title  =  "Rush Hour 3";

Question: Find all movies that star both " Woody Strode " and " Jason Robards "
SQL: 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 CAST AS t3 ON t4.mid  =  t3.msid JOIN actor AS t2 ON t3.aid  =  t2.aid WHERE t1.name  =  "Woody Strode" AND t2.name  =  "Jason Robards";

Question: Find all movies featuring " Woody Strode " and " Jason Robards "
SQL: 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 CAST AS t3 ON t4.mid  =  t3.msid JOIN actor AS t2 ON t3.aid  =  t2.aid WHERE t1.name  =  "Woody Strode" AND t2.name  =  "Jason Robards";

Question: Find all movies featuring both " Woody Strode " and " Jason Robards "
SQL: 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 CAST AS t3 ON t4.mid  =  t3.msid JOIN actor AS t2 ON t3.aid  =  t2.aid WHERE t1.name  =  "Woody Strode" AND t2.name  =  "Jason Robards";

Question: Find all movies featuring " Jason Robards " and " Woody Strode "
SQL: 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 CAST AS t3 ON t4.mid  =  t3.msid JOIN actor AS t2 ON t3.aid  =  t2.aid WHERE t1.name  =  "Woody Strode" AND t2.name  =  "Jason Robards";

Question: Find all actors who acted in the same movie as " Tom Hanks "
SQL: SELECT t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid  =  t1.aid JOIN movie AS t5 ON t5.mid  =  t4.msid JOIN CAST AS t3 ON t5.mid  =  t3.msid JOIN actor AS t2 ON t3.aid  =  t2.aid WHERE t2.name  =  "Tom Hanks";

Question: What movies have the same director as the movie " Revolutionary Road " ?
SQL: SELECT t3.title FROM director AS t5 JOIN directed_by AS t2 ON t5.did  =  t2.did JOIN directed_by AS t1 ON t5.did  =  t1.did JOIN movie AS t4 ON t4.mid  =  t2.msid JOIN movie AS t3 ON t3.mid  =  t1.msid WHERE t4.title  =  "Revolutionary Road";

Question: Find the movie which is classified in the most number of genres
SQL: 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 GROUP BY t3.title ORDER BY COUNT ( DISTINCT t2.genre  ) DESC LIMIT 1;

Question: which movie has the most number of actors from China ?
SQL: 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.nationality  =  "China" GROUP BY t2.title ORDER BY COUNT ( DISTINCT t1.name  ) DESC LIMIT 1;

Question: Find the actors who played in the latest movie by " Quentin Tarantino "
SQL: SELECT t1.name FROM CAST AS t4 JOIN actor AS t1 ON t4.aid  =  t1.aid JOIN movie AS t5 ON t5.mid  =  t4.msid JOIN directed_by AS t2 ON t5.mid  =  t2.msid JOIN director AS t3 ON t3.did  =  t2.did WHERE t3.name  =  "Quentin Tarantino" ORDER BY t5.release_year DESC LIMIT 1;

Question: Find the name and budget of the latest movie by " Quentin Tarantino "
SQL: SELECT t3.budget  ,  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  =  "Quentin Tarantino" ORDER BY t3.release_year DESC LIMIT 1;

Question: What is the latest movie by " Jim Jarmusch "
SQL: 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  =  "Jim Jarmusch" ORDER BY t3.release_year DESC LIMIT 1;

Question: Which producer has worked with the most number of directors ?
SQL: SELECT t1.name FROM director AS t3 JOIN directed_by AS t2 ON t3.did  =  t2.did JOIN movie AS t4 ON t4.mid  =  t2.msid JOIN made_by AS t5 ON t4.mid  =  t5.msid JOIN producer AS t1 ON t1.pid  =  t5.pid GROUP BY t1.name ORDER BY COUNT ( DISTINCT t3.name  ) DESC LIMIT 1;

Question: Find the latest movie which " Gabriele Ferzetti " acted in
SQL: 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 t1.name  =  "Gabriele Ferzetti" ORDER BY t3.release_year DESC LIMIT 1;