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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Which post has the highest score? Please give its id and title's name.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId ORDER BY T2.Score DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Score", "Title" ], "users": [ "Id" ] }, "missing_columns": { ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the average score of Stephen Turner's posts?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT AVG(T2.Score) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Stephen Turner'", "permission": "denied", "query_columns": { "posts": [ "OwnerUserId", "Score" ], "users": [ "DisplayName", "Id" ] }, "missing_c...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Please list the users' display names whose posts had over 20000 views in 2011.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2011' AND T2.ViewCount > 20000", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "OwnerUserId", "ViewCount" ], "users": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Which is the most valuable post in 2010? Please give its id and the owner's display name.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.OwnerUserId, T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' ORDER BY T2.FavoriteCount DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "CreaionDate", "FavoriteCount", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the percentage of posts whose owners had a reputation of over 1000 in 2011?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT \n (SUM(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011' AND T1.Reputation > 1000, 1, 0)) * 100.0) \n / COUNT(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011', 1, NULL))\nFROM users AS T1 \nINNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId", "permission": "denied", "query_columns": { "posts":...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the percentage of teenage users.
SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users
simple
{ "gold_sql": "SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users", "permission": "allowed", "query_columns": { "users": [ "Age", "Id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 684, "evidence": "tee...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.ViewCount, T3.DisplayName FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN users AS T3 ON T2.LastEditorUserId = T3.Id WHERE T1.Text = 'Computer Game Datasets'", "permission": "denied", "query_columns": { "posts": [ "Id", "LastEditorUserId", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the total number of posts with views above average.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(*) \nFROM posts \nWHERE ViewCount > (SELECT AVG(ViewCount) FROM posts)", "permission": "denied", "query_columns": { "posts": [ "ViewCount" ] }, "missing_columns": { "posts": [ "ViewCount" ] }, "reason": "Missing column permissions: posts: 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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many comments were added to the post with the highest score?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.CommentCount\nFROM posts T1\nWHERE T1.Score = (SELECT MAX(Score) FROM posts);", "permission": "denied", "query_columns": { "posts": [ "CommentCount", "Score" ] }, "missing_columns": { "posts": [ "CommentCount", "Score" ] }, "reason": "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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the number of posts that have been viewed over 35000 times but have received no comments from other users.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0", "permission": "denied", "query_columns": { "posts": [ "CommentCount", "Id", "ViewCount" ] }, "missing_columns": { "posts": [ "CommentCount", "ViewCount" ] }, "reason": "M...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the display name and location of the user, who was the last to edit the post with ID 183.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.DisplayName, T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Id = 183 ORDER BY T1.LastEditDate DESC LIMIT 1", "permission": "denied", "query_columns": { "posts": [ "Id", "LastEditDate", "OwnerUserId" ], "users": [ ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the latest badge awarded to the user with the display name Emmett.
SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1
simple
{ "gold_sql": "SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1", "permission": "allowed", "query_columns": { "badges": [ "Date", "Name", "UserId" ], "users": [ "DisplayName", "Id" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the number of adult users who have cast over 5000 upvotes.
SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000", "permission": "allowed", "query_columns": { "users": [ "Age", "Id", "UpVotes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 691, "evidence": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How long did it take the user, known by his or her display name 'Zolomon' to get the badge? Count from the date the user's account was created.
SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'
moderate
{ "gold_sql": "SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'", "permission": "allowed", "query_columns": { "badges": [ "Date", "UserId" ], "users": [ "DisplayName", "Id" ] }, "missing_colu...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the number of posts and comments left by the user, who has the latest created user account.
SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1", "permission": "allowed", "query_columns": { "posts": [ "Id", "OwnerUserId" ]...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it.
SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10
moderate
{ "gold_sql": "SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10", "permission": "allowed", "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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many users were awarded with 'Citizen Patrol' badge?
SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Citizen Patrol'
simple
{ "gold_sql": "SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Citizen Patrol'", "permission": "allowed", "query_columns": { "badges": [ "Name", "UserId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 695, "evidence": "'Citizen Patr...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Count the number of posts with a tag specified as 'careers'.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM tags WHERE TagName = 'careers'", "permission": "denied", "query_columns": { "tags": [ "Id", "TagName" ] }, "missing_columns": { "tags": [ "Id", "TagName" ] }, "reason": "Missing column permissions: tags: Id, TagName", "question...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the reputation and view count of the user, who is known by his or her display name 'Jarrod Dixon'?
SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'
simple
{ "gold_sql": "SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'", "permission": "allowed", "query_columns": { "users": [ "DisplayName", "Reputation" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 697, "evidence": "" }
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many comments and answers were left by the users on the post with the title 'Clustering 1D data'?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data';", "permission": "denied", "query_columns": { "posts": [ "AnswerCount", "CommentCount", "Title" ] }, "missing_columns": { "posts": [ "AnswerCount", "CommentCount" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
When did the user known as 'IrishStat' create his or her account?
SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'
simple
{ "gold_sql": "SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'", "permission": "allowed", "query_columns": { "users": [ "CreationDate", "DisplayName" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 699, "evidence": "DisplayNam...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Identify the number of posts that offer a bounty amount over 30.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30;", "permission": "denied", "query_columns": { "votes": [ "BountyAmount", "Id" ] }, "missing_columns": { "votes": [ "BountyAmount" ] }, "reason": "Missing column permissions: votes: BountyAmount", "quest...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among all the posts posted by the most influential user, identify the percentage with a score above 50.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.Score > 50 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM users T1 INNER JOIN posts T2 ON T1.Id = T2.OwnerUserId INNER JOIN ( SELECT MAX(Reputation) AS max_reputation FROM users ) T3 ON T1.Reputation = T3.max_reputation", "permission": "denied", "query_columns": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
How many posts have a score less than 20?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM posts WHERE Score < 20", "permission": "denied", "query_columns": { "posts": [ "Id", "Score" ] }, "missing_columns": { "posts": [ "Score" ] }, "reason": "Missing column permissions: posts: Score", "question_id": 702, "evidence": "s...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the tags with tag ID below 15, how many of them have 20 count of posts and below?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15", "permission": "denied", "query_columns": { "tags": [ "Id" ] }, "missing_columns": { "tags": [ "Id" ] }, "reason": "Missing column permissions: tags: Id", "question_id": 703, "evidence": "ID below 15 r...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the excerpt post ID and wiki post ID of the tag named sample?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'", "permission": "denied", "query_columns": { "tags": [ "ExcerptPostId", "TagName", "WikiPostId" ] }, "missing_columns": { "tags": [ "ExcerptPostId", "TagName", "WikiPostId" ] ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Give the user's reputation and up vote number of the user that commented "fine, you win :)".
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 :)'
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": "allowed", "query_columns": { "users": [ "Id", "Reputation", "UpVotes" ], "comments": [ "Text", "UserId" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
Among the posts with views ranging from 100 to 150, what is the comment with the highest score?
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "Id", "Score", "ViewCount" ], "comments": [ "PostId" ] }, "missing_c...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
List the creation date and age of the user that commented with webiste.
SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%'
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": "allowed", "query_columns": { "users": [ "Age", "CreationDate", "Id" ], "comments": [ "UserId", "text" ] }, ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
In comments with 0 score, how many of the posts have view count lower than 5?
Sorry, I cannot answer.
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": "denied", "query_columns": { "posts": [ "Id", "ViewCount" ], "comments": [ "PostId", "Score" ] }, "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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
In posts with 1 comment, how many of the comments have 0 score?
Sorry, I cannot answer.
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": "denied", "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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
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": { "users": [ "Age", "Id" ], "comments": [ "Score", "UserId" ] }, "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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the 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...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
What is the up vote number of the user that commented "R is also lazy evaluated."?
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.'
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": "allowed", "query_columns": { "users": [ "Id", "UpVotes" ], "comments": [ "Text", "UserId" ] }, "missing_columns"...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
List the comments commented by the user with a username of Harvey Motulsky.
SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'
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": "allowed", "query_columns": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns": ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
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": { "users": [ "DisplayName", "DownVotes", "Id" ], "comments": [ "Score", ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
UserSupportSpecialist
{ "badges": [ "Id", "UserId", "Name", "Date" ], "comments": [ "Id", "PostId", "Text", "CreationDate", "UserId", "UserDisplayName" ], "postHistory": [ "Id", "PostId", "CreationDate", "UserId", "Text", "Comment", "UserDisplayName" ], "posts...
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": { "users": [ "Id", "UpVotes" ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": [ "Id", "LastAccessDate" ] }, "reason": "Missing column permissions...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1", "permission": "denied", "query_columns": { "users": [ "DownVotes", "Id", "UpVotes" ] }, "missing_columns": { "users": [ "DownVotes", "Id", "UpVotes" ] }, "reason": "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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", "Id" ] }, "reason": "Missing colum...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
From which post is the most popular tag excerpted from? Please give the body of the post.
SELECT Body FROM posts WHERE id = ( SELECT ExcerptPostId FROM tags ORDER BY Count DESC LIMIT 1 )
simple
{ "gold_sql": "SELECT Body FROM posts WHERE id = ( SELECT ExcerptPostId FROM tags ORDER BY Count DESC LIMIT 1 )", "permission": "allowed", "query_columns": { "posts": [ "Id" ], "tags": [ "ExcerptPostId" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
How many votes did the user No.58 take on 2010/7/19?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19'", "permission": "denied", "query_columns": { "votes": [ "CreationDate", "Id", "UserId" ] }, "missing_columns": { "votes": [ "CreationDate", "Id", "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
Indicate the creation date of the maximum number of votes.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CreationDate \nFROM votes \nGROUP BY CreationDate \nORDER BY COUNT(Id) DESC, CreationDate ASC \nLIMIT 1", "permission": "denied", "query_columns": { "votes": [ "CreationDate", "Id" ] }, "missing_columns": { "votes": [ "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": { "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": { "users": [ "DisplayName", "Id" ], "votes": [ "Id", "UserId" ] }, "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": { "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get?
SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'
moderate
{ "gold_sql": "SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'", "permission": "allowed", "query_columns": { "posts": [ "Title", "ViewCount" ] }, "missing_columns": {}, "reason": "All required columns are permitted"...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
Write the contents of comments with a score of 17.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Text FROM comments WHERE Score = 17", "permission": "denied", "query_columns": { "comments": [ "Score" ] }, "missing_columns": { "comments": [ "Score" ] }, "reason": "Missing column permissions: comments: Score", "question_id": 573, "evidence": "score ...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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", "WebsiteUrl" ] }, "reason": "Missing co...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns":...
codebase_community
##Instruction: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Database: codebase_community Total Tables: 8 Total Columns: 71 Table Schemas: Table: badges (4 columns) ------------------------- • Id (integer): the badge id • UserId (integer): the unique id of the user • Name (text): the...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": { "users": [ "DisplayName", "Id" ], "comments": [ "Text", "UserId" ] }, "missing_columns": { "use...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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" ], "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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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": [ "Id", "UserId" ] }, "reason": "Missing column permissions: comments: Id, UserId", "que...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
Which user ID has the highest reputation?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )", "permission": "denied", "query_columns": { "users": [ "Id", "Reputation" ] }, "missing_columns": { "users": [ "Id", "Reputation" ] }, "reason": "Missing column permissions...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
Which user ID has the lowest view?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT Id FROM users WHERE Views = ( SELECT MIN(Views) FROM users ) ORDER BY Id ASC", "permission": "denied", "query_columns": { "users": [ "Id" ] }, "missing_columns": { "users": [ "Id" ] }, "reason": "Missing column permissions: users: Id", "question_id": 590...
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...
TagCurator
{ "posts": [ "Id", "Title", "Tags", "CreaionDate", "Score", "ViewCount" ], "tags": [ "*" ] }
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...