instruction
stringlengths
646
49.5k
input
stringclasses
1 value
output
stringlengths
23
804
Solve the following sql problem: For movies with the keyword of "civil war", calculate the average revenue generated by these movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'civil war'
Solve the following sql problem: Find out the popularity of the movies with the highest vote count. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT popularity FROM movie ORDER BY vote_COUNT DESC LIMIT 1
Solve the following sql problem: Among the zero-budget movie titles, which one has made the highest revenue? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT title FROM movie WHERE budget = 0 ORDER BY revenue DESC LIMIT 1
Solve the following sql problem: What is the ID of the production company which produced the movie "Gladiator"? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Gladiator'
Solve the following sql problem: List down the IDs of the production companies that released the movies in 1916. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.company_id FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id WHERE CAST(STRFTIME('%Y', T1.release_date) AS INT) = 1916
Solve the following sql problem: List down the movies produced by Lucasfilm. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Lucasfilm'
Solve the following sql problem: Among Warner Bros. Pictures' movies, which title made the highest revenue? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Warner Bros. Pictures' ORDER BY T3.revenue DESC LIMIT 1
Solve the following sql problem: Write down the release date of the movies produced by Twentieth Century Fox Film Corporation. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.release_date FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Twentieth Century Fox Film Corporation'
Solve the following sql problem: What is the language ID of the movie "Walk the Line"? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Walk the Line'
Solve the following sql problem: Find out the language ID of the movie with the highest popularity. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.language_id FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id ORDER BY T1.popularity DESC LIMIT 1
Solve the following sql problem: Tell the language of the movie "C'era una volta il West". Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T1.title LIKE 'C%era una volta il West'
Solve the following sql problem: Are there any post-production movies in Nederlands? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT DISTINCT CASE WHEN T1.movie_status = 'Post Production' THEN 'YES' ELSE 'NO' END AS YORN FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Nederlands'
Solve the following sql problem: List down the tagline of the Polski movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT DISTINCT T1.tagline FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Polski'
Solve the following sql problem: Provide the homepage of the Bahasa Indonesia movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT DISTINCT T1.homepage FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Bahasa indonesia'
Solve the following sql problem: Work out the difference in revenues made between the English and Latin movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT SUM(CASE WHEN T3.language_name = 'English' THEN T1.revenue ELSE 0 END) - SUM(CASE WHEN T3.language_name = 'Latin' THEN T1.revenue ELSE 0 END) AS DIFFERENCE FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id
Solve the following sql problem: Calculate the revenues made by Fantasy Films and Live Entertainment. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT SUM(T3.revenue) FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name IN ('Fantasy Films', 'Live Entertainment')
Solve the following sql problem: What is the average revenue made by Latin movies? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Latin'
Solve the following sql problem: What is the most common first name? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT person_name FROM person GROUP BY person_name ORDER BY COUNT(person_name) DESC LIMIT 1
Solve the following sql problem: What is the average number of crews for a movie? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT CAST(SUM(CD) AS REAL) / COUNT(movie_id) FROM ( SELECT movie_id, COUNT(person_id) AS CD FROM movie_crew GROUP BY movie_id )
Solve the following sql problem: List all the keywords with "christmas" in them. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT keyword_name FROM keyword WHERE keyword_name LIKE '%christmas%'
Solve the following sql problem: What is the longest runtime of all movies? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT MAX(runtime) FROM movie
Solve the following sql problem: What is the iso code of "Kyrgyz Republic"? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNTry_iso_code FROM COUNTry WHERE COUNTry_name = 'Kyrgyz Republic'
Solve the following sql problem: Provide the overview for the movie "The Pacifier". Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT overview FROM movie WHERE title = 'The Pacifier'
Solve the following sql problem: How many movies were produced by "Eddie Murphy Productions"? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(T1.movie_id) FROM movie_company AS T1 INNER JOIN production_company AS T2 ON T1.company_id = T2.company_id WHERE T2.company_name = 'Eddie Murphy Productions'
Solve the following sql problem: List all the actors who have played characters with "captain" in their names. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT DISTINCT T1.person_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T2.character_name LIKE '%captain%'
Solve the following sql problem: What is the most common keyword among all the movies released in 2006? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.release_date LIKE '2006%' GROUP BY T3.keyword_name ORDER BY COUNT(T3.keyword_name) DESC LIMIT 1
Solve the following sql problem: How many movies have "vi" as their language code? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(T1.movie_id) FROM movie_languages AS T1 INNER JOIN language AS T2 ON T1.language_id = T2.language_id WHERE T2.language_code = 'vi'
Solve the following sql problem: What is the third least common genre? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.genre_name FROM movie_genres AS T1 INNER JOIN genre AS T2 ON T1.genre_id = T2.genre_id GROUP BY T2.genre_id ORDER BY COUNT(T1.movie_id) LIMIT 2, 1
Solve the following sql problem: What is the original language of the movie with the tagline "An offer you can't refuse."? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id INNER JOIN language_role AS T4 ON T2.language_role_id = T4.role_id WHERE T4.language_role = 'Original' AND T1.tagline LIKE 'An offer you can%t refuse.'
Solve the following sql problem: Provide the average revenue of all the French movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT AVG(T1.revenue) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id WHERE T3.COUNTry_name = 'France'
Solve the following sql problem: List all the unspecified gender characters. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.character_name FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id WHERE T2.gender = 'Unspecified'
Solve the following sql problem: What are the top 5 most popular movie directors? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T2.job = 'Director' ORDER BY T1.popularity DESC LIMIT 5
Solve the following sql problem: List the film with the highest budget in each genre. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.genre_name, MAX(T1.budget) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id GROUP BY T3.genre_name
Solve the following sql problem: What is the title of the movie with the most keywords? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id GROUP BY T1.title ORDER BY COUNT(T2.keyword_id) DESC LIMIT 1
Solve the following sql problem: Which department has the most people? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.department_name FROM department AS T1 INNER JOIN movie_crew AS T2 ON T1.department_id = T2.department_id GROUP BY T1.department_id ORDER BY COUNT(T2.department_id) DESC LIMIT 1
Solve the following sql problem: What percentage of films are made in the US? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT CAST(COUNT(CASE WHEN T3.COUNTry_iso_code = 'US' THEN T1.movie_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN production_COUNTry AS T2 ON T1.movie_id = T2.movie_id INNER JOIN COUNTry AS T3 ON T2.COUNTry_id = T3.COUNTry_id
Solve the following sql problem: What is the average ratio between female and male actors in a movie? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT CAST(COUNT(CASE WHEN T2.gender = 'Female' THEN T1.person_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN T2.gender = 'Male' THEN T1.person_id ELSE NULL END) FROM movie_cast AS T1 INNER JOIN gender AS T2 ON T1.gender_id = T2.gender_id
Solve the following sql problem: List the movies released in 1945. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT title FROM movie WHERE CAST(STRFTIME('%Y', release_date) AS INT) = 1945
Solve the following sql problem: Provide the ID and ISO code of Belgium. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNTry_id, COUNTry_iso_code FROM COUNTry WHERE COUNTry_name = 'Belgium'
Solve the following sql problem: List the character names played by Catherine Deneuve. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.character_name FROM person AS T1 INNER JOIN movie_cast AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Catherine Deneuve'
Solve the following sql problem: List the movies in the Somali language. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.title FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id WHERE T3.language_name = 'Somali'
Solve the following sql problem: Provide the release date and language of the most popular movie. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.release_date, T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id ORDER BY T1.popularity DESC LIMIT 1
Solve the following sql problem: What is the original language of the "Four Rooms" movie? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.language_name FROM movie AS T1 INNER JOIN movie_languages AS T2 ON T1.movie_id = T2.movie_id INNER JOIN language AS T3 ON T2.language_id = T3.language_id INNER JOIN language_role AS T4 ON T2.language_role_id = T4.role_id WHERE T4.language_role = 'Original' AND T1.title = 'Four Rooms'
Solve the following sql problem: List the character names in the "Open Water" movie. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id WHERE T1.title = 'Open Water'
Solve the following sql problem: Who is the main actor in the "Pirates of the Caribbean: At World's End" movie? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' ORDER BY T2.cast_order LIMIT 1
Solve the following sql problem: List the names of camera supervisors in the crew. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.person_name FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T2.job = 'Camera Supervisor'
Solve the following sql problem: List the job titles of Sally Menke in the crew. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT DISTINCT T2.job FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Sally Menke'
Solve the following sql problem: Provide the names and departments of the person who worked as a music editor in the "Pirates of the Caribbean: At World's End" movie. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.person_name, T4.department_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id INNER JOIN department AS T4 ON T2.department_id = T4.department_id WHERE T1.title LIKE 'Pirates of the Caribbean: At World%s End' AND T2.job = 'Music Editor'
Solve the following sql problem: Provide the titles and revenues of the movies produced by the DreamWorks company. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.title, T1.revenue FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T2.company_id = T3.company_id WHERE T3.company_name = 'DreamWorks'
Solve the following sql problem: How many movies were produced in Canada? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(T2.movie_id) FROM COUNTry AS T1 INNER JOIN production_COUNTry AS T2 ON T1.COUNTry_id = T2.COUNTry_id WHERE T1.COUNTry_name = 'Canada'
Solve the following sql problem: List the genres of Forrest Gump movie. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Forrest Gump'
Solve the following sql problem: Provide the production companies of the movie that has over 35% average running time per movie in 2016. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T.company_name FROM ( SELECT DISTINCT T3.company_name, T1.runtime FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) T WHERE T.runtime * 100 > (0.35 * ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' ) + ( SELECT AVG(T1.runtime) FROM movie AS T1 INNER JOIN movie_company AS T2 ON T1.movie_id = T2.movie_id INNER JOIN production_company AS T3 ON T3.company_id = T2.company_id WHERE T1.release_date LIKE '2016%' )) * 100
Solve the following sql problem: Find the difference in percentage of the movies under keywords of "woman director" and "independent film". Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT CAST((SUM(CASE WHEN T1.keyword_name = 'woman director' THEN 1 ELSE 0 END) - SUM(CASE WHEN T1.keyword_name = 'independent film' THEN 1 ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T1.keyword_name = 'independent film' THEN 1 ELSE 0 END) FROM keyword AS T1 INNER JOIN movie_keywords AS T2 ON T1.keyword_id = T2.keyword_id
Solve the following sql problem: Which genre does the movie Dancer in the Dark belong to? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.genre_name FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T1.title = 'Dancer in the Dark'
Solve the following sql problem: How many adventure movies are there that were released in 2000? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Adventure' AND CAST(STRFTIME('%Y', T1.release_date) AS INT) = 2000
Solve the following sql problem: Which movies did the company Paramount Pictures produce in 2000? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.title FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id INNER JOIN movie AS T3 ON T2.movie_id = T3.movie_id WHERE T1.company_name = 'Paramount Pictures' AND CAST(STRFTIME('%Y', T3.release_date) AS INT) = 2000
Solve the following sql problem: What keyword can the user use to search for the movie Finding Nemo? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.keyword_name FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T1.title = 'Finding Nemo'
Solve the following sql problem: Name the horror movies with positive ratings greater than 7. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.title FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id WHERE T3.genre_name = 'Horror' AND T1.vote_average > 7
Solve the following sql problem: How many production companies made more than 150 movies? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(*) FROM ( SELECT T1.company_name AS CNAME FROM production_company AS T1 INNER JOIN movie_company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id HAVING COUNT(T1.company_name) > 150 )
Solve the following sql problem: What is the role of Mark Hammel? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.job FROM person AS T1 INNER JOIN movie_crew AS T2 ON T1.person_id = T2.person_id WHERE T1.person_name = 'Mark Hammel'
Solve the following sql problem: How many main actors are there in the movie Pirates of the Caribbean: At World's End? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT COUNT(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' AND T2.cast_order = ( SELECT MIN(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' )
Solve the following sql problem: Which movies have the participation of actor Harrison Ford? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T1.title FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T3.person_name = 'Harrison Ford'
Solve the following sql problem: Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T2.character_name FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND T3.person_name = 'Orlando Bloom'
Solve the following sql problem: What is the average number of horror movies among all movies genre? Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT CAST(COUNT(CASE WHEN T3.genre_name = 'Horror' THEN T1.movie_id ELSE NULL END) AS REAL) / COUNT(T1.movie_id) FROM movie AS T1 INNER JOIN movie_genres AS T2 ON T1.movie_id = T2.movie_id INNER JOIN genre AS T3 ON T2.genre_id = T3.genre_id
Solve the following sql problem: List the names of all the producers in the movie "Pirates of the Caribbean: At World's End". Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT T3.person_name FROM movie AS T1 INNER JOIN movie_crew AS T2 ON T1.movie_id = T2.movie_id INNER JOIN person AS T3 ON T2.person_id = T3.person_id WHERE T1.title = 'Pirates of the Caribbean: The Curse of the Black Pearl' AND T2.job = 'Producer'
Solve the following sql problem: Calculate the average income made by movies using the keyword "paris". List the title of the movies. Schema: SCHEMA: - Table: country - Column: country_id - Samples: [128, 129, 130, 131, 132] - Column: country_iso_code - Samples: [AE, AF, AO, AR, AT] - Column: country_name - Samples: [United Arab Emirates, Afghanistan, Angola, Argentina, Austria] - Table: department - Column: department_id - Samples: [1, 2, 3, 4, 5] - Column: department_name - Samples: [Camera, Directing, Production, Writing, Editing] - Table: gender - Column: gender_id - Samples: [0, 1, 2] - Column: gender - Samples: [Unspecified, Female, Male] - Table: genre - Column: genre_id - Samples: [12, 14, 16, 18, 27] - Column: genre_name - Samples: [Adventure, Fantasy, Animation, Drama, Horror] - Table: keyword - Column: keyword_id - Samples: [30, 65, 74, 75, 83] - Column: keyword_name - Samples: [individual, holiday, germany, gunslinger, saving the world] - Table: language - Column: language_id - Samples: [24574, 24575, 24576, 24577, 24578] - Column: language_code - Samples: [en, sv, de, xx, ja] - Column: language_name - Samples: [English, svenska, Deutsch, No Language, u65e5u672cu8a9e] - Table: language_role - Column: role_id - Samples: [1, 2] - Column: language_role - Samples: [Original, Spoken] - Table: movie - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: title - Samples: [Four Rooms, Star Wars, Finding Nemo, Forrest Gump, American Beauty] - Column: budget - Samples: [4000000, 11000000, 94000000, 55000000, 15000000] - Column: homepage - Samples: [, http://www.starwars.com/films/star-wars-episode-iv-a-new-hope, http://movies.disney.com/finding-nemo, , http://www.dreamworks.com/ab/] - Column: overview - Samples: [It's Ted the Bellhop's first night on the job...and the hotel's very u..., Princess Leia is captured and held hostage by the evil Imperial forces..., Nemo, an adventurous young clownfish, is unexpectedly taken from his G..., A man with a low IQ has accomplished great things in his life and been..., Lester Burnham, a depressed suburban father in a mid-life crisis, deci... (truncated)] - Column: popularity - Samples: [22.87623, 126.393695, 85.688789, 138.133331, 80.878605] - Column: release_date - Samples: [1995-12-09, 1977-05-25, 2003-05-30, 1994-07-06, 1999-09-15] - Column: revenue - Samples: [4300000, 775398007, 940335536, 677945399, 356296601] - Column: runtime - Samples: [98, 121, 100, 142, 122] - Column: movie_status - Samples: [Released, Released, Released, Released, Released] - Column: tagline - Samples: [Twelve outrageous guests. Four scandalous requests. And one lone bellh..., A long time ago in a galaxy far, far away..., There are 3.7 trillion fish in the ocean, they're looking for one., The world will never be the same, once you've seen it through the eyes..., Look closer. (truncated)] - Column: vote_average - Samples: [6.5, 8.1, 7.6, 8.2, 7.9] - Column: vote_count - Samples: [530, 6624, 6122, 7927, 3313] - Table: movie_genres - Column: movie_id - Samples: [5, 5, 11, 11, 11] - Column: genre_id - Samples: [35, 80, 12, 28, 878] - Table: movie_languages - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: language_id - Samples: [24574, 24574, 24574, 24574, 24574] - Column: language_role_id - Samples: [2, 2, 2, 2, 2] - Table: person - Column: person_id - Samples: [1, 2, 3, 4, 5] - Column: person_name - Samples: [George Lucas, Mark Hamill, Harrison Ford, Carrie Fisher, Peter Cushing] - Table: movie_crew - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [120, 1704, 770, 1705, 1706] - Column: department_id - Samples: [1, 2, 3, 4, 4] - Column: job - Samples: [Director of Photography, Director, Producer, Screenplay, Screenplay] - Table: production_company - Column: company_id - Samples: [1, 2, 3, 4, 5] - Column: company_name - Samples: [Lucasfilm, Walt Disney Pictures, Pixar Animation Studios, Paramount Pictures, Columbia Pictures] - Table: production_country - Column: movie_id - Samples: [5, 11, 12, 13, 14] - Column: country_id - Samples: [214, 214, 214, 214, 214] - Table: movie_cast - Column: movie_id - Samples: [285, 285, 285, 285, 285] - Column: person_id - Samples: [85, 114, 116, 1640, 1619] - Column: character_name - Samples: [Captain Jack Sparrow, Will Turner, Elizabeth Swann, William Bootstrap Bill Turner, Captain Sao Feng] - Column: gender_id - Samples: [2, 2, 1, 2, 2] - Column: cast_order - Samples: [0, 1, 2, 3, 4] - Table: movie_keywords - Column: movie_id - Samples: [5, 5, 5, 5, 5] - Column: keyword_id - Samples: [612, 613, 616, 622, 922] - Table: movie_company - Column: movie_id - Samples: [5, 5, 11, 11, 12] - Column: company_id - Samples: [14, 59, 1, 306, 3]
SELECT AVG(T1.revenue), T1.title FROM movie AS T1 INNER JOIN movie_keywords AS T2 ON T1.movie_id = T2.movie_id INNER JOIN keyword AS T3 ON T2.keyword_id = T3.keyword_id WHERE T3.keyword_name = 'paris'
Solve the following sql problem: How many English language codes whose comments for the method are in the XML format? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(Lang) FROM Method WHERE Lang = 'en' AND CommentIsXml = 1
Solve the following sql problem: What is the task of the method whose tokenized name is "online median filter test median window filling"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'online median filter test median window filling'
Solve the following sql problem: What is the time of sampling of the solution with the highest sampling time? Indicate the id number of the solution. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT SampledAt, SolutionId FROM Method WHERE SampledAt = ( SELECT MAX(SampledAt) FROM Method )
Solve the following sql problem: How many followers do the most followed repository on Github have? Give the github address of the repository. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT Forks, Url FROM Repo WHERE Forks = ( SELECT MAX(Forks) FROM Repo )
Solve the following sql problem: What is the id of the repository with the highest number of solution path? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT RepoId FROM solution GROUP BY RepoId ORDER BY COUNT(Path) DESC LIMIT 1
Solve the following sql problem: What is the most liked repository? Indicate its github address and the amount of stars it has received. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT Url, Stars FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo )
Solve the following sql problem: What is the name of the solution path with the highest processed time? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT Path FROM Solution WHERE ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Solution )
Solve the following sql problem: How much is the processed time of downloading the most popular repository? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT ProcessedTime FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo )
Solve the following sql problem: What is the github address of the "nofear_Mara\Mara.sln" solution path? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE Path = 'nofear_MaraMara.sln'
Solve the following sql problem: Which repository has the longest amount of processed time of downloading? Indicate whether the solution paths in the repository can be implemented without needs of compilation. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT T1.id, T2.WasCompiled FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Repo )
Solve the following sql problem: What is the tokenized name of the solution whose path is "maravillas_linq-to-delicious\tasty.sln"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious'
Solve the following sql problem: Among the repositories whose number of stars received are between 6,000 to 9,000, which repository has the highest number of solution paths and many of those solution paths needs to be compiled if user wants to implement it? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.RepoId, COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars BETWEEN 6000 AND 9000 AND T2.WasCompiled = 0 GROUP BY T2.RepoId ORDER BY COUNT(T2.RepoId) DESC LIMIT 1
Solve the following sql problem: In the "https://github.com/wallerdev/htmlsharp.git", give all the linearized sequenced of API calls. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T3.ApiCalls FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId INNER JOIN Method AS T3 ON T2.Id = T3.SolutionId WHERE T1.Url = 'https://github.com/wallerdev/htmlsharp.git'
Solve the following sql problem: How many solution paths are there inside the 2nd most popular repository? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(DISTINCT T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = ( SELECT Watchers FROM Repo ORDER BY Watchers DESC LIMIT 1, 1 )
Solve the following sql problem: What is the average processed time of the solution paths inside the "https://github.com/zphingphong/DiscardCustomerApp.git"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/zphingphong/DiscardCustomerApp.git'
Solve the following sql problem: What is the full comment on the method whose solution path is "bmatzelle_nini\Source\Nini.sln" with a tokenized name of "alias text add alias"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.FullComment FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'bmatzelle_niniSourceNini.sln' AND T2.NameTokenized = 'alias text add alias'
Solve the following sql problem: What is the linearized sequenced of API calls of the method whose solution path is "mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.ApiCalls FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln'
Solve the following sql problem: How many solution paths that needs to be compiled if user wants to implement it in "https://github.com/jeffdik/tachy.git"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git' AND T2.WasCompiled = 0
Solve the following sql problem: How much is the processed time of the method whose tokenized name is "about box1 dispose"? Indicate the language of the method. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT T1.ProcessedTime, T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'about box1 dispose'
Solve the following sql problem: In "maxild_playground\Playground.sln", what is the time of sampling for the method "GitHubRepo.Cli.GitHubClientWrapper.GetReleases"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.SampledAt FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maxild_playgroundPlayground.sln' AND T2.Name = 'GitHubRepo.Cli.GitHubClientWrapper.GetReleases'
Solve the following sql problem: What is the language of the method used in the solution path "opendns_diagnosticapp\windows\OpenDnsDiagnostic.sln"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'opendns_diagnosticappwindowsOpenDnsDiagnostic.sln'
Solve the following sql problem: What's the task of the method whose tokenized name is "html parser feed"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'html parser feed'
Solve the following sql problem: Are the comments for the method "HtmlSharp.HtmlParser.Feed" in XML format? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT CASE WHEN CommentIsXml = 0 THEN 'No' WHEN CommentIsXml = 1 THEN 'Yes' END isXMLFormat FROM Method WHERE Name = 'HtmlSharp.HtmlParser.Feed'
Solve the following sql problem: Which method has the summary "Write a command to the log"? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT Name FROM Method WHERE Summary = 'Write a command to the log'
Solve the following sql problem: How many solutions contain files found within the repository most people like? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo )
Solve the following sql problem: Please list the path of the solution that contains files found within the repository most people like. Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = ( SELECT MAX(Stars) FROM Repo )
Solve the following sql problem: What is the github address of the repository that contains files used by solution ID12? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 12
Solve the following sql problem: Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be implemented without needs of compilation? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > 1000 AND T2.WasCompiled = 1
Solve the following sql problem: Which solution contains files within a more popular repository, the solution ID18 or solution ID19? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT CASE WHEN SUM(CASE WHEN T2.Id = 18 THEN T1.Watchers ELSE 0 END) > SUM(CASE WHEN T2.Id = 19 THEN T1.Watchers ELSE 0 END) THEN 'SolutionID18' WHEN SUM(CASE WHEN T2.Id = 18 THEN T1.Watchers ELSE 0 END) < SUM(CASE WHEN T2.Id = 19 THEN T1.Watchers ELSE 0 END) THEN 'SolutionID19' END isMorePopular FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId
Solve the following sql problem: Among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to be compiled if user wants to implement it? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Repo ) AND T2.WasCompiled = 1
Solve the following sql problem: What is the processed time to download the repository whose files are contained in the solution with the path "jeffdik_tachy\src\Tachy.sln". Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT DISTINCT T2.ProcessedTime FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'jeffdik_tachysrcTachy.sln'
Solve the following sql problem: Please give the url of the repository whose files are contained in solution ID 9? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 9
Solve the following sql problem: Please list all the paths of the solutions containing files within the repository whose url is "https://github.com/maxild/playground.git". Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/maxild/playground.git'
Solve the following sql problem: Among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000? Schema: SCHEMA: - Table: Method - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Name - Samples: [HtmlSharp.HtmlParser.Feed, HtmlSharp.HtmlParser.ParseDoctypeElement, IQ.Data.DbQueryProvider.GetQueryText, IQ.Data.DbQueryProvider.Execute, IQ.Data.DbQueryProvider.GetExecutionPlan] - Column: FullComment - Samples: [Feeds data into the parser, interneral -- scan past <!ELEMENT declarations, <summary> /// Converts the query expression into text that co..., <summary> /// Execute the query expression (does translation,..., <summary> /// Convert the query expression into an execution ... (truncated)] - Column: Summary - Samples: [None, None, Converts the query expression into text that corresponds to the comman..., Execute the query expression , Convert the query expression into an execution plan (truncated)] - Column: ApiCalls - Samples: [System.String.IsNullOrEmpty HtmlSharp.HtmlParser.GoAhead HtmlSharp.Htm..., HtmlSharp.HtmlParser.ScanName System.Collections.Generic.KeyValuePair...., IQ.Data.DbQueryProvider.Translate IQ.Data.QueryLanguage.Format IQ.Data..., IQ.Data.DbQueryProvider.GetExecutionPlan System.Linq.Expressions.Lambd..., System.Linq.Expressions.LambdaExpression.Body IQ.Data.DbQueryProvider.... (truncated)] - Column: CommentIsXml - Samples: [0, 0, 1, 1, 1] - Column: SampledAt - Samples: [636430963695654788, 636430963695709898, 636430963721734366, 636430963721804459, 636430963721804459] - Column: SolutionId - Samples: [1, 1, 2, 2, 2] - Column: Lang - Samples: [None, None, en, fr, en] - Column: NameTokenized - Samples: [html parser feed, html parser parse doctype element, db query provider get query text, db query provider execute, db query provider get execution plan] - Table: MethodParameter - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: MethodId - Samples: [1, 2, 2, 3, 3] - Column: Type - Samples: [System.String, System.Int32, System.Int32, System.Linq.Expressions.Expression, IQ.Data.SelectExpression] - Column: Name - Samples: [data, i, declstartpos, expression, s] - Table: Repo - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: Url - Samples: [https://github.com/wallerdev/htmlsharp.git, https://github.com/unclebob/nslim.git, https://github.com/maravillas/linq-to-delicious.git, https://github.com/mauriciodeamorim/tdd.encontro2.git, https://github.com/aroder/heatmap.git] - Column: Stars - Samples: [14, 6, 6, 3, 1] - Column: Forks - Samples: [2, 3, 0, 0, 0] - Column: Watchers - Samples: [14, 6, 6, 3, 1] - Column: ProcessedTime - Samples: [636430963247108053, 636472436323838240, 636430963280029575, 636430963299356346, 636472436346806990] - Table: Solution - Column: Id - Samples: [1, 2, 3, 4, 5] - Column: RepoId - Samples: [1, 3, 4, 5, 6] - Column: Path - Samples: [wallerdev_htmlsharp\HtmlSharp.sln, maravillas_linq-to-delicious\tasty.sln, mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln, aroder_heatmap\CenStatsHeatMap.sln, managedfusion_managedfusion\ManagedFusion.sln] - Column: ProcessedTime - Samples: [636430963695642191, 636430963721734366, 636430963735704849, 636430963750457674, 636430963775379234] - Column: WasCompiled - Samples: [1, 1, 1, 0, 1]
SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.ProcessedTime < 636439500080712000 AND T1.Stars > 200