1sf/bird-sql-train-with-schema huggingface dataset:
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: How much longer in percentage is the screen time of the most important character in Batman than the least important one?
Evidence: most important character refers to max(screentime); least important character refers to min(screentime); movie Batman refers to title = 'Batman'; percentage = divide(subtract(max(screentime) , min(screentime)) , min(screentime)) * 100%
SQL: SELECT (MAX(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) - MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL))) * 100 / MIN(CAST(SUBSTR(T2.screentime, 3, 2) AS REAL)) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'Batman'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Which movie had the biggest budget? Give the name of the movie.
Evidence: biggest budget refers to max(Budget); name of the movie refers to Title
SQL: SELECT Title FROM movie ORDER BY Budget DESC LIMIT 1
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the MPAA rating for the movie with the character named "Peter Quill" in it?
Evidence: MPAA rating = 'G' means General audiences; MPAA rating = 'PG' means Parental guidance suggested; MPAA rating = 'R'means Restricted; MPAA rating = 'X' means No one under 17 admitted
SQL: SELECT T1.`MPAA Rating` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.`Character Name` = 'Peter Quill'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Give the name of the No.1 character in the credit list from the highest rating thriller movie.
Evidence: No.1 character in the credit list refers to creditOrder = '1'; highest rating refers to max(rating); thriller movie refers to Genre = 'Thriller'
SQL: SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T2.creditOrder = '1' AND T1.Genre = 'Thriller' ORDER BY T1.Rating DESC LIMIT 1
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Who was the actor that played in the movie "Batman" with the longest screentime?
Evidence: movie "Batman" refers to Title = 'Batman'; longest screentime refers to max(screentime)
SQL: SELECT T2.Name FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID INNER JOIN movie AS T3 ON T3.MovieID = T1.MovieID WHERE T3.Title = 'Batman' ORDER BY T1.screentime DESC LIMIT 1
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: How many movies has the highest networth actor acted in?
Evidence: highest networth refers to max(networth)
SQL: SELECT COUNT(*) FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE CAST(REPLACE(REPLACE(T2.NetWorth, ',', ''), '$', '') AS REAL) = ( SELECT MAX(CAST(REPLACE(REPLACE(NetWorth, ',', ''), '$', '') AS REAL)) FROM actor)
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Who played the character named "Chanice Kobolowski"?
SQL: SELECT T2.Name FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Chanice Kobolowski'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: When is the birthday of the actor who played "Sully"?
Evidence: birthday refers to Date of Birth; "Sully" refers to Character Name = 'Sully'
SQL: SELECT T2.`Date of Birth` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Sully'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Show the birth city of the actor who played "Gabriel Martin".
Evidence: "Gabriel Martin" refers to Character Name = 'Gabriel Martin'
SQL: SELECT T2.`Birth City` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Gabriel Martin'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Give the biography of the actor who played "Michael Moscovitz".
Evidence: "Michael Moscovitz" refers to Character Name = 'Michael Moscovitz'
SQL: SELECT T2.Biography FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Michael Moscovitz'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: How tall is the actor who played "Lurch"?
Evidence: tall refers to Height (Inches); "Lurch" refers to Character Name = 'Lurch'
SQL: SELECT T2.`Height (Inches)` FROM characters AS T1 INNER JOIN actor AS T2 ON T1.ActorID = T2.ActorID WHERE T1.`Character Name` = 'Lurch'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Show the No.3 character name in the credit list of the movie "G.I. Joe: The Rise of Cobra".
Evidence: No.3 character refers to creditOrder = '3'; movie "G.I. Joe: The Rise of Cobra" refers to Title = 'G.I. Joe: The Rise of Cobra'
SQL: SELECT T2.`Character Name` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID WHERE T1.Title = 'G.I. Joe: The Rise of Cobra' AND T2.creditOrder = '3'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Who played the No.2 character in the credit list of the movie "American Hustle"?
Evidence: No.2 character refers to creditOrder = '2'; movie "American Hustle" refers to Title = 'American Hustle'
SQL: SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'American Hustle' AND T2.creditOrder = '2'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Who played the No.1 character in the credit list of the movie which was released on "2015/10/26"?
Evidence: No.1 character refers to creditOrder = '1'; released on "2015/10/26" refers to Release Date = '2015-10-26'
SQL: SELECT T3.Name FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.`Release Date` = '2015-10-26' AND T2.creditOrder = '1'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the percentage of the USA actors that showed up in the credit list of movie "Mrs. Doubtfire"?
Evidence: USA actors refers to Birth Country = 'USA'; movie "Mrs. Doubtfire" refers to Title = 'Mrs. Doubtfire'; percentage = divide(count(ActorID where Birth Country = 'USA'), count(ActorID)) * 100%
SQL: SELECT CAST(SUM(CASE WHEN T3.`Birth Country` = 'USA' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.`Birth Country`) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Mrs. Doubtfire'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the percentage of the actors that showed up in the credit list of movie "Dawn of the Planet of the Apes" that were born after "1970/1/1"?
Evidence: movie "Dawn of the Planet of the Apes" refers to Title = 'Dawn of the Planet of the Apes'; born after "1970/1/1" refers to Date of Birth > '1970/1/1'; percentage = divide(count(ActorID where Date of Birth > '1970/1/1'), count(ActorID))*100%
SQL: SELECT CAST(SUM(CASE WHEN T3.`Date of Birth` > '1970-01-01' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T3.`Date of Birth`) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Dawn of the Planet of the Apes'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: List down the movie ID of movie with a budget of 15000000 and a rating between 7 to 8.
Evidence: a budget of 15000000 refers to Budget = 15000000; rating between 7 to 8 refers to Rating BETWEEN 7 and 8
SQL: SELECT MovieID FROM movie WHERE Rating BETWEEN 7 AND 8 AND Budget = 15000000
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: In rated PG movies, how many of them released in June 1990?
Evidence: rated PG refers to MPAA Rating = 'PG'; released in June 1990 refers to Release Date BETWEEN '1990-06-01' and '1990-06-30'
SQL: SELECT COUNT(*) FROM movie WHERE `MPAA Rating` = 'PG' AND `Release Date` LIKE '1990-06%'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the name of male and white actor with actor ID 439?
Evidence: male refers to Gender = 'Male'; white refers to Ethnicity = 'White'
SQL: SELECT Name FROM actor WHERE ActorID = 439 AND Gender = 'Male' AND Ethnicity = 'White'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Among the actors born in New York City, list the genre of their movie with a rating greater than 5.
Evidence: born in New York City refers to Birth City = 'New York City'; rating greater than 5 refers to Rating > 5
SQL: SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.`Birth City` = 'New York City' AND T1.Rating > 5
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: In romantic movies, how many of them starred by John Travolta?
Evidence: romantic movies refers to Genre = 'Romance'; starred by John Travolta refers to Name = 'John Travolta'
SQL: SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Genre = 'Romance' AND T3.Name = 'John Travolta'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: List the height and net worth of actors starred in Three Men and a Little Lady.
Evidence: Three Men and a Little Lady refers to Title = 'Three Men and a Little Lady'
SQL: SELECT T3.`Height (Inches)`, T3.NetWorth FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Three Men and a Little Lady'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the genre of PG rated movie starred by the actor with highest net worth?
Evidence: PG rated refers to MPAA Rating = 'PG';  highest net worth refers to max(NetWorth)
SQL: SELECT T1.Genre FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.`MPAA Rating` = 'PG' ORDER BY CAST(REPLACE(REPLACE(T3.NetWorth, ',', ''), '$', '') AS REAL) DESC LIMIT 1
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the net worth of the actor starred in Misery who has a height ranging from 60 to 70 inches tall?
Evidence: Misery refers to Title = 'Misery'; height ranging from 60 to 70 inches refers to Height (Inches) BETWEEN 60 and 70
SQL: SELECT T3.NetWorth FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Misery' AND T3.`Height (Inches)` BETWEEN 60 AND 70 AND T3.Gender = 'Male'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Count the male actors born in USA that starred in Ghost.
Evidence: male refers to Gender = 'Male'; born in USA refers to Birth Country = 'USA'; Ghost refers to Title = 'Ghost'
SQL: SELECT COUNT(*) FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Ghost' AND T3.Gender = 'Male' AND T3.`Birth Country` = 'USA'
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: What is the MPAA rating and title of the movie starred by Leonardo DiCaprio with highest budget?
Evidence: starred by Leonardo DiCaprio refers to Name = 'Leonardo Dicaprio'; highest budget refers to max(Budget)
SQL: SELECT T1.`MPAA Rating`, T1.Title FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Name = 'Leonardo DiCaprio' ORDER BY T1.Budget DESC LIMIT 1
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: Among the actors starred in Die Hard 2, list their net worth and birth date of actors with a height between 60 to 65.
Evidence: Die Hard 2 refers to Title = 'Die Hard 2'; height between 60 to 65 refers to Height (Inches) BETWEEN 60 AND 65
SQL: SELECT T3.NetWorth, T3.`Date of Birth` FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T1.Title = 'Die Hard 2' AND T3.`Height (Inches)` BETWEEN 60 AND 65
Database: movie
Tables: actor, movie, characters
Columns (table index, column name): -1, *, 0, ActorID, 0, Name, 0, Date of Birth, 0, Birth City, 0, Birth Country, 0, Height (Inches), 0, Biography, 0, Gender, 0, Ethnicity, 0, NetWorth, 1, MovieID, 1, Title, 1, MPAA Rating, 1, Budget, 1, Gross, 1, Release Date, 1, Genre, 1, Runtime, 1, Rating, 1, Rating Count, 1, Summary, 2, MovieID, 2, ActorID, 2, Character Name, 2, creditOrder, 2, pay, 2, screentime
Question: List the runtime of movies starred by an African-American actor born on December 28, 1954.
Evidence: African-American refers to Ethnicity = 'African American'; born on December 28 1954 refers to Date of Birth = '1954-12-28'
SQL: SELECT T1.Runtime FROM movie AS T1 INNER JOIN characters AS T2 ON T1.MovieID = T2.MovieID INNER JOIN actor AS T3 ON T3.ActorID = T2.ActorID WHERE T3.Ethnicity = 'African American' AND T3.`Date of Birth` = '1954-12-28'