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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Identify the latest badge awarded to the user with the display name Emmett. | 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 = 'Emmett' ORDER BY T1.Date DESC LIMIT 1",
"permission": "denied",
"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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Identify the number of adult users who have cast over 5000 upvotes. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Id",
"UpVotes"
]
},
"missing_columns": {
"users": [
"Id"
]
},
"reason": "Missing column permissions: 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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. | Sorry, I cannot answer. | 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": "denied",
"query_columns": {
"badges": [
"Date",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Identify the number of posts and comments left by the user, who has the latest created user account. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the reputation and view count of the user, who is known by his or her display name 'Jarrod Dixon'? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"missing_columns": {
"users": [
"DisplayName"
]
},
"reason": "Missing column permissions: 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many comments and answers were left by the users on the post with the title 'Clustering 1D data'? | SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data'; | simple | {
"gold_sql": "SELECT CommentCount, AnswerCount FROM posts WHERE Title = 'Clustering 1D data';",
"permission": "allowed",
"query_columns": {
"posts": [
"AnswerCount",
"CommentCount",
"Title"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | When did the user known as 'IrishStat' create his or her account? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'",
"permission": "denied",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {
"users": [
"DisplayName"
]
},
"reason": "Missing column permissions: users: Displa... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Identify the number of posts that offer a bounty amount over 30. | SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30; | simple | {
"gold_sql": "SELECT COUNT(id) FROM votes WHERE BountyAmount >= 30;",
"permission": "allowed",
"query_columns": {
"votes": [
"BountyAmount",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 700,
"evidence": "bounty amount over 30 refers... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many posts have a score less than 20? | SELECT COUNT(id) FROM posts WHERE Score < 20 | simple | {
"gold_sql": "SELECT COUNT(id) FROM posts WHERE Score < 20",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 702,
"evidence": "score less than 20 refers to Score < 20;"
} |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Give the texts commented on the post about linear regression. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
},
"missing_columns": {
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which user has a higher reputation, Harlan or Jarrod Dixon? | SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"mis... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list the display names of all the users whose accounts were created in the year 2011. | SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011' | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'",
"permission": "allowed",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 532,
"evidence": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the display name of the user who has the most number of views? | SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 534,
"evidence": "user who has the m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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": [
"UpVotes"
]
},
"reason": "Missing column permissions: users: Up... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | How many users with more than 10 views created their account after the year 2013? | SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10 | simple | {
"gold_sql": "SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10",
"permission": "allowed",
"query_columns": {
"users": [
"CreationDate",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 536,
"evidenc... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many posts does the user csgillespie own? | SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"id"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list the titles of the posts owned by the user csgillespie? | SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Who is the owner of the post "Eliciting priors from experts"? | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts' | simple | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the title of the post that is owned by csgillespie and has the highest popularity? | 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 | 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": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Title",
"ViewCount"
],
"users": [
"D... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 display name of the user who is the owner of the most valuable post? | SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1 | 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": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the total number of comments of all the posts owned by csgillespie? | SELECT SUM(T1.CommentCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | For the post that got the most number of answers owned by csgillespie, how many answers did it get? | SELECT T1.AnswerCount
FROM posts AS T1
INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id
WHERE T2.DisplayName = 'csgillespie'
ORDER BY T1.AnswerCount DESC, T1.Id ASC
LIMIT 1 | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"? | 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' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the posts owned by csgillespie, how many of them are root posts? | SELECT COUNT(T1.Id)
FROM posts AS T1
INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id
WHERE T2.DisplayName = 'csgillespie' AND T1.ParentId IS NULL; | 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": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"ParentId"
],
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list the display names of all the users who owns a post that is well-finished. | SELECT DISTINCT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL | 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": "allowed",
"query_columns": {
"posts": [
"ClosedDate",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the location of the owner of the post "Eliciting priors from experts"? | SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts' | simple | {
"gold_sql": "SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"Id",
"Location"
]
},
"miss... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | From which post is the tag "bayesian" excerpted from? Please give the body of the post. | SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian' | 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": "allowed",
"query_columns": {
"posts": [
"Body",
"Id"
],
"tags": [
"ExcerptPostId",
"TagName"
]
},
"missing_columns": {},
"re... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many badges has the user csgillespie obtained? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list the names of the badges obtained by csgillespie. | SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the badges obtained by csgillespie, how many of them were obtained in the year 2011? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"Id",
"UserId"
],
"users": [
"DisplayName... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the display name of the user who has obtained the most number of badges? | SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the average score of the posts owned by the user csgillespie? | SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | 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": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Score"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_col... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Give the number of "Revival" badges. | SELECT COUNT(Id) FROM badges WHERE Name = 'Revival' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"Name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 560,
"evidence": "number refers to Id; 'Revival' is the... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What are the titles of all posts that have comments with the highest score? | 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 | 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": "allowed",
"query_columns": {
"posts": [
"Id",
"Score",
"Title"
],
"comments": [
"PostId",
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | For the post which got 1910 view counts, how many comments does it get? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910 | 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": "allowed",
"query_columns": {
"posts": [
"Id",
"ViewCount"
],
"comments": [
"PostId"
]
},
"missing_columns": {},
"reason": "All requi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Give the comment text of the post with only one comment and parent id 107829. | 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 | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | For the owner user of post No. 65041, what is his/her reputation points? | SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041 | simple | {
"gold_sql": "SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"users": [
"Id",
"Reputation"
]
},
"missing_columns": {},
"reason"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | For the user with the display name of "Tiago Pasqualini", how many posts did he/she own? | SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Provide the display name of the user who made the vote No.6347. | SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347 | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347",
"permission": "allowed",
"query_columns": {
"votes": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
"reason": "All re... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Give the number of votes for the post about data visualization. | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"votes": [
"PostId"
]
},
"missing_columns": {},
"reason": "Al... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | For the user whose display name is "DatEpicCoderGuyWhoPrograms", what is his/her badge's name? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms' | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_col... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | For the user No.24, how many times is the number of his/her posts compared to his/her votes? | SELECT
(SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) /
(SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24) | moderate | {
"gold_sql": "SELECT \n (SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) /\n (SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24)",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId"
],
"votes": [
"UserId"
]
},
"missing_columns": {}... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which user has the website URL listed at 'http://stackoverflow.com' | SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com' | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"WebsiteUrl"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 574,
"evidence": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the badge name that user 'SilentGhost' obtained? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost' | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
"r... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user? | SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?' | moderate | {
"gold_sql": "SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"Display... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?' | 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?' | 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": "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",
... | Name 10 users with the badge name 'Necromancer.' | SELECT DISTINCT T1.DisplayName
FROM users AS T1
INNER JOIN badges AS T2 ON T1.Id = T2.UserId
WHERE T2.Name = 'Necromancer'
ORDER BY T1.Id ASC
LIMIT 10; | 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": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?' | 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?' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | List the title of posts which were edited by Vebjorn Ljosa. | SELECT T1.Title
FROM posts AS T1
INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id
WHERE T2.DisplayName = 'Vebjorn Ljosa'; | 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": "allowed",
"query_columns": {
"posts": [
"LastEditorUserId",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the total score of the posts edited by Yevgeny and include the user's website URL. | 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 | 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": "allowed",
"query_columns": {
"posts": [
"LastEditorUserId",
"Score"
],
"users": [
"Displa... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How much is the total bounty amount of the post titled about 'data' | SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which user added a bounty amount of 50 to the post title mentioning variance? | 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%' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post. | 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 | 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": "allowed",
"query_columns": {
"posts": [
"Id",
"Tags",
"Title",
"ViewCount"
],
"comm... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many users are awarded with supporter badge during year 2011? | SELECT COUNT(DISTINCT UserId)
FROM badges
WHERE STRFTIME('%Y', Date) = '2011'
AND Name = 'Supporter'
AND UserId IS NOT NULL | simple | {
"gold_sql": "SELECT COUNT(DISTINCT UserId) \nFROM badges \nWHERE STRFTIME('%Y', Date) = '2011' \nAND Name = 'Supporter'\nAND UserId IS NOT NULL",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are per... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | How many users are awarded with more than 5 badges? | SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5 | simple | {
"gold_sql": "SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"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... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many users from New York have a teacher and supporter badge? | SELECT COUNT(*)
FROM users AS U
WHERE U.Location = 'New York'
AND EXISTS (
SELECT 1 FROM badges AS B1
WHERE B1.UserId = U.Id AND B1.Name = 'Supporter'
)
AND EXISTS (
SELECT 1 FROM badges AS B2
WHERE B2.UserId = U.Id AND B2.Name = 'Teacher'
) | 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": "allowe... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Which user created post ID 1 and what is the reputation of this user? | SELECT u.DisplayName, u.Reputation
FROM posts AS p
INNER JOIN users AS u ON p.OwnerUserId = u.Id
WHERE p.Id = 1; | 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": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id",
"Reputation"
]
},
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many users from India have the teacher badges? | SELECT COUNT(T1.Id)
FROM badges AS T1
INNER JOIN users AS T2 ON T1.UserId = T2.Id
WHERE T2.Location = 'India' AND T1.Name = 'Teacher'; | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the percentage difference of student badges given during 2010 and 2011? | 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' | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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": {
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.