db_id
stringclasses
11 values
instruction
stringlengths
1.63k
14k
role
stringclasses
45 values
policy
unknown
input
stringlengths
23
477
output
stringlengths
23
2.22k
difficulty
stringclasses
3 values
metadata
dict
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the average monthly number of links created in 2010 for posts that have no more than 2 answers?
SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'
moderate
{ "gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'", "permission": "allowed", "query_columns": { "posts": [ "AnswerCount", "Id" ], "postlinks": [ ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among the posts that were voted by user 1465, what is the id of the most valuable post?
SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1
simple
{ "gold_sql": "SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1", "permission": "allowed", "query_columns": { "posts": [ "FavoriteCount", "Id" ], "votes": [ "PostId", "UserId" ] }, "m...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the title of the post with the oldest post link?
SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1
simple
{ "gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1", "permission": "allowed", "query_columns": { "posts": [ "CreaionDate", "Id", "Title" ], "postlinks": [ "PostId" ] }, "missing_columns": {}, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the display name of the user who acquired the highest amount of badges?
SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T2.Id) DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T2.Id) DESC LIMIT 1", "permission": "allowed", "query_columns": { "badges": [ "Id", "UserId" ], "users": [ "DisplayName", "Id" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
When did 'chl' cast its first vote in a post?
SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1
simple
{ "gold_sql": "SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Id" ], "votes": [ "CreationDate", "UserId" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the date when the youngest user made his or her first post?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.CreaionDate FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Age IS NOT NULL ORDER BY T1.Age, T2.CreaionDate LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "OwnerUserId" ], "users": [ "Age", "Id"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the display name of the user who acquired the first Autobiographer badge?
SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.`Name` = 'Autobiographer' ORDER BY T2.Date ASC, T2.Id ASC LIMIT 1;
simple
{ "gold_sql": "SELECT T1.DisplayName \nFROM users AS T1 \nINNER JOIN badges AS T2 ON T1.Id = T2.UserId \nWHERE T2.`Name` = 'Autobiographer' \nORDER BY T2.Date ASC, T2.Id ASC \nLIMIT 1;", "permission": "allowed", "query_columns": { "badges": [ "Date", "Id", "Name", "UserId" ], "...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among the users located in United Kingdom, how many users whose post have a total favorite amount of 4 or more?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4", "permission": "denied", "query_columns": { "posts": [ "FavoriteCount", "OwnerUserId" ], "users": [ "Id", "Locati...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the average number of posts voted by the oldest users?
SELECT AVG(PostId) FROM votes WHERE UserId IN ( SELECT Id FROM users WHERE Age = ( SELECT MAX(Age) FROM users ) )
simple
{ "gold_sql": "SELECT AVG(PostId) FROM votes WHERE UserId IN ( SELECT Id FROM users WHERE Age = ( SELECT MAX(Age) FROM users ) )", "permission": "allowed", "query_columns": { "users": [ "Age", "Id" ], "votes": [ "PostId", "UserId" ] }, "missing_columns": {}, "reason":...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Who has the highest reputation? Please give the display name.
SELECT DisplayName FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Reputation" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 674, "...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many users whose reputations are higher than 2000 and the number of views is higher than 1000?
SELECT COUNT(id) FROM users WHERE Reputation > 2000 AND Views > 1000
simple
{ "gold_sql": "SELECT COUNT(id) FROM users WHERE Reputation > 2000 AND Views > 1000", "permission": "allowed", "query_columns": { "users": [ "Id", "Reputation" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 675, "evidence": "reputations are...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Please list all display names of users who are adults.
SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65", "permission": "allowed", "query_columns": { "users": [ "Age", "DisplayName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 676, "evidence": "adults refer to users wh...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many posts did Jay Stevens have in 2010?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' AND T1.DisplayName = 'Jay Stevens'", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "OwnerUserId" ], "users": [ "Di...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Which post by Harvey Motulsky has the most views? Please give the id and title of this post.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' ORDER BY T2.ViewCount DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId", "Title", "ViewCount" ], ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Which post has the highest score? Please give its id and title's name.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId ORDER BY T2.Score DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Score", "Title" ], "users": [ "Id" ] }, "missing_columns": { ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the average score of Stephen Turner's posts?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT AVG(T2.Score) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Stephen Turner'", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Score" ], "users": [ "DisplayName", "Id" ] }, "missing_c...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Please list the users' display names whose posts had over 20000 views in 2011.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2011' AND T2.ViewCount > 20000", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "OwnerUserId", "ViewCount" ], "users": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Which is the most valuable post in 2010? Please give its id and the owner's display name.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.OwnerUserId, T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' ORDER BY T2.FavoriteCount DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "FavoriteCount", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the percentage of posts whose owners had a reputation of over 1000 in 2011?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT \n (SUM(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011' AND T1.Reputation > 1000, 1, 0)) * 100.0) \n / COUNT(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011', 1, NULL))\nFROM users AS T1 \nINNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId", "permission": "denied", "query_columns": { "posts":...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the percentage of teenage users.
SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users
simple
{ "gold_sql": "SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users", "permission": "allowed", "query_columns": { "users": [ "Age", "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 684, "evidence": "tee...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.ViewCount, T3.DisplayName FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN users AS T3 ON T2.LastEditorUserId = T3.Id WHERE T1.Text = 'Computer Game Datasets'", "permission": "denied", "query_columns": { "posts": [ "Id", "LastEditorUserId", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the total number of posts with views above average.
SELECT COUNT(*) FROM posts WHERE ViewCount > (SELECT AVG(ViewCount) FROM posts)
simple
{ "gold_sql": "SELECT COUNT(*) \nFROM posts \nWHERE ViewCount > (SELECT AVG(ViewCount) FROM posts)", "permission": "allowed", "query_columns": { "posts": [ "ViewCount" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 686, "evidence": "views above a...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many comments were added to the post with the highest score?
SELECT T1.CommentCount FROM posts T1 WHERE T1.Score = (SELECT MAX(Score) FROM posts);
simple
{ "gold_sql": "SELECT T1.CommentCount\nFROM posts T1\nWHERE T1.Score = (SELECT MAX(Score) FROM posts);", "permission": "allowed", "query_columns": { "posts": [ "CommentCount", "Score" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 687, "evi...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the number of posts that have been viewed over 35000 times but have received no comments from other users.
SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0
simple
{ "gold_sql": "SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0", "permission": "allowed", "query_columns": { "posts": [ "CommentCount", "Id", "ViewCount" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 688, "ev...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the display name and location of the user, who was the last to edit the post with ID 183.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.DisplayName, T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Id = 183 ORDER BY T1.LastEditDate DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "Id", "LastEditDate", "OwnerUserId" ], "users": [ ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the latest badge awarded to the user with the display name Emmett.
SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1", "permission": "allowed", "query_columns": { "badges": [ "Date", "Name", "UserId" ], "users": [ "DisplayName", "Id" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the number of adult users who have cast over 5000 upvotes.
SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000", "permission": "allowed", "query_columns": { "users": [ "Age", "Id", "UpVotes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 691, "evidence": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How long did it take the user, known by his or her display name 'Zolomon' to get the badge? Count from the date the user's account was created.
SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'
moderate
{ "gold_sql": "SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'", "permission": "allowed", "query_columns": { "badges": [ "Date", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_colu...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the number of posts and comments left by the user, who has the latest created user account.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId" ],...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10", "permission": "denied", "query_columns": { "posts": [ "Id", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many users were awarded with 'Citizen Patrol' badge?
SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Citizen Patrol'
simple
{ "gold_sql": "SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Citizen Patrol'", "permission": "allowed", "query_columns": { "badges": [ "Name", "UserId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 695, "evidence": "'Citizen Patr...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Count the number of posts with a tag specified as 'careers'.
SELECT COUNT(Id) FROM tags WHERE TagName = 'careers'
simple
{ "gold_sql": "SELECT COUNT(Id) FROM tags WHERE TagName = 'careers'", "permission": "allowed", "query_columns": { "tags": [ "Id", "TagName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 696, "evidence": "tag specified as 'careers' refers t...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the reputation and view count of the user, who is known by his or her display name 'Jarrod Dixon'?
SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'
simple
{ "gold_sql": "SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Reputation" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 697, "evidence": "" }
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many comments and answers were left by the users on the post with the title 'Clustering 1D data'?
SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data';
simple
{ "gold_sql": "SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data';", "permission": "allowed", "query_columns": { "posts": [ "AnswerCount", "CommentCount", "Title" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
When did the user known as 'IrishStat' create his or her account?
SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'
simple
{ "gold_sql": "SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'", "permission": "allowed", "query_columns": { "users": [ "CreationDate", "DisplayName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 699, "evidence": "DisplayNam...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Identify the number of posts that offer a bounty amount over 30.
SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30;
simple
{ "gold_sql": "SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30;", "permission": "allowed", "query_columns": { "votes": [ "BountyAmount", "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 700, "evidence": "bounty amount over 30 refers...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among all the posts posted by the most influential user, identify the percentage with a score above 50.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.Score > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId INNER JOIN ( SELECT MAX(Reputation) AS max_reputation FROM users ) T3 ON T1.Reputation = T3.max_reputation", "permission": "denied", "query_columns": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
How many posts have a score less than 20?
SELECT COUNT(id) FROM posts WHERE Score < 20
simple
{ "gold_sql": "SELECT COUNT(id) FROM posts WHERE Score < 20", "permission": "allowed", "query_columns": { "posts": [ "Id", "Score" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 702, "evidence": "score less than 20 refers to Score < 20;" }
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among the tags with tag ID below 15, how many of them have 20 count of posts and below?
SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15
simple
{ "gold_sql": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15", "permission": "allowed", "query_columns": { "tags": [ "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 703, "evidence": "ID below 15 refers to Id < 15; have 20 count of ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the excerpt post ID and wiki post ID of the tag named sample?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'", "permission": "denied", "query_columns": { "tags": [ "ExcerptPostId", "TagName", "WikiPostId" ] }, "missing_columns": { "tags": [ "ExcerptPostId", "WikiPostId" ] }, "reason": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Give the user's reputation and up vote number of the user that commented "fine, you win :)".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'", "permission": "denied", "query_columns": { "users": [ "Id", "Reputation", "UpVotes" ], "comments": [ "Text", "UserId" ]...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Give the texts commented on the post about linear regression.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'", "permission": "denied", "query_columns": { "posts": [ "Id", "Title" ], "comments": [ "PostId", "Text" ] }, "missing_columns": { ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among the posts with views ranging from 100 to 150, what is the comment with the highest score?
SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1
moderate
{ "gold_sql": "SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1", "permission": "allowed", "query_columns": { "posts": [ "Id", "Score", "ViewCount" ], "comments": [ "PostId" ] }, "missing_...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
List the creation date and age of the user that commented with webiste.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%'", "permission": "denied", "query_columns": { "users": [ "Age", "CreationDate", "Id" ], "comments": [ "UserId", "text" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
In comments with 0 score, how many of the posts have view count lower than 5?
SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T1.Score = 0
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T1.Score = 0", "permission": "allowed", "query_columns": { "posts": [ "Id", "ViewCount" ], "comments": [ "PostId", "Score" ] }, "missin...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
In posts with 1 comment, how many of the comments have 0 score?
SELECT COUNT(T1.id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.CommentCount = 1 AND T1.Score = 0;
simple
{ "gold_sql": "SELECT COUNT(T1.id)\nFROM comments AS T1\nINNER JOIN posts AS T2 ON T1.PostId = T2.Id\nWHERE T2.CommentCount = 1 AND T1.Score = 0;", "permission": "allowed", "query_columns": { "posts": [ "CommentCount", "Id" ], "comments": [ "PostId", "Score", "id" ] ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among product comments with 0 score, what is the total number of users aged 40 years old?
SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score = 0 AND T2.Age = 40;
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.Id)\nFROM comments AS T1\nINNER JOIN users AS T2 ON T1.UserId = T2.Id\nWHERE T1.Score = 0 AND T2.Age = 40;", "permission": "allowed", "query_columns": { "users": [ "Age", "Id" ], "comments": [ "Score", "UserId" ] }, "missing_colum...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item'", "permission": "denied", "query_columns": { "posts": [ "Id", "Title" ], "comments": [ "PostId", "Text" ] ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
What is the up vote number of the user that commented "R is also lazy evaluated."?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'R is also lazy evaluated.'", "permission": "denied", "query_columns": { "users": [ "Id", "UpVotes" ], "comments": [ "Text", "UserId" ] }, "missing_columns":...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
List the comments commented by the user with a username of Harvey Motulsky.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'", "permission": "denied", "query_columns": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns": {...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
In comments with score between 1 to 5, list down the display names of the users with 0 down votes.
SELECT DISTINCT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0
simple
{ "gold_sql": "SELECT DISTINCT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "DownVotes", "Id" ], "comments": [ "Score", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
ContentAnalyst
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Score", "CreationDate", "UserId" ], "postHistory": [ "Id", "PostHistoryTypeId", "PostId", "CreationDate", "UserId" ], "postLinks": [ "Id", "CreationDate", "Pos...
Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?
SELECT CAST(COUNT(DISTINCT CASE WHEN T1.UpVotes = 0 THEN T1.Id END) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10
moderate
{ "gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.UpVotes = 0 THEN T1.Id END) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10", "permission": "allowed", "query_columns": { "users": [ "Id", "UpVotes" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Which user has a higher reputation, Harlan or Jarrod Dixon?
SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Reputation" ] }, "mis...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Please list the display names of all the users whose accounts were created in the year 2011.
SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'", "permission": "allowed", "query_columns": { "users": [ "CreationDate", "DisplayName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 532, "evidence": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many users last accessed the website after 2014/9/1?
SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'", "permission": "allowed", "query_columns": { "users": [ "Id", "LastAccessDate" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 533, "evidence": "last acces...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the display name of the user who has the most number of views?
SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )", "permission": "allowed", "query_columns": { "users": [ "DisplayName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 534, "evidence": "user who has the m...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes?
SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1", "permission": "allowed", "query_columns": { "users": [ "DownVotes", "Id", "UpVotes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 535, "evidence": "mo...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many users with more than 10 views created their account after the year 2013?
SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10
simple
{ "gold_sql": "SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10", "permission": "allowed", "query_columns": { "users": [ "CreationDate", "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 536, "evidenc...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many posts does the user csgillespie own?
SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
simple
{ "gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId", "id" ], "users": [ "DisplayName", "Id" ] }, "missing_columns...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Please list the titles of the posts owned by the user csgillespie?
SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
simple
{ "gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "DisplayName", "Id" ] }, "missing_columns"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Who is the owner of the post "Eliciting priors from experts"?
SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'
simple
{ "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "DisplayName", "Id" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the title of the post that is owned by csgillespie and has the highest popularity?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' ORDER BY T1.ViewCount DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Title", "ViewCount" ], "users": [ "Di...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the display name of the user who is the owner of the most valuable post?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "FavoriteCount", "OwnerUserId" ], "users": [ "DisplayName", "Id" ] }, "m...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the total number of comments of all the posts owned by csgillespie?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T1.CommentCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "denied", "query_columns": { "posts": [ "CommentCount", "OwnerUserId" ], "users": [ "DisplayName", "Id" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the post that got the most number of answers owned by csgillespie, how many answers did it get?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.AnswerCount \nFROM posts AS T1 \nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id \nWHERE T2.DisplayName = 'csgillespie' \nORDER BY T1.AnswerCount DESC, T1.Id ASC \nLIMIT 1", "permission": "denied", "query_columns": { "posts": [ "AnswerCount", "Id", "OwnerUserId" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'", "permission": "denied", "query_columns": { "posts": [ "LastEditorUserId", "Title" ], "users": [ ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the posts owned by csgillespie, how many of them are root posts?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.Id)\nFROM posts AS T1\nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id\nWHERE T2.DisplayName = 'csgillespie' AND T1.ParentId IS NULL;", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId", "ParentId" ], "users": [ "DisplayNa...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Please list the display names of all the users who owns a post that is well-finished.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL", "permission": "denied", "query_columns": { "posts": [ "ClosedDate", "OwnerUserId" ], "users": [ "DisplayName", "Id" ] }, "mi...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the posts owned by an elder user, how many of them have a score of over 19?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId", "Score" ], "users": [ "Age", "Id" ] }, "missing_c...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the location of the owner of the post "Eliciting priors from experts"?
SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'
simple
{ "gold_sql": "SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "Id", "Location" ] }, "miss...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
From which post is the tag "bayesian" excerpted from? Please give the body of the post.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'", "permission": "denied", "query_columns": { "posts": [ "Body", "Id" ], "tags": [ "ExcerptPostId", "TagName" ] }, "missing_columns": { "tag...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
From which post is the most popular tag excerpted from? Please give the body of the post.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Body FROM posts WHERE id = ( SELECT ExcerptPostId FROM tags ORDER BY Count DESC LIMIT 1 )", "permission": "denied", "query_columns": { "posts": [ "Id" ], "tags": [ "ExcerptPostId" ] }, "missing_columns": { "tags": [ "ExcerptPostId" ] }, "reas...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many badges has the user csgillespie obtained?
SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "allowed", "query_columns": { "badges": [ "Id", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": {}, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Please list the names of the badges obtained by csgillespie.
SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'
simple
{ "gold_sql": "SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "allowed", "query_columns": { "badges": [ "Name", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": {}, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the badges obtained by csgillespie, how many of them were obtained in the year 2011?
SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'", "permission": "allowed", "query_columns": { "badges": [ "Date", "Id", "UserId" ], "users": [ "DisplayName...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the display name of the user who has obtained the most number of badges?
SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1
simple
{ "gold_sql": "SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1", "permission": "allowed", "query_columns": { "badges": [ "Id", "UserId" ], "users": [ "DisplayName", "Id" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the average score of the posts owned by the user csgillespie?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Score" ], "users": [ "DisplayName", "Id" ] }, "missing_colu...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the average number of badges obtained by a user with over 200 views?
SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200
simple
{ "gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200", "permission": "allowed", "query_columns": { "badges": [ "Id", "UserId" ], "users": [ "DisplayName", "Id", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the posts with a score of over 5, what is the percentage of them being owned by an elder user?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId", "Score" ], "users": [ "Age", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many votes did the user No.58 take on 2010/7/19?
SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19'
simple
{ "gold_sql": "SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19'", "permission": "allowed", "query_columns": { "votes": [ "CreationDate", "Id", "UserId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 558, "...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Indicate the creation date of the maximum number of votes.
SELECT CreationDate FROM votes GROUP BY CreationDate ORDER BY COUNT(Id) DESC, CreationDate ASC LIMIT 1
simple
{ "gold_sql": "SELECT CreationDate \nFROM votes \nGROUP BY CreationDate \nORDER BY COUNT(Id) DESC, CreationDate ASC \nLIMIT 1", "permission": "allowed", "query_columns": { "votes": [ "CreationDate", "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "quest...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Give the number of "Revival" badges.
SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'
simple
{ "gold_sql": "SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'", "permission": "allowed", "query_columns": { "badges": [ "Id", "Name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 560, "evidence": "number refers to Id; 'Revival' is the...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What are the titles of all posts that have comments with the highest score?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT p.Title FROM posts p INNER JOIN comments c ON p.Id = c.PostId WHERE c.Score = (SELECT MAX(Score) FROM comments) ORDER BY p.Title ASC", "permission": "denied", "query_columns": { "posts": [ "Id", "Score", "Title" ], "comments": [ "PostId", "S...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the post which got 1910 view counts, how many comments does it get?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910", "permission": "denied", "query_columns": { "posts": [ "Id", "ViewCount" ], "comments": [ "PostId" ] }, "missing_columns": { "posts": [ "Vie...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
User No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025", "permission": "denied", "query_columns": { "posts": [ "FavoriteCount", "Id" ], "comments": [ "CreationDate", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Give the comment text of the post with only one comment and parent id 107829.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Text FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ParentId = 107829 AND T1.CommentCount = 1", "permission": "denied", "query_columns": { "posts": [ "CommentCount", "Id", "ParentId" ], "comments": [ "PostId", "Text" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT IIF(T2.ClosedDate IS NULL, 'NOT well-finished', 'well-finished') AS resylt\nFROM comments AS T1\nINNER JOIN posts AS T2 ON T1.PostId = T2.Id\nWHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0';", "permission": "denied", "query_columns": { "posts": [ "ClosedDate",...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the owner user of post No. 65041, what is his/her reputation points?
SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041
simple
{ "gold_sql": "SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041", "permission": "allowed", "query_columns": { "posts": [ "Id", "OwnerUserId" ], "users": [ "Id", "Reputation" ] }, "missing_columns": {}, "reason"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the user with the display name of "Tiago Pasqualini", how many posts did he/she own?
SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": {}, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Provide the display name of the user who made the vote No.6347.
SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347
simple
{ "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Id" ], "votes": [ "Id", "UserId" ] }, "missing_columns": {}, "reason": "All re...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Give the number of votes for the post about data visualization.
SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%'
simple
{ "gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%'", "permission": "allowed", "query_columns": { "posts": [ "Id", "Title" ], "votes": [ "PostId" ] }, "missing_columns": {}, "reason": "Al...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the user whose display name is "DatEpicCoderGuyWhoPrograms", what is his/her badge's name?
SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms'
simple
{ "gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms'", "permission": "allowed", "query_columns": { "badges": [ "Name", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_col...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
For the user No.24, how many times is the number of his/her posts compared to his/her votes?
SELECT (SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) / (SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24)
moderate
{ "gold_sql": "SELECT \n (SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) /\n (SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24)", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId" ], "votes": [ "UserId" ] }, "missing_columns": {}...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'", "permission": "denied", "query_columns": { "posts": [ "Title", "ViewCount" ] }, "missing_columns": { "posts": [ "ViewCount" ] }, "reas...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Write the contents of comments with a score of 17.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Text FROM comments WHERE Score = 17", "permission": "denied", "query_columns": { "comments": [ "Score" ] }, "missing_columns": { "comments": [ "Score" ] }, "reason": "Missing column permissions: comments: Score", "question_id": 573, "evidence": "score ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Which user has the website URL listed at 'http://stackoverflow.com'
SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "WebsiteUrl" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 574, "evidence": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the badge name that user 'SilentGhost' obtained?
SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost'
simple
{ "gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost'", "permission": "allowed", "query_columns": { "badges": [ "Name", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": {}, "r...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Name the user that commented 'thank you user93!'
SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'
simple
{ "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Write all comments made by user 'A Lion.'
SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion'
simple
{ "gold_sql": "SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion'", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns": {}, "re...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?
SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'
moderate
{ "gold_sql": "SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'", "permission": "allowed", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "Display...