db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
movies_4 | 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' | Question: for movies with the keyword of 'civil war', calculate the average revenue generated by these 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. l... | for movies with the keyword of 'civil war', calculate the average revenue generated by these movies. |
movies_4 | select popularity from movie order by vote_count desc limit 1 | Question: find out the popularity of the movies with the highest vote count. | 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_c... | find out the popularity of the movies with the highest vote count. |
movies_4 | select title from movie where budget = 0 order by revenue desc limit 1 | Question: among the zero-budget movie titles, which one has made the highest 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_name. language -> language_id, l... | among the zero-budget movie titles, which one has made the highest revenue? |
movies_4 | 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' | Question: what is the id of the production company which produced the movie 'gladiator'? | 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 id of the production company which produced the movie 'gladiator'? |
movies_4 | 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 | Question: list down the ids of the production companies that released the movies in 1916. | 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... | list down the ids of the production companies that released the movies in 1916. |
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 = 'lucasfilm' | Question: list down the movies produced by lucasfilm. | 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... | list down the movies produced by lucasfilm. |
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 = 'warner bros. pictures' order by t3.revenue desc limit 1 | Question: among warner bros. pictures' movies, which title made the highest 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_name. language -> language_id, la... | among warner bros. pictures' movies, which title made the highest revenue? |
movies_4 | 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' | Question: write down the release date of the movies produced by twentieth century fox film corporation. | 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... | write down the release date of the movies produced by twentieth century fox film corporation. |
movies_4 | 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' | Question: what is the language id of the movie 'walk the line'? | 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 language id of the movie 'walk the line'? |
movies_4 | 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 | Question: find out the language id of the movie 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, language_c... | find out the language id of the movie with the highest popularity. |
movies_4 | 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' | Question: tell the language of the movie 'c'era una volta il west'. | 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... | tell the language of the movie 'c'era una volta il west'. |
movies_4 | 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' | Question: are there any post-production movies in nederlands? | 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_n... | are there any post-production movies in nederlands? |
movies_4 | 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' | Question: list down the tagline of the polski 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. lan... | list down the tagline of the polski movies. |
movies_4 | 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' | Question: provide the homepage of the bahasa indonesia 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_... | provide the homepage of the bahasa indonesia movies. |
movies_4 | 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 | Question: work out the difference in revenues made between the english and latin 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... | work out the difference in revenues made between the english and latin movies. |
movies_4 | 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') | Question: calculate the revenues made by fantasy films and live entertainment. | 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... | calculate the revenues made by fantasy films and live entertainment. |
movies_4 | 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' | Question: what is the average revenue made by latin 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_nam... | what is the average revenue made by latin movies? |
movies_4 | select person_name from person group by person_name order by count(person_name) desc limit 1 | Question: what is the most common first name? | 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... | what is the most common first name? |
movies_4 | 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 ) | Question: what is the average number of crews for a 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_name... | what is the average number of crews for a movie? |
movies_4 | select keyword_name from keyword where keyword_name like '%christmas%' | Question: list all the keywords with 'christmas' in them. | 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.... | list all the keywords with 'christmas' in them. |
movies_4 | select max(runtime) from movie | Question: what is the longest runtime of all 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. lang... | what is the longest runtime of all movies? |
movies_4 | select country_iso_code from country where country_name = 'kyrgyz republic' | Question: what is the iso code of 'kyrgyz republic'? | 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. lang... | what is the iso code of 'kyrgyz republic'? |
movies_4 | select overview from movie where title = 'the pacifier' | Question: provide the overview for the movie 'the pacifier'. | 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... | provide the overview for the movie 'the pacifier'. |
movies_4 | 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' | Question: how many movies were produced by 'eddie murphy productions'? | 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 movies were produced by 'eddie murphy productions'? |
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 like '%captain%' | Question: list all the actors who have played characters with 'captain' in their names. | 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 all the actors who have played characters with 'captain' in their names. |
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.release_date like '2006%' group by t3.keyword_name order by count(t3.keyword_name) desc limit 1 | Question: what is the most common keyword among all the movies released 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, langua... | what is the most common keyword among all the movies released in 2006? |
movies_4 | 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' | Question: how many movies have 'vi' as their language code? | 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... | how many movies have 'vi' as their language code? |
movies_4 | 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 | Question: what is the third least common 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_id, language_code, language_name. language_... | what is the third least common genre? |
movies_4 | 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.' | Question: what is the original language of the movie with the tagline 'an offer you can't refuse.'? | 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 is the original language of the movie with the tagline 'an offer you can't refuse.'? |
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 = 'france' | Question: provide the average revenue of all the french 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... | provide the average revenue of all the french movies. |
movies_4 | 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' | Question: list all the unspecified gender characters. | 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... | list all the unspecified gender characters. |
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 t2.job = 'director' order by t1.popularity desc limit 5 | Question: what are the top 5 most popular movie directors? | 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... | what are the top 5 most popular movie directors? |
movies_4 | 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 | Question: list the film with the highest budget in each 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_id, language_code, language_... | list the film with the highest budget in each genre. |
movies_4 | 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 | Question: what is the title of the movie with the most keywords? | 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... | what is the title of the movie with the most keywords? |
movies_4 | 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 | Question: which department has the most 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, language_code, language_name. language_... | which department has the most people? |
movies_4 | 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 | Question: what percentage of films are made in the us? | 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... | what percentage of films are made in the us? |
movies_4 | 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 | Question: what is the average ratio between female and male actors in a 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... | what is the average ratio between female and male actors in a movie? |
movies_4 | select title from movie where cast(strftime('%y', release_date) as int) = 1945 | Question: list the movies released in 1945. | 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... | list the movies released in 1945. |
movies_4 | select country_id, country_iso_code from country where country_name = 'belgium' | Question: provide the id and iso code of belgium. | 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... | provide the id and iso code of belgium. |
movies_4 | 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' | Question: list the character names played by catherine deneuve. | 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... | list the character names played by catherine deneuve. |
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 = 'somali' | Question: list the movies in the somali language. | 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... | list the movies in the somali language. |
movies_4 | 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 | Question: provide the release date and language of the 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_cod... | provide the release date and language of the most popular movie. |
movies_4 | 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' | Question: what is the original language of the 'four rooms' 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, langu... | what is the original language of the 'four rooms' movie? |
movies_4 | 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' | Question: list the character names in the 'open water' 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_n... | list the character names in the 'open water' movie. |
movies_4 | 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 | Question: who is the main actor in the 'pirates of the caribbean: at world's end' 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... | who is the main actor in the 'pirates of the caribbean: at world's end' movie? |
movies_4 | 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' | Question: list the names of camera supervisors in the crew. | 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... | list the names of camera supervisors in the crew. |
movies_4 | 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' | Question: list the job titles of sally menke in the crew. | 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.... | list the job titles of sally menke in the crew. |
movies_4 | 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... | Question: 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. | Tables: country -> country_id, country_iso_code, country_name. department -> department_id, department_name. gender -> gender_id, gender. genre -> genre_id, genre_name. keywo... | 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. |
movies_4 | 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' | Question: provide the titles and revenues of the movies produced by the dreamworks company. | 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... | provide the titles and revenues of the movies produced by the dreamworks company. |
movies_4 | 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' | Question: how many movies 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, language_name. langua... | how many movies were produced in canada? |
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 = 'forrest gump' | Question: list the genres of forrest gump 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_name. language... | list the genres of forrest gump movie. |
movies_4 | 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 ... | Question: provide the production companies of the movie that has over 35% average running time per movie in 2016. | 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... | provide the production companies of the movie that has over 35% average running time per movie in 2016. |
movies_4 | 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.keywor... | Question: find the difference in percentage of the movies under keywords of 'woman director' and 'independent film'. | 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... | find the difference in percentage of the movies under keywords of 'woman director' and 'independent film'. |
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 = 'dancer in the dark' | Question: which genre does the movie dancer in the dark belong to? | 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 genre does the movie dancer in the dark belong to? |
movies_4 | 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 | Question: how many adventure movies are there that were released in 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... | how many adventure movies are there that were released in 2000? |
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 = 'paramount pictures' and cast(strftime('%y', t3.release_date) as int) = 2000 | Question: which movies did the company paramount pictures produce in 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_cod... | which movies did the company paramount pictures produce in 2000? |
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 = 'finding nemo' | Question: what keyword can the user use to search for the movie finding nemo? | 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 keyword can the user use to search for the movie finding nemo? |
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 t1.vote_average > 7 | Question: name the horror movies with positive ratings greater 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_code, l... | name the horror movies with positive ratings greater than 7. |
movies_4 | 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 ) | Question: how many production companies made more than 150 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, langu... | how many production companies made more than 150 movies? |
movies_4 | 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' | Question: what is the role of mark hammel? | 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 ... | what is the role of mark hammel? |
movies_4 | 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 mo... | Question: how many main actors are there 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 -> lang... | how many main actors are there in the movie pirates of the caribbean: at world's end? |
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 = 'harrison ford' | Question: which movies have the participation of actor harrison ford? | 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... | which movies have the participation of actor harrison ford? |
movies_4 | 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' | Question: which character did orlando bloom play in the movie pirates of the caribbean: the curse of the black pearl? | 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_... | which character did orlando bloom play in the movie pirates of the caribbean: the curse of the black pearl? |
movies_4 | 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 | Question: what is the average number of horror movies among all movies 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_id, language_... | what is the average number of horror movies among all movies genre? |
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 = 'pirates of the caribbean: the curse of the black pearl' and t2.job = 'producer' | Question: 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. language ... | list the names of all the producers in the movie 'pirates of the caribbean: at world's end'. |
movies_4 | 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' | Question: calculate the average income made by movies using the keyword 'paris'. list the title of 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. l... | calculate the average income made by movies using the keyword 'paris'. list the title of the movies. |
codebase_comments | select count(lang) from method where lang = 'en' and commentisxml = 1 | Question: how many english language codes whose comments for the method are in the xml format? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solu... | how many english language codes whose comments for the method are in the xml format? |
codebase_comments | 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' | Question: what is the task of the method whose tokenized name is 'online median filter test median window filling'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers... | what is the task of the method whose tokenized name is 'online median filter test median window filling'? |
codebase_comments | select distinct sampledat, solutionid from method where sampledat = ( select max(sampledat) from method ) | Question: what is the time of sampling of the solution with the highest sampling time? indicate the id number of the solution. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Fork... | what is the time of sampling of the solution with the highest sampling time? indicate the id number of the solution. |
codebase_comments | select forks, url from repo where forks = ( select max(forks) from repo ) | Question: how many followers do the most followed repository on github have? give the github address of the repository. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watc... | how many followers do the most followed repository on github have? give the github address of the repository. |
codebase_comments | select repoid from solution group by repoid order by count(path) desc limit 1 | Question: what is the id of the repository with the highest number of solution path? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id... | what is the id of the repository with the highest number of solution path? |
codebase_comments | select url, stars from repo where stars = ( select max(stars) from repo ) | Question: what is the most liked repository? indicate its github address and the amount of stars it has received. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ... | what is the most liked repository? indicate its github address and the amount of stars it has received. |
codebase_comments | select path from solution where processedtime = ( select max(processedtime) from solution ) | Question: what is the name of the solution path with the highest processed time? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id, Re... | what is the name of the solution path with the highest processed time? |
codebase_comments | select processedtime from repo where watchers = ( select max(watchers) from repo ) | Question: how much is the processed time of downloading the most popular repository? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id... | how much is the processed time of downloading the most popular repository? |
codebase_comments | select url from repo as t1 inner join solution as t2 on t1.id = t2.repoid where path = 'nofear_maramara.sln' | Question: what is the github address of the 'nofear_maramara.sln' solution path? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id, Re... | what is the github address of the 'nofear_maramara.sln' solution path? |
codebase_comments | 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 ) | Question: 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. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParamet... | 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. |
codebase_comments | 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' | Question: what is the tokenized name of the solution whose path is 'maravillas_linq-to-delicioustasty.sln'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, Proces... | what is the tokenized name of the solution whose path is 'maravillas_linq-to-delicioustasty.sln'? |
codebase_comments | 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 | Question: 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? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt... | 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? |
codebase_comments | 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' | Question: in the 'https://github.com/wallerdev/htmlsharp.git', give all the linearized sequenced of api calls. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, Pro... | in the 'https://github.com/wallerdev/htmlsharp.git', give all the linearized sequenced of api calls. |
codebase_comments | 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 ) | Question: how many solution paths are there inside the 2nd most popular repository? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id,... | how many solution paths are there inside the 2nd most popular repository? |
codebase_comments | 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' | Question: what is the average processed time of the solution paths inside the 'https://github.com/zphingphong/discardcustomerapp.git'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Sta... | what is the average processed time of the solution paths inside the 'https://github.com/zphingphong/discardcustomerapp.git'? |
codebase_comments | 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' | Question: what is the full comment on the method whose solution path is 'bmatzelle_ninisourcenini.sln' with a tokenized name of 'alias text add alias'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Rep... | what is the full comment on the method whose solution path is 'bmatzelle_ninisourcenini.sln' with a tokenized name of 'alias text add alias'? |
codebase_comments | 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' | Question: what is the linearized sequenced of api calls of the method whose solution path is 'mauriciodeamorim_tdd.encontro2tdd.encontro2.sln'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id,... | what is the linearized sequenced of api calls of the method whose solution path is 'mauriciodeamorim_tdd.encontro2tdd.encontro2.sln'? |
codebase_comments | 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 | Question: how many solution paths that needs to be compiled if user wants to implement it in 'https://github.com/jeffdik/tachy.git'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars... | how many solution paths that needs to be compiled if user wants to implement it in 'https://github.com/jeffdik/tachy.git'? |
codebase_comments | 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' | Question: how much is the processed time of the method whose tokenized name is 'about box1 dispose'? indicate the language of the method. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, ... | how much is the processed time of the method whose tokenized name is 'about box1 dispose'? indicate the language of the method. |
codebase_comments | 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' | Question: in 'maxild_playgroundplayground.sln', what is the time of sampling for the method 'githubrepo.cli.githubclientwrapper.getreleases'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, U... | in 'maxild_playgroundplayground.sln', what is the time of sampling for the method 'githubrepo.cli.githubclientwrapper.getreleases'? |
codebase_comments | select t2.lang from solution as t1 inner join method as t2 on t1.id = t2.solutionid where t1.path = 'opendns_diagnosticappwindowsopendnsdiagnostic.sln' | Question: what is the language of the method used in the solution path 'opendns_diagnosticappwindowsopendnsdiagnostic.sln'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, ... | what is the language of the method used in the solution path 'opendns_diagnosticappwindowsopendnsdiagnostic.sln'? |
codebase_comments | select substr(substr(name, instr(name, '.') + 1), 1, instr(substr(name, instr(name, '.') + 1), '.') - 1) task from method where nametokenized = 'html parser feed' | Question: what's the task of the method whose tokenized name is 'html parser feed'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id,... | what's the task of the method whose tokenized name is 'html parser feed'? |
codebase_comments | select case when commentisxml = 0 then 'no' when commentisxml = 1 then 'yes' end isxmlformat from method where name = 'htmlsharp.htmlparser.feed' | Question: are the comments for the method 'htmlsharp.htmlparser.feed' in xml format? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id... | are the comments for the method 'htmlsharp.htmlparser.feed' in xml format? |
codebase_comments | select name from method where summary = 'write a command to the log' | Question: which method has the summary 'write a command to the log'? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -> Id, RepoId, Path, ... | which method has the summary 'write a command to the log'? |
codebase_comments | 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 ) | Question: how many solutions contain files found within the repository most people like? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solution -... | how many solutions contain files found within the repository most people like? |
codebase_comments | 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 ) | Question: please list the path of the solution that contains files found within the repository most people like. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, P... | please list the path of the solution that contains files found within the repository most people like. |
codebase_comments | select t1.url from repo as t1 inner join solution as t2 on t1.id = t2.repoid where t2.id = 12 | Question: what is the github address of the repository that contains files used by solution id12? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. S... | what is the github address of the repository that contains files used by solution id12? |
codebase_comments | 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 | Question: among the solutions that contain files within the repository followed by over 1000 people, how many of them can beimplemented without needs of compilation? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, T... | among the solutions that contain files within the repository followed by over 1000 people, how many of them can beimplemented without needs of compilation? |
codebase_comments | 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 inne... | Question: which solution contains files within a more popular repository, the solution id18 or solution id19? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, Proc... | which solution contains files within a more popular repository, the solution id18 or solution id19? |
codebase_comments | 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 | Question: among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to becompiled if user wants to implement it? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. Method... | among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to becompiled if user wants to implement it? |
codebase_comments | select distinct t2.processedtime from repo as t1 inner join solution as t2 on t1.id = t2.repoid where t2.path = 'jeffdik_tachysrctachy.sln' | Question: what is the processed time to download the repository whose files are contained in the solution with the path 'jeffdik_tachysrctachy.sln'. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -... | what is the processed time to download the repository whose files are contained in the solution with the path 'jeffdik_tachysrctachy.sln'. |
codebase_comments | select t1.url from repo as t1 inner join solution as t2 on t1.id = t2.repoid where t2.id = 9 | Question: please give the url of the repository whose files are contained in solution id 9? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -> Id, Url, Stars, Forks, Watchers, ProcessedTime. Solutio... | please give the url of the repository whose files are contained in solution id 9? |
codebase_comments | 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' | Question: please list all the paths of the solutions containing files within the repository whose url is 'https://github.com/maxild/playground.git'. | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name. Repo -... | please list all the paths of the solutions containing files within the repository whose url is 'https://github.com/maxild/playground.git'. |
codebase_comments | 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 | Question: among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000? | Tables: Method -> Id, Name, FullComment, Summary, ApiCalls, CommentIsXml, SampledAt, SolutionId, Lang, NameTokenized. MethodParameter -> Id, MethodId, Type, Name.... | among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.