context
stringlengths 11
9.12k
| question
stringlengths 0
1.06k
| SQL
stringlengths 2
4.44k
| source
stringclasses 28
values |
---|---|---|---|
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many percent more of the stars for the repository of solution No.51424 than No.167053? | SELECT CAST(SUM(CASE WHEN T2.Id = 51424 THEN T1.Stars ELSE 0 END) - SUM(CASE WHEN T2.Id = 167053 THEN T1.Stars ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 167053 THEN T1.Stars ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many percent more of the Forks for the repository of solution No.53546 than No.1502? | SELECT CAST(SUM(CASE WHEN T2.Id = 53546 THEN T1.Forks ELSE 0 END) - SUM(CASE WHEN T2.Id = 1502 THEN T1.Forks ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 1502 THEN T1.Forks ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the methods with a solution with a "636449700980488000" processed time. | SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.ProcessedTime = 636449700980488000 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many solutions are in "https://github.com/derickbailey/presentations-and-training.git"? | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/derickbailey/presentations-and-training.git' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the total processed time of all solutions from the repository with the most forks? | SELECT SUM(T2.ProcessedTime) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = ( SELECT MAX(Forks) FROM Repo ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the path of solution from all the "it" lang code method. | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'it' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the path of solution of "spinachLexer.mT__55" method? | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'spinachLexer.mT__55' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What are the "en" methods with solutions from repository "1093" | SELECT DISTINCT T2.id FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 1093 AND T2.Lang = 'en' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What are the paths of solutions in repository "https://github.com/ecoffey/Bebop.git" | SELECT DISTINCT T2.Path FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/ecoffey/Bebop.git' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the ids of repositories for solutions with "ro" methods. | SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'ro' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the repository id of the method with tokenized name "crc parameters get hash code"? | SELECT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'crc parameters get hash code' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many methods with solutions with path 'maravillas_linq-to-delicious\tasty.sln'? | SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'maravillas_linq-to-delicious\tasty.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the solutions ids of the repository with "636430969128176000" processed time | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = 636430969128176000 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the url for repository that has the longest processed time solution? | 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 ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the solutions of repositories with the Forks higher than half of the watchers. | SELECT DISTINCT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > T1.Watchers / 2 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the percentage of Forks to Stars of repository for solution "104086"? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the id of the respository that the most people like. | SELECT Id FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the solution's path of method "HtmlSharp.HtmlParser.Feed"? | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the number of forks that the repository of the solution 35 have. | SELECT T1.Forks FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 35 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the id of the solution whose repository has the most watchers. | 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 ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the number of stars that the repository of the solution 20 have. | SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 20 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many methods does solution 1 have? And please tell me if solution 1 needs to be compiled. | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the percentage of the methods' solutions that need to be compiled among the methods whose comments is XML format? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please list the names of methods with the solution path "wallerdev_htmlsharp\HtmlSharp.sln". | SELECT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'wallerdev_htmlsharpHtmlSharp.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the percentage of respositories that receive more than 2,000 stars? | SELECT CAST(SUM(CASE WHEN Stars > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Stars) FROM Repo | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the url of solution 1? | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 1 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the id of the respository that received the most forks among the respositories that receive 21 stars. | SELECT Id FROM Repo WHERE Stars = 21 AND Forks = ( SELECT MAX(Forks) FROM Repo WHERE Stars = 21 ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What the percentage of the english methods among the methods whose comments is XML format? | SELECT CAST(SUM(CASE WHEN Lang = 'en' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Name) FROM Method WHERE CommentIsXml = 1 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the path of solution of method whose tokenized name is html parser feed. | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'html parser feed' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the solution id of the respository among the respository that receive 238 forks. | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 238 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Among the english methods,please list the tokenized names of methods whose solutions need to be compiled. | SELECT NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE Lang = 'en' AND WasCompiled = 0 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many solutions whose repository's stars are a third more than forks? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide the path of solution of method whose full comment is Feeds data into the parser. | 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' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Among the repository "3", how many methods whose comments is XML format? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the percentage of solutions for the method that needs to be compiled in the English methods? | 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' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many more stars in percentage are there for the repository of solution "1" than solution "2"? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many solutions are there whose respositories received the number of stars more than one third of the number of forks? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the task of method number 2? | SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Id = 2 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What format does the method number 8's comment have? | SELECT CASE WHEN CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Method WHERE Id = 8 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please provide a link to the most well-known repository's Github address. | SELECT Url FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo ) | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the task of the method that is in the Czech language? | SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Lang = 'cs' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the solution path for method number 3? | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 3 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the language of method number 28 that can be found in the repository number 3? | 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 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is solution 1's processing time and how many methods have been using this solution? | SELECT T1.ProcessedTime, COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many methods in the same repository share a tokenized name that begins with "query language..."? | SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized LIKE 'query language%' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Please state the API calls for method number 10 and its intended course of action. | SELECT T2.ApiCalls, T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 10 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many methods in repository 150 did not have a comment and a summary? | SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.RepoId = 150 AND T2.FullComment IS NULL AND T2.Summary IS NULL | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the comment format of method number 50 with the solution path "managedfusion_managedfusion\ManagedFusion.sln"? | SELECT CASE WHEN T2.CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN T2.CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 50 AND T1.Path = 'managedfusion_managedfusionManagedFusion.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the task method of the tokenized name "string extensions to pascal case
"? | SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE NameTokenized = 'string extensions to pascal case' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert". | SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many path does the github address "https://github.com/jeffdik/tachy.git" have? | SELECT COUNT(DISTINCT 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' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many watchers does the path "maff_se3ue7\US7.sln" have? | SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'maff_se3ue7US7.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List 5 github address that the solutions can be implemented without the need of compilation. | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.WasCompiled = 1 LIMIT 5 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What are the solution path of the tokenized name "matrix multiply"? | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'matrix multiply' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many XML format does the github address "https://github.com/dogeth/vss2git.git" have? | SELECT COUNT(T3.CommentIsXml) 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/dogeth/vss2git.git' AND T3.CommentIsXml = 1 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List 5 solution path that has sampling time of 636431758961741000. | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SampledAt = 636431758961741000 LIMIT 5 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the github address of the solution path "joeyrobert_bloomfilter\DataTypes.BloomFilter.sln"? | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'joeyrobert_bloomfilterDataTypes.BloomFilter.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the method name of the solution path "graffen_NLog.Targets.Syslog\src\NLog.Targets.Syslog.sln
". | SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'graffen_NLog.Targets.SyslogsrcNLog.Targets.Syslog.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | List all the tokenized name of the solution path "jurney_P4Backup\P4Backup\P4Backup.sln
". | SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'jurney_P4BackupP4BackupP4Backup.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | Provide the github address with the summary of method "A test for Decompose
". | SELECT T1.Url 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 T3.Summary = 'A test for Decompose' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many liked by people does the solution path "ninject_Ninject\Ninject.sln
" have? | SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_NinjectNinject.sln' | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many solution path does the repository with 111 stars, 58 forks, and 111 watchers? | SELECT COUNT(T2.Path) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 111 AND T1.Forks = 58 AND T1.Watchers = 111 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | What is the average processed time of the solution with a repository of 254 likes, 88 followers, and 254 watchers? | SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.ProcessedTime) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 254 AND T1.Forks = 88 AND T1.Watchers = 254 | bird |
CREATE TABLE codebase_comments (Id integer, Name text, FullComment text, Summary text, ApiCalls text, CommentIsXml integer, SampledAt integer, SolutionId integer, Lang text, NameTokenized text, Id integer, MethodId text, Type text, Name text, Id integer, Url text, Stars integer, Forks integer, Watchers integer, ProcessedTime integer, Id integer, RepoId integer, Path text, ProcessedTime integer, WasCompiled integer) | How many language code of method is used for the github address "https://github.com/managedfusion/managedfusion.git
"? | SELECT COUNT(DISTINCT T3.Lang) 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/managedfusion/managedfusion.git' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many trains are there that run in the east direction? | SELECT COUNT(id) FROM trains WHERE direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many cars are there on train no.1? | SELECT COUNT(id) FROM cars WHERE train_id = 1 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What is the shape of the tail car on train no.1? | SELECT shape FROM cars WHERE train_id = 1 AND position = 4 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the IDs of all the trains with at least one car in a non-regular shape. | SELECT train_id FROM cars WHERE shape IN ('elipse', 'bucket') GROUP BY train_id | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many cars on train no.1 have the roof open? | SELECT COUNT(id) FROM cars WHERE train_id = 1 AND roof = 'none' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the IDs of all the cars on train no.1 that have 2 wheels. | SELECT id FROM cars WHERE train_id = 1 AND wheels = 2 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape? | SELECT SUM(CASE WHEN T1.shape IN ('bucket', 'elipse') THEN 1 ELSE 0 end)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the IDs of all the trains that run in the east direction and have less than 4 cars. | SELECT T1.id FROM trains AS T1 INNER JOIN ( SELECT train_id, MAX(position) AS carsNum FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T1.direction = 'east' AND T2.carsNum < 4 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the IDs of all the cars with double sides on trains that run in the west direction. | SELECT T1.id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.sides = 'double' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the trains that run in the east direction, how many of them have more than 2 long cars? | SELECT SUM(CASE WHEN T2.longCarsNum > 2 THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS longCarsNum FROM cars WHERE len = 'long' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T1.direction = 'west' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the directions in which the trains with at least one empty-loaded car run. | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.load_num = 0 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | In which direction does the train with an ellipse-shape car run? | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.shape = 'ellipse' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What is the total number of short cars on all the trains that run in the east direction? | SELECT SUM(CASE WHEN T1.len = 'short' then 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the shapes of all the head cars on the trains that run in the east direction. | SELECT T1.shape FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.position = 1 GROUP BY T1.shape | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many cars on a train that runs in the east direction have a flat roof? | SELECT SUM(CASE WHEN T1.roof = 'flat' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the cars on a train that runs in the east direction, how many of them have a flat roof and a circle load shape? | SELECT SUM(CASE WHEN T1.load_shape = 'circle' THEN 1 ELSE 0 END)as count FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' AND T1.roof = 'flat' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Trains that run in which direction have more rectangle-shaped cars in total? | SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS rectCarsNum FROM cars WHERE shape = 'rectangle' GROUP BY train_id ) AS T2 ON T1.id = T2.train_id ORDER BY T2.rectCarsNum DESC | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Please list the directions in which the trains with 4 short cars run. | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.len = 'short' AND T1.position = 4 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What is the average number of cars on trains that run in the east direction? | SELECT CAST(COUNT(T1.id) AS REAL) / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T2.direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the trains that have at least one non-regular shaped car, what is the percentage of it running in the east direction? | SELECT CAST(COUNT(DISTINCT CASE WHEN T2.direction = 'east' THEN T1.train_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.shape IN ('bucket', 'ellipse') | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many short cars are in the shape of hexagon? | SELECT COUNT(id) FROM cars WHERE shape = 'hexagon' AND len = 'short' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many trains are running west? | SELECT COUNT(id) FROM trains WHERE direction = 'west' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What are the load shapes of all the short ellipse cars? | SELECT load_shape FROM cars WHERE shape = 'ellipse' AND len = 'short' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What are the ids of the train running east? | SELECT id FROM trains WHERE direction = 'east' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many wheels do the long cars have? | SELECT SUM(wheels) FROM cars WHERE len = 'long' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Which direction do the majority of the trains are running? | SELECT direction FROM trains GROUP BY direction ORDER BY COUNT(id) DESC | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the trains running east, how many trains have at least 4 cars? | SELECT SUM(CASE WHEN T1.direction = 'east' THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS carsNum FROM cars GROUP BY train_id ) AS T2 ON T1.id = T2.train_id WHERE T2.carsNum >= 4 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Which direction do most of the trains with rectangle-shaped second cars run? | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'rectangle' GROUP BY T2.direction ORDER BY COUNT(T2.id) DESC LIMIT 1 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many trains running west have double sided cars in 3rd position? | SELECT COUNT(T.train_id) FROM (SELECT T1.train_id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 3 AND T2.direction = 'west' AND T1.sides = 'double' GROUP BY T1.train_id)as T | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many eastbound trains have rectangular-shaped head cars? | SELECT COUNT(T.train_id) FROM (SELECT T1.train_id FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T2.direction = 'east' AND T1.shape = 'rectangle' GROUP BY T1.train_id)as T | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Among the trains running west, how many trains have no more than one car with an open roof? | SELECT SUM(CASE WHEN T1.direction = 'west' THEN 1 ELSE 0 END)as count FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) FROM cars WHERE roof = 'none' GROUP BY train_id HAVING COUNT(id) = 1 ) AS T2 ON T1.id = T2.train_id | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | Which direction does the majority of the trains that have 3 cars are running? | SELECT T1.direction FROM trains AS T1 INNER JOIN ( SELECT train_id, COUNT(id) AS carsNum FROM cars GROUP BY train_id HAVING carsNum = 3 ) AS T2 ON T1.id = T2.train_id GROUP BY T1.direction | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many trains with fully loaded head cars are running east? | SELECT COUNT(DISTINCT T1.train_id) FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 1 AND T1.load_num = 3 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | How many cars running east have double-sided tail cars? | SELECT COUNT(T1.id) FROM trains AS T1 INNER JOIN cars AS T2 ON T1.id = T2.train_id INNER JOIN ( SELECT train_id, MAX(position) AS trailPosi FROM cars GROUP BY train_id ) AS T3 ON T1.id = T3.train_id WHERE T1.direction = 'east' AND T2.position = T3.trailPosi AND T2.sides = 'double' | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | List all the directions of the trains that have empty cars. | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.load_num = 0 | bird |
CREATE TABLE trains (id integer, train_id integer, position integer, shape text, len text, sides text, roof text, wheels integer, load_shape text, load_num integer, id integer, direction text) | What is the direction of the train with a diamond-shaped load in its 2nd car? | SELECT T2.direction FROM cars AS T1 INNER JOIN trains AS T2 ON T1.train_id = T2.id WHERE T1.position = 2 AND T1.shape = 'diamond' | bird |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.