Chinastark/bird_dataset huggingface dataset:
Database: codebase_comments
Note: English language refers to lang = 'en'; the comments for this method is XML format refers to commentisxml = 1;
Question: How many English language codes whose comments for the method are in the XML format?
SQL: SELECT count(lang) FROM METHOD WHERE lang = 'en' AND commentisxml = 1
Database: codebase_comments
Note: 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';
Question: What is the task of the method whose tokenized name is "online median filter test median window filling"?
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
Note: highest sampling time refers to max(sampledat); id number of the solution refers to solutionid;
Question: What is the time of sampling of the solution with the highest sampling time? Indicate the id number of the solution.
SQL: SELECT DISTINCT sampledat, solutionid FROM METHOD WHERE sampledat = ( SELECT max(sampledat) FROM METHOD )
Database: codebase_comments
Note: 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;
Question: How many followers do the most followed repository on Github have? Give the github address of the repository.
SQL: SELECT forks, url FROM repo WHERE forks = ( SELECT max(forks) FROM repo )
Database: codebase_comments
Note: highest number of solution path refers to max(count(path)); id of the repository refers to repoid;
Question: What is the id of the repository with the highest number of solution path?
SQL: SELECT repoid FROM solution GROUP BY repoid ORDER BY count(PATH) DESC LIMIT 1
Database: codebase_comments
Note: more stars mean more people like this repository; most liked refers to max(stars); the github address of repository refers to url;
Question: What is the most liked repository? Indicate its github address and the amount of stars it has received.
SQL: SELECT url, stars FROM repo WHERE stars = ( SELECT max(stars) FROM repo )
Database: codebase_comments
Note: highest processed time refers to max(processedtime);
Question: What is the name of the solution path with the highest processed time?
SQL: SELECT PATH FROM solution WHERE processedtime = ( SELECT max(processedtime) FROM solution )
Database: codebase_comments
Note: more watchers mean that this repository is more popular;
Question: How much is the processed time of downloading the most popular repository?
SQL: SELECT processedtime FROM repo WHERE watchers = ( SELECT max(watchers) FROM repo )
Database: codebase_comments
Note: github address of repository refers to url;
Question: What is the github address of the "nofear_Mara\Mara.sln" solution path?
SQL: SELECT url FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE PATH = 'nofear_MaraMara.sln'
Database: codebase_comments
Note: longest amount of processed time refers to max(processedtime); the repository can be implemented without needs of compilation refers to wascompiled = 1;
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.
SQL: SELECT DISTINCT repo.id, solution.wascompiled FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.processedtime = ( SELECT max(processedtime) FROM repo )
Database: codebase_comments
Note: tokenized name refers to nametokenized;
Question: What is the tokenized name of the solution whose path is "maravillas_linq-to-delicious\tasty.sln"?
SQL: SELECT DISTINCT METHOD.nametokenized FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE solution.path = 'maravillas_linq-to-delicious'
Database: codebase_comments
Note: stars between 6,000 to 9,000; highest number of solution paths refers to max(count(path)); needs to be compiled if user wants to implement it refers to wascompiled = 0;
Question: Among the repositories whose number of stars received are between 6,000 to 9,000, which repository has the highest number of solution paths and many of those solution paths needs to be compiled if user wants to implement it?
SQL: SELECT solution.repoid, count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars BETWEEN 6000 AND 9000 AND solution.wascompiled = 0 GROUP BY solution.repoid ORDER BY count(solution.repoid) DESC LIMIT 1
Database: codebase_comments
Note: linearized sequenced of API calls refers to apicalls; 'https://github.com/wallerdev/htmlsharp.git' is url of repository;
Question: In the "https://github.com/wallerdev/htmlsharp.git", give all the linearized sequenced of API calls.
SQL: SELECT METHOD.apicalls FROM repo INNER JOIN solution ON repo.id = solution.repoid INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE repo.url = 'https://github.com/wallerdev/htmlsharp.git'
Database: codebase_comments
Note: more watchers mean that this repository is more popular; most popular repository refers to max(watchers);
Question: How many solution paths are there inside the 2nd most popular repository?
SQL: SELECT count(DISTINCT solution.path) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.watchers = ( SELECT watchers FROM repo ORDER BY watchers DESC LIMIT 1, 1 )
Database: codebase_comments
Note: average processed time = avg(solution.processedtime);
Question: What is the average processed time of the solution paths inside the "https://github.com/zphingphong/DiscardCustomerApp.git"?
SQL: SELECT cast(sum(solution.processedtime) AS REAL) / count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.url = 'https://github.com/zphingphong/DiscardCustomerApp.git'
Database: codebase_comments
Question: What is the full comment on the method whose solution path is "bmatzelle_nini\Source\Nini.sln" with a tokenized name of "alias text add alias"?
SQL: SELECT METHOD.fullcomment FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE solution.path = 'bmatzelle_niniSourceNini.sln' AND METHOD.nametokenized = 'alias text add alias'
Database: codebase_comments
Note: linearized sequenced of API calls refers to apicalls;
Question: What is the linearized sequenced of API calls of the method whose solution path is "mauriciodeamorim_tdd.encontro2\Tdd.Encontro2.sln"?
SQL: SELECT METHOD.apicalls FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE solution.path = 'mauriciodeamorim_tdd.encontro2Tdd.Encontro2.sln'
Database: codebase_comments
Note: needs to be compiled if user wants to implement refers to wascompiled = 0; https://github.com/jeffdik/tachy.git is url of repository;
Question: How many solution paths that needs to be compiled if user wants to implement it in "https://github.com/jeffdik/tachy.git"?
SQL: SELECT count(solution.path) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.url = 'https://github.com/jeffdik/tachy.git' AND solution.wascompiled = 0
Database: codebase_comments
Note: language refers to lang;
Question: How much is the processed time of the method whose tokenized name is "about box1 dispose"? Indicate the language of the method.
SQL: SELECT DISTINCT solution.processedtime, METHOD.lang FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.nametokenized = 'about box1 dispose'
Database: codebase_comments
Note: the time of sampling refers to sampledat; 'maxild_playground\Playground.sln' is the path of a solution;
Question: In "maxild_playground\Playground.sln", what is the time of sampling for the method "GitHubRepo.Cli.GitHubClientWrapper.GetReleases"?
SQL: SELECT METHOD.sampledat FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE solution.path = 'maxild_playgroundPlayground.sln' AND METHOD.name = 'GitHubRepo.Cli.GitHubClientWrapper.GetReleases'
Database: codebase_comments
Note: language refers to lang;
Question: What is the language of the method used in the solution path "opendns_diagnosticapp\windows\OpenDnsDiagnostic.sln"?
SQL: SELECT METHOD.lang FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE solution.path = 'opendns_diagnosticappwindowsOpenDnsDiagnostic.sln'
Database: codebase_comments
Note: 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';
Question: What's the task of the method whose tokenized name is "html parser feed"?
SQL: SELECT substr(substr(name, instr(name, '.') + 1), 1, instr(substr(name, instr(name, '.') + 1), '.') - 1) task FROM METHOD WHERE nametokenized = 'html parser feed'
Database: codebase_comments
Note: the comment for this method is not XML refers to CommentsXML = 0; the comments for this method is XML refers to CommentsXML = 1;
Question: Are the comments for the method "HtmlSharp.HtmlParser.Feed" in XML format?
SQL: SELECT CASE WHEN commentisxml = 0 THEN 'No' WHEN commentisxml = 1 THEN 'Yes' END isxmlformat FROM METHOD WHERE name = 'HtmlSharp.HtmlParser.Feed'
Database: codebase_comments
Question: Which method has the summary "Write a command to the log"?
SQL: SELECT name FROM METHOD WHERE SUMMARY = 'Write a command to the log'
Database: codebase_comments
Note: more stars mean more people like this repository; most people like refers to max(stars);
Question: How many solutions contain files found within the repository most people like?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars = ( SELECT max(stars) FROM repo )
Database: codebase_comments
Note: more stars mean more people like this repository; most people like refers to max(stars);
Question: Please list the path of the solution that contains files found within the repository most people like.
SQL: SELECT DISTINCT solution.path FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars = ( SELECT max(stars) FROM repo )
Database: codebase_comments
Note: github address refers to url;
Question: What is the github address of the repository that contains files used by solution ID12?
SQL: SELECT repo.url FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.id = 12
Database: codebase_comments
Note: followed by over 1000 people refers to forks >1000; can be implemented without needs of compilation refers to wascompiled = 1;
Question: Among the solutions that contain files within the repository followed by over 1000 people, how many of them can be implemented without needs of compilation?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.forks > 1000 AND solution.wascompiled = 1
Database: codebase_comments
Note: more watchers mean that this repository is more popular;
Question: Which solution contains files within a more popular repository, the solution ID18 or solution ID19?
SQL: SELECT CASE WHEN sum(CASE WHEN solution.id = 18 THEN repo.watchers ELSE 0 END) > sum(CASE WHEN solution.id = 19 THEN repo.watchers ELSE 0 END) THEN 'SolutionID18' WHEN sum(CASE WHEN solution.id = 18 THEN repo.watchers ELSE 0 END) < sum(CASE WHEN solution.id = 19 THEN repo.watchers ELSE 0 END) THEN 'SolutionID19' END ismorepopular FROM repo INNER JOIN solution ON repo.id = solution.repoid
Database: codebase_comments
Note: longest processed time refers to max(solution.processedtime); needs to be compiled if user wants to implement it refers to wascompiled = 0；;
Question: Among the solutions that contain files within the repository needing the longest processed time to download, how many of them doesn't need to be compiled if user wants to implement it?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.processedtime = ( SELECT max(processedtime) FROM repo ) AND solution.wascompiled = 1
Database: codebase_comments
Question: What is the processed time to download the repository whose files are contained in the solution with the path "jeffdik_tachy\src\Tachy.sln".
SQL: SELECT DISTINCT solution.processedtime FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.path = 'jeffdik_tachysrcTachy.sln'
Database: codebase_comments
Question: Please give the url of the repository whose files are contained in solution ID 9?
SQL: SELECT repo.url FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.id = 9
Database: codebase_comments
Question: Please list all the paths of the solutions containing files within the repository whose url is "https://github.com/maxild/playground.git".
SQL: SELECT solution.path FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.url = 'https://github.com/maxild/playground.git'
Database: codebase_comments
Note: over 200 likes refers to stars > 200; processedtime<636439500080712000;
Question: Among the repositories with over 200 likes, how many of them have files contained by solutions with a processed time of under 636439500080712000?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.processedtime < 636439500080712000 AND repo.stars > 200
Database: codebase_comments
Note: more forks refers to more people follow this repository;
Question: Please list the IDs of the solutions that contain files within the top 3 followed repositories.
SQL: SELECT solution.id FROM repo INNER JOIN solution ON repo.id = solution.repoid ORDER BY repo.forks DESC LIMIT 3
Database: codebase_comments
Note: average time = avg(processedtime)；;
Question: What is the average time needed for the solutions containing files within the repository whose url is "https://github.com/jeffdik/tachy.git" to be processd?
SQL: SELECT cast(sum(solution.processedtime) AS REAL) / count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.url = 'https://github.com/jeffdik/tachy.git'
Database: codebase_comments
Note: followers refers to forks; percentage = divide(SUBTRACT(forks(solution.id = 18), forks(solution.id = 19)), forks(solution.id = 19))*100%;
Question: How many more followers in percentage are there for the repository used by solution ID 18 than solution ID19?
SQL: SELECT cast((sum(CASE WHEN solution.id = 18 THEN repo.forks ELSE 0 END) - sum(CASE WHEN solution.id = 19 THEN repo.forks ELSE 0 END)) AS REAL) * 100 / sum(CASE WHEN solution.id = 19 THEN repo.forks ELSE 0 END) FROM repo INNER JOIN solution ON repo.id = solution.repoid
Database: codebase_comments
Note: language refers to lang；;
Question: What is the language of the method ''PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn"?
SQL: SELECT lang FROM METHOD WHERE name = 'PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn'
Database: codebase_comments
Question: Show the full Comment of the method "DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows".
SQL: SELECT fullcomment FROM METHOD WHERE name = 'DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows'
Database: codebase_comments
Question: List the summary of the method "Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection".
SQL: SELECT DISTINCT SUMMARY FROM METHOD WHERE name = 'Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection'
Database: codebase_comments
Question: Give the tokenized name for the method "Supay.Irc.Messages.KnockMessage.GetTokens".
SQL: SELECT nametokenized FROM METHOD WHERE name = 'Supay.Irc.Messages.KnockMessage.GetTokens'
Database: codebase_comments
Note: repository of solution no. refers to id;
Question: How many stars does the repository of the solution No. 45997 have?
SQL: SELECT repo.stars FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.id = 45997
Database: codebase_comments
Note: repository refers to repo.id;
Question: For the repository which got '8094' Stars, how many solutions does it contain?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars = 8094
Database: codebase_comments
Note: solution path refers to path; method refers to name; name = 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally';
Question: What is the solution path for the method "IQ.Data.DbQueryProvider.CanBeEvaluatedLocally"?
SQL: SELECT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.name = 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'
Database: codebase_comments
Note: tokenized name refers to nametokenized; nametokenized = 'interp parser expr'; processed time for its solution refers to processedtime;
Question: For the method which got the tokenized name as 'interp parser expr', what is the processed time for its solution?
SQL: SELECT solution.processedtime FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.nametokenized = 'interp parser expr'
Database: codebase_comments
Note: repository number refers to repoid; method refers to name; name = ‘SCore.Poisson.ngtIndex’;
Question: What is the repository number for the solution of method "SCore.Poisson.ngtIndex"?
SQL: SELECT solution.repoid FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.name = 'SCore.Poisson.ngtIndex'
Database: codebase_comments
Note: path of the solution refers to path; method refers to name; name = 'ExportToRTF.RTFStyleSheet.H6Write';
Question: Tell the path of the solution for the method "ExportToRTF.RTFStyleSheet.H6Write".
SQL: SELECT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.name = 'ExportToRTF.RTFStyleSheet.H6Write'
Database: codebase_comments
Note: repository refers to repo.id and repoid; solutions a repository contains refers to solution.id;
Question: For the repository with '8094' watchers , how many solutions does it contain?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.watchers = 8094
Database: codebase_comments
Note: repository url refers to url; repository url with most solutions refers to MAX(COUNT(solution.id));
Question: Give the repository Url of the one with most solutions.
SQL: SELECT repo.url FROM repo INNER JOIN solution ON repo.id = solution.repoid GROUP BY solution.repoid ORDER BY count(solution.repoid) DESC LIMIT 1
Database: codebase_comments
Note: solutions refers to solution.id; repository refers to repository.id;
Question: How many solutions does the repository which has 1445 Forks contain?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.forks = 1445
Database: codebase_comments
Note: solution refers to solutionid; zh-cn refers to lang = 'zh-cn'; path that is most often used refers to MAX(COUNT(path));
Question: Among all the solution of the 'zh-cn' methods, which path is most often used?
SQL: SELECT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.lang = 'zh-cn' GROUP BY solution.path ORDER BY count(solution.path) DESC LIMIT 1
Database: codebase_comments
Note: number of watchers refers to watchers; solution number refers to solution.id;
Question: Give the number of watchers that the repository of the solution No. 338082 have.
SQL: SELECT repo.watchers FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE solution.id = 338082
Database: codebase_comments
Note: repository refers to repository.id; solution needs to be compiled refers to wascompiled = 0;
Question: For the repository which got '189' Stars, how many solutions which needs to be compiled does it contain?
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars = 189 AND solution.wascompiled = 0
Database: codebase_comments
Note: solution path refers to path; method refers to name; name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy';
Question: Show the solution path for the method "Mosa.Platform.x86.Instructions.IMul.EmitLegacy"?
SQL: SELECT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy'
Database: codebase_comments
Note: tokenized name refers to nametokenized; nametokenized = 't jadwal entity get single mpic'; path time for its solution refers to processedtime;
Question: For the method which got the tokenized name as 't jadwal entity get single mpic', what is the path time for its solution?
SQL: SELECT DISTINCT solution.processedtime FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.nametokenized = 't jadwal entity get single mpic'
Database: codebase_comments
Note: repository id refers to repoid; method refers to name; name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal';
Question: Give the repository ID for the solution of method "Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal".
SQL: SELECT DISTINCT solution.repoid FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal'
Database: codebase_comments
Note: solution path refers to path;
Question: For the method has the summary of "Refetches the Entity from the persistent storage. Refetch is used to re-load an Entity which is marked "Out-of-sync", due to a save action. Refetching an empty Entity has no effect.", what is its solution path?
SQL: SELECT DISTINCT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.summary = 'Refetches the Entity FROM the persistent storage. Refetch is used to re-load an Entity which is marked "Out-of-sync", due to a save action. Refetching an empty Entity has no effect.'
Database: codebase_comments
Note: solutions refers to solution.id; repository refers to repository.id;
Question: Give the number of solutions that the repository which has 3060 Stars contains.
SQL: SELECT count(solution.repoid) FROM repo INNER JOIN solution ON repo.id = solution.repoid WHERE repo.stars = 3060
Database: codebase_comments
Note: solution refers to solutionid; sw refers to lang = 'sw'; solution with the most 'sw' methods refers to MAX(COUNT(lang = 'sw'));
Question: For the solution of the most 'sw' methods, what is its path?
SQL: SELECT DISTINCT solution.path FROM solution INNER JOIN METHOD ON solution.id = METHOD.solutionid WHERE METHOD.lang = 'sw'
Database: codebase_comments
Note: solution No. refers to solution.id; percentage = DIVidE(MULTIPLY(SUBTRACT(SUM(solution.id = 83855), SUM(solution.id = 1502)), 100)), SUM(Soltution.id = 1502);
Question: How many percent more of the watchers for the repository of solution No.83855 than No.1502?
SQL: SELECT cast(sum(CASE WHEN solution.id = 83855 THEN repo.watchers ELSE 0 END) - sum(CASE WHEN solution.id = 1502 THEN repo.watchers ELSE 0 END) AS REAL) * 100 / sum(CASE WHEN solution.id = 1502 THEN repo.watchers ELSE 0 END) FROM repo INNER JOIN solution ON repo.id = solution.repoid
Database: codebase_comments
Note: solution No. refers to solution.id; percentage = DIVidE(MULTIPLY(SUBTRACT(SUM(solution.id = 51424), SUM(solution.id = 167053)), 100)), SUM(solution.id = 167053);
Question: How many percent more of the stars for the repository of solution No.51424 than No.167053?
SQL: SELECT cast(sum(CASE WHEN solution.id = 51424 THEN repo.stars ELSE 0 END) - sum(CASE WHEN solution.id = 167053 THEN repo.stars ELSE 0 END) AS REAL) * 100 / sum(CASE WHEN solution.id = 167053 THEN repo.stars ELSE 0 END) FROM repo INNER JOIN solution ON repo.id = solution.repoid