1sf/bird-sql-train-with-schema huggingface dataset:
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: List all the solutions ids of the repository with "636430969128176000" processed time
Evidence: solution ids refers to Solution.Id;
SQL: SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = 636430969128176000
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 url for repository that has the longest processed time solution?
Evidence: Url for repository refers to Url; longest processed toe trefers to MAX(ProcessedTime);
SQL: SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.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: List all the solutions of repositories with the Forks higher than half of the watchers.
Evidence: solutions refers to Solution.Id; forks higher than half of the watchers refers tto Forks>(Watchers/2);;
SQL: SELECT DISTINCT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > T1.Watchers / 2
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 percentage of Forks to Stars of repository for solution "104086"?
Evidence: solution refers to Solution.Id; Solution.Id = 104086; percentage = MULTIPLY(DIVIDE(Forkk, Stars), 100);
SQL: SELECT CAST(T1.Forks AS REAL) * 100 / T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 104086
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: Please provide the id of the respository that the most people like.
Evidence: repository that the most people like refers to MAX(Stars);
SQL: SELECT Id 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 solution's path of method "HtmlSharp.HtmlParser.Feed"?
Evidence: solution's path refers to Path; method refers to Name; Name = 'HtmlSharp.HtmlParser.Feed';
SQL: SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed'
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: Please provide the number of forks that the repository of the solution 35 have.
Evidence: solution refers to Solution.Id; Solution.Id = 35;
SQL: SELECT T1.Forks FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 35
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: Please provide the id of the solution whose repository has the most watchers.
Evidence: id of the solution refers to Solution.Id; repository has the most watchers refers to MAX(Watchers);
SQL: SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.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: Please provide the number of stars that the repository of the solution 20 have.
Evidence: solution refers to Solution.ID; Solution.Id = 20;
SQL: SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 20
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 methods does solution 1 have? And please tell me if solution 1 needs to be compiled.
Evidence: method refers to Name; solution refers to Solution.Id; Solution.Id = 1; solution needs to be compiled refers to WasCompiled = 0;
SQL: SELECT COUNT(T2.SolutionId) , CASE WHEN T1.WasCompiled = 0 THEN 'Needs' ELSE 'NoNeeds' END needToCompile FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 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 percentage of the methods' solutions that need to be compiled among the methods whose comments is XML format?
Evidence: comment is XML format refers to CommentIsXml = 1; solution needs to be compiled refesr to WasCompiled = 0; percentage = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);
SQL: SELECT CAST(SUM(CASE WHEN T1.WasCompiled = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.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: Please list the names of methods with the solution path "wallerdev_htmlsharp\HtmlSharp.sln".
Evidence: name of the methods refers to Name; solution path refers to Path; Path = 'wallerdev_htmlsharp\HtmlSharp.sln';
SQL: SELECT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'wallerdev_htmlsharpHtmlSharp.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: What is the percentage of respositories that receive more than 2,000 stars?
Evidence: stars>2000; percentage = DIVIDE(MULTIPLY(COUNT(Stars>2000), 100), COUNT(Id));
SQL: SELECT CAST(SUM(CASE WHEN Stars > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(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 url of solution 1?
Evidence: solution refers to Solution.Id; Solution.Id = 1;
SQL: SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 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: Please provide the id of the respository that received the most forks among the respositories that receive 21 stars.
Evidence: repository that received the most forks refers to MAX(Forks);
SQL: SELECT Id FROM Repo WHERE Stars = 21 AND Forks = ( SELECT MAX(Forks) FROM Repo WHERE Stars = 21 )
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 the percentage of the english methods among the methods whose comments is XML format?
Evidence: english methods refers to lang = 'en'; comment is XML format refers to CommentIsXml = 1;
SQL: SELECT CAST(SUM(CASE WHEN Lang = 'en' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Name) FROM Method WHERE 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: Please provide the path of solution of method whose tokenized name is html parser feed.
Evidence: path of solution refers to Path; method refers to Name; tokenized name refers to NameTokenized; Name = ''html parser feed';
SQL: SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'html parser feed'
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: Please provide the solution id of the respository among the respository that receive 238 forks.
Evidence: solution id of the repository refers to solution.Id;
SQL: SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 238
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: Among the english methods,please list the tokenized names of methods whose solutions need to be compiled.
Evidence: english methods refers to lang = 'en'; tokenized name refers to NameTokenized; methods refers to Name; solution needs to be compiled refers to WasCompiled = 0;
SQL: SELECT NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE Lang = 'en' AND WasCompiled = 0
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 solutions whose repository's stars are a third more than forks?
Evidence: solutions refers to Solution.Id; repository stars are a third more than forks = (MULTIPLY(Stars, 1/3))>Forks;
SQL: SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks < T1.Stars * 1 / 3
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: Please provide the path of solution of method whose full comment is Feeds data into the parser.
Evidence: path of solution refers to Path; method refers to name; full comment = 'Feeds data into the parser';
SQL: SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.FullComment = 'Feeds data into the parser'
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: Among the repository "3", how many methods whose comments is XML format?
Evidence: repository refers to RepoId; RepoId = 3; method refers to Name; method whose comment is XML format refers to CommentIsXml = 1;
SQL: SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 3 AND T2.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 percentage of solutions for the method that needs to be compiled in the English methods?
Evidence: method that needs to be compiled refers to WasCompiled = 0; English method refers to Lang = 'en'; percentage of solutions = MULTIPLY(DIVIDE(SUM(WasCompiled = 0), COUNT(Solution.Id)), 100);
SQL: SELECT CAST(SUM(CASE WHEN T1.WasCompiled = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Lang) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'en'
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 more stars in percentage are there for the repository of solution "1" than solution "2"?
Evidence: solution refers to Solution.Id; Solution.Id = 1 OR 2; percentage = DIVIDE(MULTIPLY(SUBTRACT(SUM(Solution.Id = 1), SUM(Solution.Id = 2)), 100)), SUM(Solution.Id = 2);
SQL: SELECT CAST(SUM(CASE WHEN T2.Id = 1 THEN T1.Stars ELSE 0 END) - SUM(CASE WHEN T2.Id = 2 THEN T1.Stars ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 2 THEN T1.Stars ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId
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 solutions are there whose respositories received the number of stars more than one third of the number of forks?
Evidence: number of solutions are there whose repositories received the number of stars more than one third of the number of forks refers to Stars>DIVIDE(Forks, 3);
SQL: SELECT COUNT(DISTINCT T1.Id) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars > CAST(T1.Forks AS REAL) / 3
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 method number 2?
Evidence: task of the method refers to the second part of the Name after the "."; method number refers to Method_100k.Id; Method_100k.Id = 2;
SQL: SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Id = 2
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 format does the method number 8's comment have?
Evidence: format refers CommentIsXml; method number refers to Method_100k.Id; Method_100k.Id = 8;
SQL: SELECT CASE WHEN CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Method WHERE Id = 8
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: Please provide a link to the most well-known repository's Github address.
Evidence: link refers to Url; well-known repository refers to MAX(Watchers);
SQL: SELECT Url 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 task of the method that is in the Czech language?
Evidence: method refers to Name; task of the method refers to the second part of the Name after the "."; Czech language refers to Lang = 'cs'
SQL: SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Lang = 'cs'
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 solution path for method number 3?
Evidence: solution path refers to Path; method number refers to Method_100k.Id; Method_100k.Id = 3;
SQL: SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 3
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 language of method number 28 that can be found in the repository number 3?
Evidence: language of method refers to Lang; method number refers to Method_100k.Id; Method_100k.Id = 28; repository number refers to RepoId; RepoID = 3;
SQL: SELECT T2.Lang FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 28 AND T1.RepoId = 3
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 solution 1's processing time and how many methods have been using this solution?
Evidence: solution refers to Solution.Id and SolutionId; Solution.Id = 1; SolutionId = 1; processing time refers to ProcessedTime; methods refers to Name;
SQL: SELECT T1.ProcessedTime, COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1