db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
retail_complains | select distinct t2.issue from client as t1 inner join events as t2 on t1.client_id = t2.client_id where t1.sex = 'male' and t1.age < 25 | Question: what are the issues of the complains of male clients and products from age 25 and below? | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser_time. client -> client_id, ... | what are the issues of the complains of male clients and products from age 25 and below? |
retail_complains | select distinct t3.product from state as t1 inner join district as t2 on t1.statecode = t2.state_abbrev inner join reviews as t3 on t2.district_id = t3.district_id where t1.region = 'midwest' and t3.stars = 1 | Question: among the reviews from midwest region, what are the products that received 1 star? | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser_time. client -> client_id, sex, d... | among the reviews from midwest region, what are the products that received 1 star? |
retail_complains | select distinct t2.product from callcenterlogs as t1 inner join events as t2 on t1.`complaint id` = t2.`complaint id` where t1.server = 'tova' and t2.`date received` like '2017-03%' | Question: list the products involved in the complaints received on march 2017 via tova server. | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser_time. client -> client_id, sex,... | list the products involved in the complaints received on march 2017 via tova server. |
retail_complains | select t1.division from district as t1 inner join reviews as t2 on t1.district_id = t2.district_id where t2.stars = 5 and t2.date = '2017-12-17' and t2.product = 'eagle national mortgage' | Question: what is the division of the review of 5 stars received on december 17, 2017 for the product eagle national mortgage? | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser... | what is the division of the review of 5 stars received on december 17, 2017 for the product eagle national mortgage? |
retail_complains | select t1.phone from client as t1 inner join events as t2 on t1.client_id = t2.client_id where t2.product = 'credit card' order by t1.age desc limit 1 | Question: in complaints about the credit card product, list the phone number of the oldest client. | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser_time. client -> client_id, ... | in complaints about the credit card product, list the phone number of the oldest client. |
retail_complains | select count(t2.`complaint id`) from callcenterlogs as t1 inner join events as t2 on t1.`complaint id` = t2.`complaint id` where t2.`submitted via` = 'phone' and strftime('%y', t1.`date received`) = '2014' | Question: in complaints received in 2014, how many of them were submitted via call? | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit, ser_time. client -> client_id, sex, day, month... | in complaints received in 2014, how many of them were submitted via call? |
retail_complains | select distinct t2.product, t2.issue from client as t1 inner join events as t2 on t1.client_id = t2.client_id where t1.age * 100 > ( select avg(age) * 60 from client ) | Question: list the product and its issues of the complains of clients with age greater than the 60% of average age of all clients. | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit,... | list the product and its issues of the complains of clients with age greater than the 60% of average age of all clients. |
retail_complains | select cast(sum(case when t1.division = 'east north central' then 1 else 0 end) as real) * 100 / count(t1.division) from district as t1 inner join reviews as t2 on t1.district_id = t2.district_id where t2.stars = 5 | Question: in reviews of product with 5 stars, what is the percentage of the reviews coming from the division of east north central? | Tables: state -> StateCode, State, Region. callcenterlogs -> Date received, Complaint ID, rand client, phonefinal, vru+line, call_id, priority, type, outcome, server, ser_start, ser_exit... | in reviews of product with 5 stars, what is the percentage of the reviews coming from the division of east north central? |
movies_4 | select t1.company_name 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 t3.title = 'four rooms' | Question: please list the names of the production company of the movie 'four rooms'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, la... | please list the names of the production company of the movie 'four rooms'. |
movies_4 | select count(cname) 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 inner join movie as t3 on t2.movie_id = t3.movie_id where t3.title = 'four rooms' ) | Question: how many production companies does the movie 'four rooms' have? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code... | how many production companies does the movie 'four rooms' have? |
movies_4 | 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 = 'universal pictures' | Question: please list the titles of all the movie produced by production company 'universal pictures'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language ... | please list the titles of all the movie produced by production company 'universal pictures'. |
movies_4 | 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 = 'universal pictures' order by t3.release_date desc limit 1 | Question: what is the title of the latest released movie produced by production company 'universal pictures'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. la... | what is the title of the latest released movie produced by production company 'universal pictures'? |
movies_4 | 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 like 'pirates of the caribbean: at world%s end' and t2.job = 'director of photography' | Question: what is the name of the director of photography of the movie 'pirates of the caribbean: at world's end'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_nam... | what is the name of the director of photography of the movie 'pirates of the caribbean: at world's end'? |
movies_4 | select t2.job 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 like 'pirates of the caribbean: at world%s end' and t3.person_name = 'dariusz wolski' | Question: what was the job of dariusz wolski in the movie 'pirates of the caribbean: at world's end'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -... | what was the job of dariusz wolski in the movie 'pirates of the caribbean: at world's end'? |
movies_4 | 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 like 'pirates of the caribbean: at world%s end' | Question: please list the names of all the crew members of the movie 'pirates of the caribbean: at world's end'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name.... | please list the names of all the crew members of the movie 'pirates of the caribbean: at world's end'. |
movies_4 | select count(t3.person_id) 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 like 'pirates of the caribbean: at world%s end' and t2.job = 'producer' | Question: how many crew members worked as producer in the movie 'pirates of the caribbean: at world's end'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. lang... | how many crew members worked as producer in the movie 'pirates of the caribbean: at world's end'? |
movies_4 | 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 like 'pirates of the caribbean: at world%s end' and t2.job = 'producer' | Question: please list the names of all the producers in the movie 'pirates of the caribbean: at world's end'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. la... | please list the names of all the producers in the movie 'pirates of the caribbean: at world's end'. |
movies_4 | select count(t2.movie_id) from person as t1 inner join movie_crew as t2 on t1.person_id = t2.person_id where t1.person_name = 'dariusz wolski' and t2.job = 'director of photography' | Question: in how many movie does dariusz wolski work as the director of photography? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, la... | in how many movie does dariusz wolski work as the director of photography? |
movies_4 | select t1.title 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 t3.person_name = 'dariusz wolski' and t2.job = 'director of photography' order by t1.vote_average desc limit 1 | Question: among the movie in which dariusz wolski works as the director of photography, what is the title of the one with the highest average vote? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. k... | among the movie in which dariusz wolski works as the director of photography, what is the title of the one with the highest average vote? |
movies_4 | select t1.release_date 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 t3.person_name = 'dariusz wolski' order by t1.release_date desc limit 1 | Question: when was the release date of the latest movie in which dariusz wolski worked as a crew member? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. languag... | when was the release date of the latest movie in which dariusz wolski worked as a crew member? |
movies_4 | select cast(count(case when t1.vote_average > 5 then 1 else null end) as real) * 100 / count(t1.vote_average) 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 t3.person_name = 'dariusz wolski' and t2.job = 'director of photography' | Question: among the movie in which dariusz wolski works as the director of photography, what is the percentage of those movie whose vote average is over 5.0? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, gen... | among the movie in which dariusz wolski works as the director of photography, what is the percentage of those movie whose vote average is over 5.0? |
movies_4 | select cast(sum(t1.revenue) as real) / count(t1.movie_id) 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 t3.person_name = 'dariusz wolski' and t2.job = 'director of photography' | Question: what is the average revenue of the movie in which dariusz wolski works as the director of photography? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name.... | what is the average revenue of the movie in which dariusz wolski works as the director of photography? |
movies_4 | select title from movie where revenue = 559852396 | Question: give the name of the movie with a revenue of 559852396. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, langua... | give the name of the movie with a revenue of 559852396. |
movies_4 | select t2.job 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 t3.person_name = 'david rubin' and t1.title = 'days of thunder' | Question: what was david rubin's job in the movie 'days of thunder'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, lan... | what was david rubin's job in the movie 'days of thunder'? |
movies_4 | select count(t2.movie_id) from person as t1 inner join movie_crew as t2 on t1.person_id = t2.person_id where t1.person_name = 'michael bay' and t2.job = 'director' | Question: how many movies were directed by michael bay? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. l... | how many movies were directed by michael bay? |
movies_4 | select count(t2.keyword_id) from movie as t1 inner join movie_keywords as t2 on t1.movie_id = t2.movie_id where t1.title = 'i hope they serve beer in hell' | Question: show the total number of keywords of the movie 'i hope they serve beer in hell'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_... | show the total number of keywords of the movie 'i hope they serve beer in hell'. |
movies_4 | 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 = 'land of the dead' and t2.job = 'director' | Question: for the movie 'land of the dead', who is its director? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, languag... | for the movie 'land of the dead', who is its director? |
movies_4 | select count(t2.movie_id) from production_company as t1 inner join movie_company as t2 on t1.company_id = t2.company_id where t1.company_name = 'paramount animation' | Question: tell the number of movies made by paramount animation. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, languag... | tell the number of movies made by paramount animation. |
movies_4 | select count(*) from movie as t1 inner join movie_cast as t2 on t1.movie_id = t2.movie_id inner join gender as t3 on t2.gender_id = t3.gender_id where t1.title = 'spider-man 3' and t3.gender = 'female' | Question: how many female characters are there in the movie 'spider-man 3'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_co... | how many female characters are there in the movie 'spider-man 3'? |
movies_4 | select t1.keyword_name from keyword as t1 inner join movie_keywords as t2 on t1.keyword_id = t2.keyword_id group by t1.keyword_name order by count(t1.keyword_name) desc limit 1 | Question: provide the most used keyword in the movies. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. la... | provide the most used keyword in the movies. |
movies_4 | select count(t2.person_id) from movie as t1 inner join movie_crew as t2 on t1.movie_id = t2.movie_id where t1.title = 'the amityville horror' and t2.job = 'producer' | Question: how many producers does the movie 'the amityville horror' have? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code... | how many producers does the movie 'the amityville horror' have? |
movies_4 | select t1.company_name 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 t3.title = 'crazy heart' | Question: what is the production company of the movie 'crazy heart'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, lan... | what is the production company of the movie 'crazy heart'? |
movies_4 | select count(t2.movie_id) from keyword as t1 inner join movie_keywords as t2 on t1.keyword_id = t2.keyword_id where keyword_name = 'saving the world' | Question: give the number of movies with 'saving the world' as the keyword. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_co... | give the number of movies with 'saving the world' as the keyword. |
movies_4 | 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 = 'cruel and unusual films' order by t3.popularity desc limit 1 | Question: for all the movies which were produced by cruel and unusual films, which one has the most popularity? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. ... | for all the movies which were produced by cruel and unusual films, which one has the most popularity? |
movies_4 | select 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 t3.person_name = 'marcia ross' and t1.title = 'reign of fire' | Question: for the movie 'reign of fire', which department was marcia ross in? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_... | for the movie 'reign of fire', which department was marcia ross in? |
movies_4 | select cast(sum(t1.budget) as real) / count(t1.movie_id) 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 t3.person_name = 'jaume collet-serra' and t2.job = 'director' | Question: calculate the average budget of the movies directed by jaume collet-serra. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, la... | calculate the average budget of the movies directed by jaume collet-serra. |
movies_4 | select cast(count(case when t3.gender = 'male' then 1 else null end) as real) * 100 / count(t3.gender) from movie as t1 inner join movie_cast as t2 on t1.movie_id = t2.movie_id inner join gender as t3 on t2.gender_id = t3.gender_id where t1.title = 'bride wars' | Question: what is the percentage of male characters in the movie 'bride wars'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language... | what is the percentage of male characters in the movie 'bride wars'? |
movies_4 | select title from movie order by budget desc limit 1 | Question: what is the title of the movie that was made with the most money and resources? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_i... | what is the title of the movie that was made with the most money and resources? |
movies_4 | select count(movie_id) from movie where revenue > 1000000000 | Question: how many movies have made at least 1 billion at the box office? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code... | how many movies have made at least 1 billion at the box office? |
movies_4 | select min(release_date) from movie where movie_status = 'released' | Question: when was the first movie released? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. language_rol... | when was the first movie released? |
movies_4 | select count(person_id) from person where person_name = 'john young' | Question: how many crew are named john young? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. language_ro... | how many crew are named john young? |
movies_4 | select title from movie order by popularity desc limit 1 | Question: provide the title of the movie that is most-liked by a large number of people. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id... | provide the title of the movie that is most-liked by a large number of people. |
movies_4 | select person_name from person where person_id = 1325273 | Question: who is the person associated with the crew id 1325273? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, languag... | who is the person associated with the crew id 1325273? |
movies_4 | select t1.company_name from production_company as t1 inner join movie_company as t2 on t1.company_id = t2.company_id group by t1.company_id order by count(t2.movie_id) desc limit 1 | Question: what is the name of the production company that made the most movies? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, languag... | what is the name of the production company that made the most movies? |
movies_4 | select distinct 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 t2.character_name = 'captain jack sparrow' and t1.title like 'pirates of the caribbean%' | Question: who played captain jack sparrow in all of the pirates of the caribbean movies? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id... | who played captain jack sparrow in all of the pirates of the caribbean movies? |
movies_4 | 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 = 'walt disney pictures' order by t3.popularity desc limit 1 | Question: what is walt disney pictures' most popular movie? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_nam... | what is walt disney pictures' most popular movie? |
movies_4 | select count(t2.movie_id) from production_company as t1 inner join movie_company as t2 on t1.company_id = t2.company_id where t1.company_name = 'universal studios' | Question: how many movies did universal studios release? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. ... | how many movies did universal studios release? |
movies_4 | select t1.company_name 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 group by t1.company_id order by sum(t3.revenue) desc limit 1 | Question: which production company produced the movie that made the most money at the box office? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> la... | which production company produced the movie that made the most money at the box office? |
movies_4 | select count(t3.gender) from movie as t1 inner join movie_cast as t2 on t1.movie_id = t2.movie_id inner join gender as t3 on t2.gender_id = t3.gender_id where t1.title = 'mr. smith goes to washington' and t3.gender = 'female' | Question: how many female crews are in the movie 'mr. smith goes to washington'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, langua... | how many female crews are in the movie 'mr. smith goes to washington'? |
movies_4 | select t1.company_name 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(t2.movie_id) > 200 | Question: list the names of the production companies that made at least 200 movies. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, lan... | list the names of the production companies that made at least 200 movies. |
movies_4 | select count(t2.movie_id) from person as t1 inner join movie_cast as t2 on t1.person_id = t2.person_id where t1.person_name = 'harrison ford' | Question: how many movies did harrison ford appear in total? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_na... | how many movies did harrison ford appear in total? |
movies_4 | 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 = 'jamie foxx' order by t1.release_date desc limit 1 | Question: what is the title of jamie foxx's most recent movie? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_... | what is the title of jamie foxx's most recent movie? |
movies_4 | select count(t1.movie_id) 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 = 'quentin tarantino' and cast(strftime('%y', t1.release_date) as int) = 1995 | Question: how many movies released in 1995 did quentin tarantino appear in? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_co... | how many movies released in 1995 did quentin tarantino appear in? |
movies_4 | 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 = 'crime' order by t1.release_date limit 1 | Question: what is the title of the first crime movie ever released? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, lang... | what is the title of the first crime movie ever released? |
movies_4 | select count(t1.movie_id) from movie_genres as t1 inner join genre as t2 on t1.genre_id = t2.genre_id where t2.genre_name = 'horror' | Question: how many horror movies are there? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. language_role... | how many horror movies are there? |
movies_4 | select person_id from movie_crew where movie_id = 12 and job = 'second film editor' | Question: list the person ids of the second film editors in movie no. 12. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code... | list the person ids of the second film editors in movie no. 12. |
movies_4 | select count(movie_id) from movie_crew where movie_id = 129 and job = 'animation' | Question: how many animators does movie no. 129 have? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. lan... | how many animators does movie no. 129 have? |
movies_4 | select count(distinct job) from movie_crew where movie_id = 19 and department_id = 7 | Question: in movie no. 19, how many people are there in department no. 7? please give me their job. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> ... | in movie no. 19, how many people are there in department no. 7? please give me their job. |
movies_4 | select person_id, character_name from movie_cast where movie_id = 285 and cast_order between 1 and 10 | Question: write the person id and character name of casts between order numbers 1 and 10 in movie no. 285. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. langu... | write the person id and character name of casts between order numbers 1 and 10 in movie no. 285. |
movies_4 | select count(t2.movie_id) from person as t1 inner join movie_cast as t2 on t1.person_id = t2.person_id where t1.person_name = 'bob peterson' | Question: how many times did bob peterson appear in the movie credits? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, l... | how many times did bob peterson appear in the movie credits? |
movies_4 | select t2.movie_id, t2.character_name from person as t1 inner join movie_cast as t2 on t1.person_id = t2.person_id where t1.person_name = 'jim carrey' | Question: tally the movie id and character name in the movie starring jim carrey. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, langu... | tally the movie id and character name in the movie starring jim carrey. |
movies_4 | select t2.person_name from movie_cast as t1 inner join person as t2 on t1.person_id = t2.person_id inner join gender as t3 on t1.gender_id = t3.gender_id where t1.movie_id = 1865 and t3.gender = 'female' | Question: give the names of the female cast in movie no. 1865. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_... | give the names of the female cast in movie no. 1865. |
movies_4 | 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 = 'jim carrey' | Question: write me the titles of the movies starring jim carrey. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, languag... | write me the titles of the movies starring jim carrey. |
movies_4 | select t2.person_name from movie_cast as t1 inner join person as t2 on t1.person_id = t2.person_id inner join movie as t3 on t1.movie_id = t3.movie_id inner join movie_crew as t4 on t1.movie_id = t4.movie_id where t4.job = 'director' and t3.release_date between '1916-01-01' and '1925-12-31' | Question: list the director's name of the movies released between 1/01/1916 and 12/31/1925. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language... | list the director's name of the movies released between 1/01/1916 and 12/31/1925. |
movies_4 | select count(t1.movie_id) 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 = 'uma thurman' and t1.release_date between '1990-01-01' and '2000-12-31' | Question: how many films released between 1/2/1990 and 12/30/2000 starred uma thurman? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, ... | how many films released between 1/2/1990 and 12/30/2000 starred uma thurman? |
movies_4 | 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 vote_average > 7 | Question: write the titles of horror films with a vote average of more than 7. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language... | write the titles of horror films with a vote average of more than 7. |
movies_4 | select t3.genre_name, t1.popularity 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.revenue > 120000000 and t1.release_date between '2012-01-01' and '2015-12-31' | Question: give the genre and popularity of movies whose revenue is at least 120,000,000 between 2012 and 2015. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. l... | give the genre and popularity of movies whose revenue is at least 120,000,000 between 2012 and 2015. |
movies_4 | select count(t2.movie_id) from movie as t1 inner join production_country as t2 on t1.movie_id = t2.movie_id where t1.revenue > 75000000 and t1.popularity >= 20 and t1.release_date between '1990-01-01' and '2003-12-31' | Question: how many indian movies between 1/2/1990 and 12/30/2003 have revenue of more than 75,000,000 and popularity of no less than 20? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> k... | how many indian movies between 1/2/1990 and 12/30/2003 have revenue of more than 75,000,000 and popularity of no less than 20? |
movies_4 | select t1.title, t1.revenue, t3.country_name 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 order by t1.budget desc limit 1 | Question: what is the title of the highest-budget film to date? please include the revenue and name the country. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name.... | what is the title of the highest-budget film to date? please include the revenue and name the country. |
movies_4 | 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 = 'latin' and t1.release_date between '1990-01-01' and '1995-12-31' | Question: list the title of movies in latin released between 1/01/1990 and 12/31/1995. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, ... | list the title of movies in latin released between 1/01/1990 and 12/31/1995. |
movies_4 | 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 = 'united states of america' and cast(strftime('%y', t1.release_date) as int) = 2006 | Question: what is the average revenue of american movies in 2006? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, langua... | what is the average revenue of american movies in 2006? |
movies_4 | select avg(case when t3.country_name = 'united states of america' then t1.revenue end) - avg(case when t3.country_name = 'india' then t1.revenue end) as calculate 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 cast(strfti... | Question: calculate the 2016 gap between the average revenue for indian and american films. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language... | calculate the 2016 gap between the average revenue for indian and american films. |
movies_4 | select cast(count(case when t4.genre_name = 'romance' then t1.movie_id else null end) as real) * 100 / count(t1.movie_id) from movie as t1 inner join movie_genres as t2 on t1.movie_id = t2.movie_id inner join production_country as t3 on t1.movie_id = t3.movie_id inner join genre as t4 on t2.genre_id = t4.genre_id inner... | Question: what is the percentage of romance films among films produced in india in 2015? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id... | what is the percentage of romance films among films produced in india in 2015? |
movies_4 | 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 = 'optimus prime (voice)' | Question: which actor plays optimus prime? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. language_role ... | which actor plays optimus prime? |
movies_4 | select t2.gender from movie_cast as t1 inner join gender as t2 on t1.gender_id = t2.gender_id where t1.character_name = 'usaf master sgt. epps' | Question: what is the gender of the character 'usaf master sgt. epps?' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, l... | what is the gender of the character 'usaf master sgt. epps?' |
movies_4 | select t1.company_name 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 t3.title = 'ultramarines: a warhammer 40,000 movie' | Question: list all companies who worked in the movie 'ultramarines: a warhammer 40,000 movie.' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> langu... | list all companies who worked in the movie 'ultramarines: a warhammer 40,000 movie.' |
movies_4 | 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 = 'radiant film gmbh' | Question: which movie did the company 'radiant film gmbh' work on? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, langu... | which movie did the company 'radiant film gmbh' work on? |
movies_4 | 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 = 'sky captain and the world of tomorrow' | Question: what are the genres of sky captain and the world of tomorrow? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, ... | what are the genres of sky captain and the world of tomorrow? |
movies_4 | 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 = 'sky captain and the world of tomorrow' | Question: write all the keywords belonging to the movie 'sky captain and the world of tomorrow.' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> lan... | write all the keywords belonging to the movie 'sky captain and the world of tomorrow.' |
movies_4 | select t3.country_name 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 t1.title = 'gojira ni-sen mireniamu' | Question: the movie 'gojira ni-sen mireniamu' is from which country? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, lan... | the movie 'gojira ni-sen mireniamu' is from which country? |
movies_4 | select 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 = 'extremis' | Question: which movie has the keyword 'extremis?' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_name. languag... | which movie has the keyword 'extremis?' |
movies_4 | select t1.title 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' limit 10 | Question: list 10 movie titles that were produced in france. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_na... | list 10 movie titles that were produced in france. |
movies_4 | 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 = 'transformers' and t2.job = 'director' | Question: who is the director for the movie 'transformers?' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language_nam... | who is the director for the movie 'transformers?' |
movies_4 | 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 = 'mad max: fury road' limit 10 | Question: list 10 crews alongside their jobs who worked on the movie 'mad max: fury road.' | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_... | list 10 crews alongside their jobs who worked on the movie 'mad max: fury road.' |
movies_4 | select cast(count(case when t4.genre_name = 'animation' then t1.movie_id else null end) as real) * 100 / count(t1.movie_id) from movie as t1 inner join movie_genres as t2 on t1.movie_id = t2.movie_id inner join production_country as t3 on t1.movie_id = t3.movie_id inner join genre as t4 on t2.genre_id = t4.genre_id inn... | Question: what percentage of movies that came from japan belong in the 'animation' genre? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_i... | what percentage of movies that came from japan belong in the 'animation' genre? |
movies_4 | select cast(count(case when t3.gender = 'male' then 1 else null end) as real) / count(case when t3.gender = 'female' then 1 else null end) as ratio , count(case when t3.gender = 'unspecified' then 1 else null end) as ungenders from movie as t1 inner join movie_cast as t2 on t1.movie_id = t2.movie_id inner join gender a... | Question: what is the ratio between male and female cast members of the movie 'iron man?' count how many have unspecified genders. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword... | what is the ratio between male and female cast members of the movie 'iron man?' count how many have unspecified genders. |
movies_4 | select title from movie where cast(strftime('%y', release_date) as int) < 2000 limit 5 | Question: list down five movie titles that were released before 2000. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, la... | list down five movie titles that were released before 2000. |
movies_4 | select t2.keyword_id from movie as t1 inner join movie_keywords as t2 on t1.movie_id = t2.movie_id where t1.title = 'sin city' | Question: what is the keyword id of the movie with the title of 'sin city'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_co... | what is the keyword id of the movie with the title of 'sin city'? |
movies_4 | select 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 = 'angel' | Question: look for the movie title with the keyword of 'angel'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, language... | look for the movie title with the keyword of 'angel'. |
movies_4 | 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 order by t1.popularity desc limit 1 | Question: which keywords belong to the movie titles with the highest popularity? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, langua... | which keywords belong to the movie titles with the highest popularity? |
movies_4 | select t2.genre_id from movie as t1 inner join movie_genres as t2 on t1.movie_id = t2.movie_id where t1.title = 'the dark knight' | Question: provide the genre id of the movie with the title of 'the dark knight'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, langua... | provide the genre id of the movie with the title of 'the dark knight'. |
movies_4 | 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 = 'thriller' | Question: list down the movie titles within the genre of thriller. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, langu... | list down the movie titles within the genre of thriller. |
movies_4 | 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 t1.movie_status = 'rumored' and t3.genre_name = 'drama' limit 5 | Question: write down five rumoured movie titles within the genre of drama. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_cod... | write down five rumoured movie titles within the genre of drama. |
movies_4 | 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 order by t1.revenue limit 1 | Question: what is the genre of the movie title with the lowest revenue generated? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, langu... | what is the genre of the movie title with the lowest revenue generated? |
movies_4 | 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.runtime = 14 | Question: state the genre of the movie title with a runtime of only 14 minutes. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, languag... | state the genre of the movie title with a runtime of only 14 minutes. |
movies_4 | 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 order by t1.vote_average desc, t1.revenue limit 1 | Question: what is the genre of the movie title which was well-received by the audiences but made the lowest revenue? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_n... | what is the genre of the movie title which was well-received by the audiences but made the lowest revenue? |
movies_4 | 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 t3.genre_id = t2.genre_id where t1.tagline = 'a long time ago in a galaxy far, far away...' | Question: provide the genre of a movie title with a tagline of 'a long time ago in a galaxy far, far away'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. lang... | provide the genre of a movie title with a tagline of 'a long time ago in a galaxy far, far away'. |
movies_4 | select t2.country_id from movie as t1 inner join production_country as t2 on t1.movie_id = t2.movie_id where t1.title like 'pirates of the caribbean: dead man%s chest' | Question: what is the country id of the movie with the title of 'pirates of the caribbean: dead man's chest'? | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. la... | what is the country id of the movie with the title of 'pirates of the caribbean: dead man's chest'? |
movies_4 | select t1.title 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 = 'canada' | Question: list down the movie titles that were produced in canada. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, language_code, langu... | list down the movie titles that were produced in canada. |
movies_4 | select sum(t1.budget) 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 = 'video game' | Question: accumulate the budget of the movie titles with the keyword of 'video game'. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keyword -> keyword_id, keyword_name. language -> language_id, l... | accumulate the budget of the movie titles with the keyword of 'video game'. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.