input
stringlengths 358
16.1k
| output
stringlengths 24
805
|
---|---|
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please list the IDs of the solutions that contain files within the top 3 followed repositories. [/INST] | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId ORDER BY T1.Forks DESC LIMIT 3; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following 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? [/INST] | SELECT CAST(SUM(T2.ProcessedTime) AS REAL) / COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Url = 'https://github.com/jeffdik/tachy.git'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many more followers in percentage are there for the repository used by solution ID 18 than solution ID19? [/INST] | SELECT CAST((SUM(CASE WHEN T2.Id = 18 THEN T1.Forks ELSE 0 END) - SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END)) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 19 THEN T1.Forks ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the language of the method ''PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn"? [/INST] | SELECT Lang FROM Method WHERE Name = 'PixieTests.SqlConnectionLayerTests.TestSqlCreateGuidColumn'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Show the full Comment of the method "DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows". [/INST] | SELECT FullComment FROM Method WHERE Name = 'DE2_UE_Fahrradkurier.de2_uebung_fahrradkurierDataSet1TableAdapters.TableAdapterManager.UpdateInsertedRows'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List the summary of the method "Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection". [/INST] | SELECT DISTINCT Summary FROM Method WHERE Name = 'Castle.MonoRail.Framework.Test.StubViewComponentContext.RenderSection'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Give the tokenized name for the method "Supay.Irc.Messages.KnockMessage.GetTokens". [/INST] | SELECT NameTokenized FROM Method WHERE Name = 'Supay.Irc.Messages.KnockMessage.GetTokens'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many stars does the repository of the solution No. 45997 have? [/INST] | SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 45997; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the repository which got '8094' Stars, how many solutions does it contain? [/INST] | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 8094; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the solution path for the method "IQ.Data.DbQueryProvider.CanBeEvaluatedLocally"? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'IQ.Data.DbQueryProvider.CanBeEvaluatedLocally'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the method which got the tokenized name as 'interp parser expr', what is the processed time for its solution? [/INST] | SELECT T1.ProcessedTime FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'interp parser expr'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the repository number for the solution of method "SCore.Poisson.ngtIndex"? [/INST] | SELECT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'SCore.Poisson.ngtIndex'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Tell the path of the solution for the method "ExportToRTF.RTFStyleSheet.H6Write". [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'ExportToRTF.RTFStyleSheet.H6Write'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the repository with '8094' watchers , how many solutions does it contain? [/INST] | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Watchers = 8094; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Give the repository Url of the one with most solutions. [/INST] | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId GROUP BY T2.RepoId ORDER BY COUNT(T2.RepoId) DESC LIMIT 1; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many solutions does the repository which has 1445 Forks contain? [/INST] | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 1445; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Among all the solution of the 'zh-cn' methods, which path is most often used? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'zh-cn' GROUP BY T1.Path ORDER BY COUNT(T1.Path) DESC LIMIT 1; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Give the number of watchers that the repository of the solution No. 338082 have. [/INST] | SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 338082; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the repository which got '189' Stars, how many solutions which needs to be compiled does it contain? [/INST] | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 189 AND T2.WasCompiled = 0; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Show the solution path for the method "Mosa.Platform.x86.Instructions.IMul.EmitLegacy"? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Mosa.Platform.x86.Instructions.IMul.EmitLegacy'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the method which got the tokenized name as 't jadwal entity get single mpic', what is the path time for its solution? [/INST] | SELECT DISTINCT T1.ProcessedTime FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 't jadwal entity get single mpic'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Give the repository ID for the solution of method "Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal". [/INST] | SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'Kalibrasi.Data.EntityClasses.THistoryJadwalEntity.GetSingleTjadwal'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following 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? [/INST] | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.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.'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Give the number of solutions that the repository which has 3060 Stars contains. [/INST] | SELECT COUNT(T2.RepoId) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Stars = 3060; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: For the solution of the most 'sw' methods, what is its path? [/INST] | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'sw'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many percent more of the watchers for the repository of solution No.83855 than No.1502? [/INST] | SELECT CAST(SUM(CASE WHEN T2.Id = 83855 THEN T1.Watchers ELSE 0 END) - SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) AS REAL) * 100 / SUM(CASE WHEN T2.Id = 1502 THEN T1.Watchers ELSE 0 END) FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many percent more of the stars for the repository of solution No.51424 than No.167053? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many percent more of the Forks for the repository of solution No.53546 than No.1502? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the methods with a solution with a "636449700980488000" processed time. [/INST] | SELECT DISTINCT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.ProcessedTime = 636449700980488000; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many solutions are in "https://github.com/derickbailey/presentations-and-training.git"? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the total processed time of all solutions from the repository with the most forks? [/INST] | 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 ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the path of solution from all the "it" lang code method. [/INST] | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'it'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the path of solution of "spinachLexer.mT__55" method? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'spinachLexer.mT__55'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What are the "en" methods with solutions from repository "1093" [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What are the paths of solutions in repository "https://github.com/ecoffey/Bebop.git" [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the ids of repositories for solutions with "ro" methods. [/INST] | SELECT DISTINCT T1.RepoId FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Lang = 'ro'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the repository id of the method with tokenized name "crc parameters get hash code"? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many methods with solutions with path 'maravillas_linq-to-delicious\tasty.sln'? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the solutions ids of the repository with "636430969128176000" processed time [/INST] | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.ProcessedTime = 636430969128176000; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the url for repository that has the longest processed time solution? [/INST] | 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 ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the solutions of repositories with the Forks higher than half of the watchers. [/INST] | SELECT DISTINCT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks > T1.Watchers / 2; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the percentage of Forks to Stars of repository for solution "104086"? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the id of the respository that the most people like. [/INST] | SELECT Id FROM Repo WHERE Stars = ( SELECT MAX(Stars) FROM Repo ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the solution's path of method "HtmlSharp.HtmlParser.Feed"? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Name = 'HtmlSharp.HtmlParser.Feed'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the number of forks that the repository of the solution 35 have. [/INST] | SELECT T1.Forks FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 35; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the id of the solution whose repository has the most watchers. [/INST] | 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 ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the number of stars that the repository of the solution 20 have. [/INST] | SELECT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 20; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many methods does solution 1 have? And please tell me if solution 1 needs to be compiled. [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the percentage of the methods' solutions that need to be compiled among the methods whose comments is XML format? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please list the names of methods with the solution path "wallerdev_htmlsharp\HtmlSharp.sln". [/INST] | SELECT T2.Name FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'wallerdev_htmlsharpHtmlSharp.sln'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the percentage of respositories that receive more than 2,000 stars? [/INST] | SELECT CAST(SUM(CASE WHEN Stars > 2000 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Stars) FROM Repo; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the url of solution 1? [/INST] | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Id = 1; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the id of the respository that received the most forks among the respositories that receive 21 stars. [/INST] | SELECT Id FROM Repo WHERE Stars = 21 AND Forks = ( SELECT MAX(Forks) FROM Repo WHERE Stars = 21 ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What the percentage of the english methods among the methods whose comments is XML format? [/INST] | SELECT CAST(SUM(CASE WHEN Lang = 'en' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(Name) FROM Method WHERE CommentIsXml = 1; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the path of solution of method whose tokenized name is html parser feed. [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'html parser feed'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the solution id of the respository among the respository that receive 238 forks. [/INST] | SELECT T2.Id FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T1.Forks = 238; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Among the english methods,please list the tokenized names of methods whose solutions need to be compiled. [/INST] | SELECT NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE Lang = 'en' AND WasCompiled = 0; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many solutions whose repository's stars are a third more than forks? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide the path of solution of method whose full comment is Feeds data into the parser. [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Among the repository "3", how many methods whose comments is XML format? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the percentage of solutions for the method that needs to be compiled in the English methods? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many more stars in percentage are there for the repository of solution "1" than solution "2"? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many solutions are there whose respositories received the number of stars more than one third of the number of forks? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the task of method number 2? [/INST] | SELECT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Id = 2; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What format does the method number 8's comment have? [/INST] | SELECT CASE WHEN CommentIsXml = 0 THEN 'isNotXMLFormat' WHEN CommentIsXml = 1 THEN 'isXMLFormat' END format FROM Method WHERE Id = 8; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please provide a link to the most well-known repository's Github address. [/INST] | SELECT Url FROM Repo WHERE Watchers = ( SELECT MAX(Watchers) FROM Repo ); |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the task of the method that is in the Czech language? [/INST] | SELECT DISTINCT SUBSTR(SUBSTR(Name, INSTR(Name, '.') + 1), 1, INSTR(SUBSTR(Name, INSTR(Name, '.') + 1), '.') - 1) task FROM Method WHERE Lang = 'cs'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the solution path for method number 3? [/INST] | SELECT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 3; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the language of method number 28 that can be found in the repository number 3? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is solution 1's processing time and how many methods have been using this solution? [/INST] | SELECT T1.ProcessedTime, COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SolutionId = 1; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many methods in the same repository share a tokenized name that begins with "query language..."? [/INST] | SELECT COUNT(T2.SolutionId) FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized LIKE 'query language%'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Please state the API calls for method number 10 and its intended course of action. [/INST] | SELECT T2.ApiCalls, T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.Id = 10; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many methods in repository 150 did not have a comment and a summary? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the comment format of method number 50 with the solution path "managedfusion_managedfusion\ManagedFusion.sln"? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the task method of the tokenized name "string extensions to pascal case
"? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Provide the tokenized name of the method "Sky.Excel.ExcelBook.TypeConvert". [/INST] | SELECT NameTokenized FROM Method WHERE Name = 'Sky.Excel.ExcelBook.TypeConvert'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many path does the github address "https://github.com/jeffdik/tachy.git" have? [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many watchers does the path "maff_se3ue7\US7.sln" have? [/INST] | SELECT T1.Watchers FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'maff_se3ue7US7.sln'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List 5 github address that the solutions can be implemented without the need of compilation. [/INST] | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.WasCompiled = 1 LIMIT 5; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What are the solution path of the tokenized name "matrix multiply"? [/INST] | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.NameTokenized = 'matrix multiply'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many XML format does the github address "https://github.com/dogeth/vss2git.git" have? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List 5 solution path that has sampling time of 636431758961741000. [/INST] | SELECT DISTINCT T1.Path FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T2.SampledAt = 636431758961741000 LIMIT 5; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the github address of the solution path "joeyrobert_bloomfilter\DataTypes.BloomFilter.sln"? [/INST] | SELECT T1.Url FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'joeyrobert_bloomfilterDataTypes.BloomFilter.sln'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the method name of the solution path "graffen_NLog.Targets.Syslog\src\NLog.Targets.Syslog.sln
". [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: List all the tokenized name of the solution path "jurney_P4Backup\P4Backup\P4Backup.sln
". [/INST] | SELECT DISTINCT T2.NameTokenized FROM Solution AS T1 INNER JOIN Method AS T2 ON T1.Id = T2.SolutionId WHERE T1.Path = 'jurney_P4BackupP4BackupP4Backup.sln'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: Provide the github address with the summary of method "A test for Decompose
". [/INST] | 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'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many liked by people does the solution path "ninject_Ninject\Ninject.sln
" have? [/INST] | SELECT DISTINCT T1.Stars FROM Repo AS T1 INNER JOIN Solution AS T2 ON T1.Id = T2.RepoId WHERE T2.Path = 'ninject_NinjectNinject.sln'; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many solution path does the repository with 111 stars, 58 forks, and 111 watchers? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: What is the average processed time of the solution with a repository of 254 likes, 88 followers, and 254 watchers? [/INST] | 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; |
[INST] Here is a database schema:
Method :
Id [ INTEGER ] primary_key
Name [ TEXT ]
FullComment [ TEXT ]
Summary [ TEXT ]
ApiCalls [ TEXT ]
CommentIsXml [ INTEGER ]
SampledAt [ INTEGER ]
SolutionId [ INTEGER ]
Lang [ TEXT ]
NameTokenized [ TEXT ]
MethodParameter :
Id [ INTEGER ] primary_key
MethodId [ TEXT ]
Type [ TEXT ]
Name [ TEXT ]
Repo :
Id [ INTEGER ] primary_key
Url [ TEXT ]
Stars [ INTEGER ]
Forks [ INTEGER ]
Watchers [ INTEGER ]
ProcessedTime [ INTEGER ]
Solution :
Id [ INTEGER ] primary_key
RepoId [ INTEGER ]
Path [ TEXT ]
ProcessedTime [ INTEGER ]
WasCompiled [ INTEGER ]
Please write me a SQL statement that answers the following question: How many language code of method is used for the github address "https://github.com/managedfusion/managedfusion.git
"? [/INST] | 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'; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: How many trains are there that run in the east direction? [/INST] | SELECT COUNT(id) FROM trains WHERE direction = 'east'; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: How many cars are there on train no.1? [/INST] | SELECT COUNT(id) FROM cars WHERE train_id = 1; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: What is the shape of the tail car on train no.1? [/INST] | SELECT shape FROM cars WHERE train_id = 1 AND position = 4; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Please list the IDs of all the trains with at least one car in a non-regular shape. [/INST] | SELECT train_id FROM cars WHERE shape IN ('elipse', 'bucket') GROUP BY train_id; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: How many cars on train no.1 have the roof open? [/INST] | SELECT COUNT(id) FROM cars WHERE train_id = 1 AND roof = 'none'; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Please list the IDs of all the cars on train no.1 that have 2 wheels. [/INST] | SELECT id FROM cars WHERE train_id = 1 AND wheels = 2; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Among the trains that run in the east direction, how many of them have at least one car in a non-regular shape? [/INST] | 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'; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Please list the IDs of all the trains that run in the east direction and have less than 4 cars. [/INST] | 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; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Please list the IDs of all the cars with double sides on trains that run in the west direction. [/INST] | 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'; |
[INST] Here is a database schema:
cars :
id [ INTEGER ] primary_key
train_id [ INTEGER ] cars.train_id = trains.id
position [ INTEGER ]
shape [ TEXT ]
len [ TEXT ]
sides [ TEXT ]
roof [ TEXT ]
wheels [ INTEGER ]
load_shape [ TEXT ]
load_num [ INTEGER ]
trains :
id [ INTEGER ] primary_key
direction [ TEXT ]
Please write me a SQL statement that answers the following question: Among the trains that run in the east direction, how many of them have more than 2 long cars? [/INST] | 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'; |