1sf/bird-sql-train-with-schema huggingface dataset:
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Which movies did the company Paramount Pictures produce in 2000?
Evidence: Which movies refers to title; company Paramount Pictures refers to company_name = 'Paramount Pictures'; in 2000 refers to release_date LIKE '2000%'
SQL: 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
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What keyword can the user use to search for the movie Finding Nemo?
Evidence: What keyword refers to keyword_name; Finding Nemo refers to title = 'Finding Nemo'
SQL: 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'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Name the horror movies with positive ratings greater than 7.
Evidence: Name the horror movies refers to title where genre_name = 'horror'; positive ratings greater than 7 refers to vote_average > 7
SQL: 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
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: How many production companies made more than 150 movies?
Evidence: more than 150 movies refers to COUNT(company_name) > 150
SQL: 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 )
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the role of Mark Hammel?
Evidence: role refers to job
SQL: 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'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: How many main actors are there in the movie Pirates of the Caribbean: At World's End?
Evidence: main actors refers to gender = 'male' and min(cast_order); Pirates of the Caribbean: At World's End refers to title = 'Pirates of the Caribbean: At World''s End'
SQL: SELECT COUNT(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' AND T2.cast_order = ( SELECT MIN(T2.cast_order) FROM movie AS T1 INNER JOIN movie_cast AS T2 ON T1.movie_id = T2.movie_id INNER JOIN gender AS T3 ON T3.gender_id = T2.gender_id WHERE T3.gender = 'Male' OR T3.gender = 'Female' AND T1.title = 'Pirates of the Caribbean: At World''s End' )
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Which movies have the participation of actor Harrison Ford?
Evidence: Which movies refers to title; actor refers to person_name
SQL: 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'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Which character did Orlando Bloom play in the movie Pirates of the Caribbean: The Curse of the Black Pearl?
Evidence: Which character refers to character_name; movie Pirates of the Caribbean: The Curse of the Black Pearl refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'
SQL: 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'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: What is the average number of horror movies among all movies genre?
Evidence: horror movies refers to genre_name = 'horror'; average number = divide(sum(movie_id) when genre_name = 'horror', count(movie_id))
SQL: 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
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: List the names of all the producers in the movie "Pirates of the Caribbean: At World's End".
Evidence: List the names refers to person_name; producers refers to job = 'Producer'; "Pirates of the Caribbean: At World's End" refers to title = 'Pirates of the Caribbean: The Curse of the Black Pearl'
SQL: 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'
Database: movies_4
Tables: country, department, gender, genre, keyword, language, language_role, movie, movie_genres, movie_languages, person, movie_crew, production_company, production_country, movie_cast, movie_keywords, movie_company
Columns (table index, column name): -1, *, 0, country_id, 0, country_iso_code, 0, country_name, 1, department_id, 1, department_name, 2, gender_id, 2, gender, 3, genre_id, 3, genre_name, 4, keyword_id, 4, keyword_name, 5, language_id, 5, language_code, 5, language_name, 6, role_id, 6, language_role, 7, movie_id, 7, title, 7, budget, 7, homepage, 7, overview, 7, popularity, 7, release_date, 7, revenue, 7, runtime, 7, movie_status, 7, tagline, 7, vote_average, 7, vote_count, 8, movie_id, 8, genre_id, 9, movie_id, 9, language_id, 9, language_role_id, 10, person_id, 10, person_name, 11, movie_id, 11, person_id, 11, department_id, 11, job, 12, company_id, 12, company_name, 13, movie_id, 13, country_id, 14, movie_id, 14, person_id, 14, character_name, 14, gender_id, 14, cast_order, 15, movie_id, 15, keyword_id, 16, movie_id, 16, company_id
Question: Calculate the average income made by movies using the keyword "paris". List the title of the movies.
Evidence: income refers to revenue; keyword "paris" refers to keyword_name = 'paris'; average income = AVG(revenue)
SQL: 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'
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: How many English language codes whose comments for the method are in the XML format?
Evidence: English language refers to Lang = 'en'; the comments for this method is XML format refers to CommentIsXml = 1;
SQL: SELECT COUNT(Lang) FROM Method WHERE Lang = 'en' AND CommentIsXml = 1
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the task of the method whose tokenized name is "online median filter test median window filling"?
Evidence: tokenized name refers to NameTokenized; task of the method refers to the second part of name deliminated by "."; for example, the task of 'LinqToDelicious.HttpWebRequestFactory.Create' is 'HttpWebRequestFactory'
SQL: 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'
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the time of sampling of the solution with the highest sampling time? Indicate the id number of the solution.
Evidence: highest sampling time refers to max(SampledAt); id number of the solution refers to SolutionId;
SQL: SELECT DISTINCT SampledAt, SolutionId FROM Method WHERE SampledAt = ( SELECT MAX(SampledAt) FROM Method )
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: How many followers do the most followed repository on Github have? Give the github address of the repository.
Evidence: more forks refers to more people follow this repository; most followed repository refers to max(Forks);  the github address of the repository refers to Url;
SQL: SELECT Forks, Url FROM Repo WHERE Forks = ( SELECT MAX(Forks) FROM Repo )
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the id of the repository with the highest number of solution path?
Evidence: highest number of solution path refers to max(count(Path)); id of the repository refers to RepoId
SQL: SELECT RepoId FROM solution GROUP BY RepoId ORDER BY COUNT(Path) DESC LIMIT 1
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the most liked repository? Indicate its github address and the amount of stars it has received.
Evidence: more stars mean more people like this repository; most liked refers to max(Stars); the github address of repository refers to Url;
SQL: SELECT Url, Stars FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo )
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the name of the solution path with the highest processed time?
Evidence: highest processed time refers to max(ProcessedTime);
SQL: SELECT Path FROM Solution WHERE ProcessedTime = ( SELECT MAX(ProcessedTime) FROM Solution )
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: How much is the processed time of downloading the most popular repository?
Evidence: more watchers mean that this repository is more popular;
SQL: SELECT ProcessedTime FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo )
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
Question: What is the github address of the "nofear_Mara\Mara.sln" solution path?
Evidence: github address of repository refers to Url;
SQL: SELECT Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE Path = 'nofear_MaraMara.sln'
Database: codebase_comments
Tables: Method, MethodParameter, Repo, Solution
Columns (table index, column name): -1, *, 0, Id, 0, Name, 0, FullComment, 0, Summary, 0, ApiCalls, 0, CommentIsXml, 0, SampledAt, 0, SolutionId, 0, Lang, 0, NameTokenized, 1, Id, 1, MethodId, 1, Type, 1, Name, 2, Id, 2, Url, 2, Stars, 2, Forks, 2, Watchers, 2, ProcessedTime, 3, Id, 3, RepoId, 3, Path, 3, ProcessedTime, 3, WasCompiled
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.
Evidence: longest amount of processed time refers to max(ProcessedTime); the repository can be implemented without needs of compilation refers to WasCompiled = 1;
SQL: 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 )