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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
What is the excerpt post ID and wiki post ID of the tag named sample?
SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'
simple
{ "gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'", "permission": "allowed", "query_columns": { "tags": [ "ExcerptPostId", "TagName", "WikiPostId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 704, "e...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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": { "comments": [ "Text", "UserId" ], "users": [ "Id", "Reputation", "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
Give the texts commented on the post about linear regression.
SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'
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": "allowed", "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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": { "comments": [ "UserId", "text" ], "users": [ "Age", "CreationDate", "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
Among product comments with 0 score, what is the total number of users aged 40 years old?
Sorry, I cannot answer.
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": "denied", "query_columns": { "comments": [ "Score", "UserId" ], "users": [ "Age", "Id" ] }, "missing_column...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"?
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'
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": "allowed", "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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": { "comments": [ "Text", "UserId" ], "users": [ "Id", "UpVotes" ] }, "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
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": { "comments": [ "Text", "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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
In comments with score between 1 to 5, list down the display names of the users with 0 down votes.
Sorry, I cannot answer.
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": "denied", "query_columns": { "comments": [ "Score", "UserId" ], "users": [ "DisplayName", "DownVotes...
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...
DataOperator_2
{ "badges": [ "*" ], "comments": [ "CreationDate", "Id", "PostId", "Score", "Text", "UserDisplayName" ], "postLinks": [ "CreationDate", "RelatedPostId" ], "posts": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "CreationDate", ...
Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes?
Sorry, I cannot answer.
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": "denied", "query_columns": { "comments": [ "Score", "UserI...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user has a higher reputation, Harlan or Jarrod Dixon?
Sorry, I cannot answer.
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": "denied", "query_columns": { "users": [ "DisplayName", "Reputation" ] }, "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Please list the display names of all the users whose accounts were created in the year 2011.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'", "permission": "denied", "query_columns": { "users": [ "CreationDate", "DisplayName" ] }, "missing_columns": { "users": [ "CreationDate", "DisplayName" ] }, "reason": "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users last accessed the website after 2014/9/1?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'", "permission": "denied", "query_columns": { "users": [ "Id", "LastAccessDate" ] }, "missing_columns": { "users": [ "LastAccessDate" ] }, "reason": "Missing column permissions: users: Las...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the display name of the user who has the most number of views?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )", "permission": "denied", "query_columns": { "users": [ "DisplayName" ] }, "missing_columns": { "users": [ "DisplayName" ] }, "reason": "Missing column permissions: 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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users with more than 10 views created their account after the year 2013?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10", "permission": "denied", "query_columns": { "users": [ "CreationDate", "Id" ] }, "missing_columns": { "users": [ "CreationDate" ] }, "reason": "Missing column permission...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many posts does the user csgillespie own?
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 T2.DisplayName = 'csgillespie'", "permission": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Please list the titles of the posts owned by the user csgillespie?
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'", "permission": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Who is the owner of the post "Eliciting priors from experts"?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the location of the owner of the post "Eliciting priors from experts"?
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "Id", "Location" ] }, "missi...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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": { "pos...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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": { "posts": [ "Id" ] }, "reason": "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many badges has the user csgillespie obtained?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Please list the names of the badges obtained by csgillespie.
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Among the badges obtained by csgillespie, how many of them were obtained in the year 2011?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the display name of the user who has obtained the most number of badges?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the average number of badges obtained by a user with over 200 views?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Give the number of "Revival" badges.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'", "permission": "denied", "query_columns": { "badges": [ "Id", "Name" ] }, "missing_columns": { "badges": [ "Id", "Name" ] }, "reason": "Missing column permissions: badges: Id, Name", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
For the owner user of post No. 65041, what is his/her reputation points?
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId" ], "users": [ "Id", "Reputation" ] }, "missing_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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
For the user with the display name of "Tiago Pasqualini", how many posts did he/she own?
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 T1.DisplayName = 'Tiago Pasqualini'", "permission": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Provide the display name of the user who made the vote No.6347.
Sorry, I cannot answer.
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": "denied", "query_columns": { "votes": [ "Id", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": { "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Give the number of votes for the post about data visualization.
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "Id", "Title" ], "votes": [ "PostId" ] }, "missing_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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
For the user whose display name is "DatEpicCoderGuyWhoPrograms", what is his/her badge's name?
Sorry, I cannot answer.
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": "denied", "query_columns": { "badges": [ "Name", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
For the user No.24, how many times is the number of his/her posts compared to his/her votes?
Sorry, I cannot answer.
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": "denied", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
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": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Write the contents of comments with a score of 17.
SELECT Text FROM comments WHERE Score = 17
simple
{ "gold_sql": "SELECT Text FROM comments WHERE Score = 17", "permission": "allowed", "query_columns": { "comments": [ "Score" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 573, "evidence": "score of 17 refers to Score = 17; contents of comments ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user has the website URL listed at 'http://stackoverflow.com'
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'", "permission": "denied", "query_columns": { "users": [ "DisplayName", "WebsiteUrl" ] }, "missing_columns": { "users": [ "DisplayName" ] }, "reason": "Missing column permissions: us...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the badge name that user 'SilentGhost' obtained?
Sorry, I cannot answer.
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": "denied", "query_columns": { "badges": [ "Name", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": { "ba...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Name the user that commented 'thank you user93!'
Sorry, I cannot answer.
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": "denied", "query_columns": { "comments": [ "Text", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Write all comments made by user 'A Lion.'
Sorry, I cannot answer.
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": "denied", "query_columns": { "comments": [ "Text", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": { "com...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user?
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "OwnerUserId", "Title" ], "users": [ "DisplayN...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?'
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 = 'How does gentle boosting differ from AdaBoost?'", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Name 10 users with the badge name 'Necromancer.'
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.DisplayName\nFROM users AS T1\nINNER JOIN badges AS T2 ON T1.Id = T2.UserId\nWHERE T2.Name = 'Necromancer'\nORDER BY T1.Id ASC\nLIMIT 10;", "permission": "denied", "query_columns": { "badges": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?'
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 = 'Open source tools for visualizing multi-dimensional data?'", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
List the title of posts which were edited by Vebjorn Ljosa.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Title\nFROM posts AS T1\nINNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id\nWHERE T2.DisplayName = 'Vebjorn Ljosa';", "permission": "denied", "query_columns": { "posts": [ "LastEditorUserId", "Title" ], "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the total score of the posts edited by Yevgeny and include the user's website URL.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T1.Score), T2.WebsiteUrl FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T2.DisplayName = 'Yevgeny' GROUP BY T2.WebsiteUrl", "permission": "denied", "query_columns": { "posts": [ "LastEditorUserId", "Score" ], "users": [ "Display...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Write all the comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?'
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'", "permission": "denied", "query_columns": { "posts": [ "Id", "Title" ], "posthistory...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How much is the total bounty amount of the post titled about 'data'
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%'", "permission": "denied", "query_columns": { "posts": [ "Id", "Title" ], "votes": [ "BountyAmount", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user added a bounty amount of 50 to the post title mentioning variance?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T3.DisplayName, T1.Title FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'", "permission": "denied", "query_columns": { "posts": [ "Id", "Title" ], "votes"...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.PostId WHERE T2.Tags = '<humor>' GROUP BY T2.Title, T1.Text ", "permission": "denied", "query_columns": { "posts": [ "Id", "Tags", "Title", "ViewCount" ], "comme...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Give the total number of comments posted by user ID 13.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM comments WHERE UserId = 13", "permission": "denied", "query_columns": { "comments": [ "Id", "UserId" ] }, "missing_columns": { "comments": [ "UserId" ] }, "reason": "Missing column permissions: comments: UserId", "question_id": 588, ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user ID has the highest reputation?
SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )
simple
{ "gold_sql": "SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )", "permission": "allowed", "query_columns": { "users": [ "Id", "Reputation" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 589, "evidence": "highes...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user ID has the lowest view?
SELECT Id FROM users WHERE Views = ( SELECT MIN(Views) FROM users ) ORDER BY Id ASC
simple
{ "gold_sql": "SELECT Id FROM users WHERE Views = ( SELECT MIN(Views) FROM users ) ORDER BY Id ASC", "permission": "allowed", "query_columns": { "users": [ "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 590, "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users are awarded with supporter badge during year 2011?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT UserId) \nFROM badges \nWHERE STRFTIME('%Y', Date) = '2011' \nAND Name = 'Supporter'\nAND UserId IS NOT NULL", "permission": "denied", "query_columns": { "badges": [ "Name", "UserId" ] }, "missing_columns": { "badges": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users are awarded with more than 5 badges?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5", "permission": "denied", "query_columns": { "badges": [ "Name", "UserId" ] }, "missing_columns": { "badges": [ "Name", "UserId" ] }, "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users from New York have a teacher and supporter badge?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(*)\nFROM users AS U\nWHERE U.Location = 'New York'\n AND EXISTS (\n SELECT 1 FROM badges AS B1 \n WHERE B1.UserId = U.Id AND B1.Name = 'Supporter'\n )\n AND EXISTS (\n SELECT 1 FROM badges AS B2 \n WHERE B2.UserId = U.Id AND B2.Name = 'Teacher'\n )", "permission": "denied...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user created post ID 1 and what is the reputation of this user?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT u.DisplayName, u.Reputation\nFROM posts AS p\nINNER JOIN users AS u ON p.OwnerUserId = u.Id\nWHERE p.Id = 1;", "permission": "denied", "query_columns": { "posts": [ "Id", "OwnerUserId" ], "users": [ "DisplayName", "Id", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which users have used only one post history type across all posts having at least 1000 views?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.UserId FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T2.PostId = T3.Id WHERE T3.ViewCount >= 1000 GROUP BY T2.UserId HAVING COUNT(DISTINCT T2.PostHistoryTypeId) = 1", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Which user has posted the most comments? List out all the user's badge.
Sorry, I cannot answer.
simple
{ "gold_sql": "WITH TopComment AS (SELECT UserId FROM comments GROUP BY UserId ORDER BY COUNT(*) DESC LIMIT 1) SELECT B.Name FROM badges B JOIN TopComment TC ON B.UserId = TC.UserId;", "permission": "denied", "query_columns": { "comments": [ "UserId" ], "badges": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users from India have the teacher badges?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.Id)\nFROM badges AS T1\nINNER JOIN users AS T2 ON T1.UserId = T2.Id\nWHERE T2.Location = 'India' AND T1.Name = 'Teacher';", "permission": "denied", "query_columns": { "badges": [ "Id", "Name", "UserId" ], "users": [ "Id", "Location" ] ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the percentage difference of student badges given during 2010 and 2011?
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', Date) = '2010', 1, 0)) AS REAL) * 100 / COUNT(Id) - CAST(SUM(IIF(STRFTIME('%Y', Date) = '2011', 1, 0)) AS REAL) * 100 / COUNT(Id) FROM badges WHERE Name = 'Student'", "permission": "denied", "query_columns": { "badges": [ "Id", "Name" ] }, ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What are the post history type IDs for post ID 3720 and how many unique users have commented on the post?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.PostHistoryTypeId,\n (SELECT COUNT(DISTINCT UserId) FROM comments WHERE PostId = 3720) AS NumberOfUsers\nFROM postHistory AS T1\nWHERE T1.PostId = 3720;", "permission": "denied", "query_columns": { "comments": [ "PostId", "UserId" ], "posthistory": [ "P...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
List out all post that are related to post ID 61217 and what is the popularity of this post?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT p.Id, p.Title, p.ViewCount\nFROM postLinks AS pl\nINNER JOIN posts AS p ON p.Id = pl.RelatedPostId\nWHERE pl.PostId = 61217;", "permission": "denied", "query_columns": { "posts": [ "Id", "Title", "ViewCount" ], "postlinks": [ "PostId", "Rela...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the score and the link type ID for post ID 395?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Score, T2.LinkTypeId FROM posts AS T1 INNER JOIN postLinks AS T2 ON T1.Id = T2.PostId WHERE T2.PostId = 395", "permission": "denied", "query_columns": { "posts": [ "Id", "Score" ], "postlinks": [ "LinkTypeId", "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
List out all post ID with score more than 60 and list out all the user ID that created these post.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT PostId, UserId FROM postHistory WHERE PostId IN ( SELECT Id FROM posts WHERE Score > 60 )", "permission": "denied", "query_columns": { "posts": [ "Id", "Score" ], "posthistory": [ "PostId", "UserId" ] }, "missing_columns": { "posts": [ "I...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the sum of favourite count gained by user ID 686 in 2011?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(DISTINCT FavoriteCount)\nFROM posts\nWHERE Id IN (\n SELECT PostId\n FROM postHistory\n WHERE UserId = 686 AND STRFTIME('%Y', CreationDate) = '2011'\n);", "permission": "denied", "query_columns": { "posts": [ "FavoriteCount", "Id" ], "posthistory": [ "Cre...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the average of the up votes and the average user age for users creating more than 10 posts?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT AVG(T1.UpVotes), AVG(T1.Age) FROM users AS T1 INNER JOIN ( SELECT OwnerUserId, COUNT(*) AS post_count FROM posts GROUP BY OwnerUserId HAVING post_count > 10) AS T2 ON T1.Id = T2.OwnerUserId", "permission": "denied", "query_columns": { "posts": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many users obtained the "Announcer" badge?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM badges WHERE Name = 'Announcer'", "permission": "denied", "query_columns": { "badges": [ "Id", "Name" ] }, "missing_columns": { "badges": [ "Id", "Name" ] }, "reason": "Missing column permissions: badges: Id, Name", "question_i...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
List out the name of badges that users obtained on 7/19/2010 7:39:08 PM.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT Name FROM badges WHERE Date = '2010-07-19 19:39:08.0'", "permission": "denied", "query_columns": { "badges": [ "Name" ] }, "missing_columns": { "badges": [ "Name" ] }, "reason": "Missing column permissions: badges: Name", "question_id": 606, "...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many positive comments are there on the list?
SELECT COUNT(id) FROM comments WHERE score > 60
simple
{ "gold_sql": "SELECT COUNT(id) FROM comments WHERE score > 60", "permission": "allowed", "query_columns": { "comments": [ "Id", "Score" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 607, "evidence": "Positive comment refers to score > 60"...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
State the detailed content of the comment which was created on 7/19/2010 7:25:47 PM.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Text FROM comments WHERE CreationDate = '2010-07-19 19:16:14.0'", "permission": "denied", "query_columns": { "comments": [ "CreationDate" ] }, "missing_columns": { "comments": [ "CreationDate" ] }, "reason": "Missing column permissions: comments: CreationD...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
How many posts have a score of 10 on the list?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM posts WHERE Score = 10", "permission": "denied", "query_columns": { "posts": [ "Id", "Score" ] }, "missing_columns": { "posts": [ "Id", "Score" ] }, "reason": "Missing column permissions: posts: Id, Score", "question_id": 609, ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What are the name of badge that users who have the highest reputation obtained?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T2.name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Reputation = (SELECT MAX(Reputation) FROM users);", "permission": "denied", "query_columns": { "badges": [ "UserId", "name" ], "users": [ "Id", "Reputation" ] }, ...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Mention the reputation of users who had obtained the badge on 7/19/2010 7:39:08 PM.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Reputation FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Date = '2010-07-19 19:39:08.0'", "permission": "denied", "query_columns": { "badges": [ "Date", "UserId" ], "users": [ "Id", "Reputation" ] }, "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the name of badge that the user whose display name is "Pierre" obtained?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'Pierre'", "permission": "denied", "query_columns": { "badges": [ "Name", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_columns": { "badges"...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
List out the dates that users who are located in Rochester, NY obtained their badges?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.Date FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Location = 'Rochester, NY'", "permission": "denied", "query_columns": { "badges": [ "Date", "UserId" ], "users": [ "Id", "Location" ] }, "missing_columns": { "badges...
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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Among the users who obtained the "Teacher" badge, calculate their percentage of users
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) * 100 / (SELECT COUNT(Id) FROM users) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Teacher'", "permission": "denied", "query_columns": { "badges": [ "Id", "Name", "UserId" ], "users": [ "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
Among the users who obtained the "Organizer" badges, calculate the percentage of users who are teenagers.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(IIF(T2.Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.`Name` = 'Organizer'", "permission": "denied", "query_columns": { "badges": [ "Id", "Name", "UserId" ], "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the comment's rating score of the post which was created on 7/19/2010 7:19:56 PM
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Score FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:19:56.0'", "permission": "denied", "query_columns": { "posts": [ "Id" ], "comments": [ "CreationDate", "PostId", "Score" ] }, "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...
DataOperator_3
{ "comments": [ "Id", "PostId", "Score" ], "postHistory": [ "*" ], "tags": [ "*" ], "users": [ "AboutMe", "AccountId", "DownVotes", "Id", "Location", "Reputation", "UpVotes", "WebsiteUrl" ], "votes": [ "*" ] }
What is the detailed content of the comment of the post which was created on 7/19/2010 7:37:33 PM?
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 T1.CreationDate = '2010-07-19 19:37:33.0'", "permission": "denied", "query_columns": { "posts": [ "Id" ], "comments": [ "CreationDate", "PostId", "Text" ] }, "missing_col...