db_id stringclasses 11
values | instruction stringlengths 1.63k 14k | role stringclasses 45
values | policy unknown | input stringlengths 23 477 | output stringlengths 23 2.22k | difficulty stringclasses 3
values | metadata dict |
|---|---|---|---|---|---|---|---|
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the average of the up votes and the average user age for users creating more than 10 posts? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT AVG(T1.UpVotes), AVG(T1.Age) FROM users AS T1 INNER JOIN ( SELECT OwnerUserId, COUNT(*) AS post_count FROM posts GROUP BY OwnerUserId HAVING post_count > 10) AS T2 ON T1.Id = T2.OwnerUserId",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many users obtained the "Announcer" badge? | SELECT COUNT(id) FROM badges WHERE Name = 'Announcer' | simple | {
"gold_sql": "SELECT COUNT(id) FROM badges WHERE Name = 'Announcer'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"Name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 605,
"evidence": "\"Announcer\" is the Name of badge;... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 the name of badges that users obtained on 7/19/2010 7:39:08 PM. | SELECT DISTINCT Name FROM badges WHERE Date = '2010-07-19 19:39:08.0' | simple | {
"gold_sql": "SELECT DISTINCT Name FROM badges WHERE Date = '2010-07-19 19:39:08.0'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 606,
"evidence": "on 7/19/2010 7:39:08 PM 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many positive comments are there on the list? | SELECT COUNT(id) FROM comments WHERE score > 60 | simple | {
"gold_sql": "SELECT COUNT(id) FROM comments WHERE score > 60",
"permission": "allowed",
"query_columns": {
"comments": [
"Id",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 607,
"evidence": "Positive comment refers to score > 60"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | State the detailed content of the comment which was created on 7/19/2010 7:25:47 PM. | SELECT Text FROM comments WHERE CreationDate = '2010-07-19 19:16:14.0' | simple | {
"gold_sql": "SELECT Text FROM comments WHERE CreationDate = '2010-07-19 19:16:14.0'",
"permission": "allowed",
"query_columns": {
"comments": [
"CreationDate"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 608,
"evidence": "detailed content of ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many posts have a score of 10 on the list? | SELECT COUNT(id) FROM posts WHERE Score = 10 | simple | {
"gold_sql": "SELECT COUNT(id) FROM posts WHERE Score = 10",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 609,
"evidence": "score of 10 refers to Score = 10; post refer... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 name of badge that users who have the highest reputation obtained? | SELECT DISTINCT T2.name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Reputation = (SELECT MAX(Reputation) FROM users); | simple | {
"gold_sql": "SELECT DISTINCT T2.name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Reputation = (SELECT MAX(Reputation) FROM users);",
"permission": "allowed",
"query_columns": {
"badges": [
"UserId",
"name"
],
"users": [
"Id",
"Reputation"
]
},... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Mention the reputation of users who had obtained the badge on 7/19/2010 7:39:08 PM. | SELECT T1.Reputation FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Date = '2010-07-19 19:39:08.0' | simple | {
"gold_sql": "SELECT T1.Reputation FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Date = '2010-07-19 19:39:08.0'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"UserId"
],
"users": [
"Id",
"Reputation"
]
},
"missing_columns": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the name of badge that the user whose display name is "Pierre" obtained? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'Pierre' | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'Pierre'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"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",
... | List out the dates that users who are located in Rochester, NY obtained their badges? | SELECT T2.Date FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Location = 'Rochester, NY' | simple | {
"gold_sql": "SELECT T2.Date FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Location = 'Rochester, NY'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"UserId"
],
"users": [
"Id",
"Location"
]
},
"missing_columns": {},
"reaso... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 obtained the "Teacher" badge, calculate their percentage of users | SELECT CAST(COUNT(T1.Id) AS REAL) * 100 / (SELECT COUNT(Id) FROM users) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Teacher' | simple | {
"gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) * 100 / (SELECT COUNT(Id) FROM users) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Teacher'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"Name",
"UserId"
],
"users": [
"Id"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the users who obtained the "Organizer" badges, calculate the percentage of users who are teenagers. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(IIF(T2.Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.`Name` = 'Organizer'",
"permission": "denied",
"query_columns": {
"badges": [
"Id",
"Name",
"UserId"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the comment's rating score of the post which was created on 7/19/2010 7:19:56 PM | SELECT T1.Score FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:19:56.0' | simple | {
"gold_sql": "SELECT T1.Score FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:19:56.0'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id"
],
"comments": [
"CreationDate",
"PostId",
"Score"
]
},
"missing_... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the detailed content of the comment of the post which was created on 7/19/2010 7:37:33 PM? | SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:37:33.0' | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.CreationDate = '2010-07-19 19:37:33.0'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id"
],
"comments": [
"CreationDate",
"PostId",
"Text"
]
},
"missing_co... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | List the ages of users located in Vienna, Austria who have obtained badges. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Age FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Location = 'Vienna, Austria' AND T1.Age IS NOT NULL",
"permission": "denied",
"query_columns": {
"badges": [
"UserId"
],
"users": [
"Age",
"Id",
"Location"
]
},
"missing_... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many adults who obtained the badge Supporter? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'Supporter' AND T1.Age BETWEEN 19 AND 65",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"Age",
"Id"
]
},
"missing_co... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | State the number of views of users who obtained the badge on 7/19/2010 7:39:08 PM. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Views FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Date = '2010-07-19 19:39:08.0'",
"permission": "denied",
"query_columns": {
"badges": [
"Date",
"UserId"
],
"users": [
"Id",
"Views"
]
},
"missing_columns": {
"user... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 name of badges that users who have the lowest reputation obtained? | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Reputation = (SELECT MIN(Reputation) FROM users) | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Reputation = (SELECT MIN(Reputation) FROM users)",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"Id",
"Reputation"
]
},
"missin... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | State the name of badge that the user whose display name is "Sharpie" obtained. | SELECT DISTINCT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'Sharpie' | simple | {
"gold_sql": "SELECT DISTINCT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'Sharpie'",
"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",
... | How many elders obtained the "Supporter" badge? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.Age > 65 AND T2.Name = 'Supporter'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"Age",
"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",
... | What is the name of user with the ID of 30? | SELECT DisplayName FROM users WHERE Id = 30 | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Id = 30",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 624,
"evidence": "name of user refers to 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",
... | How many users were from New York? | SELECT COUNT(Id) FROM users WHERE Location = 'New York' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE Location = 'New York'",
"permission": "allowed",
"query_columns": {
"users": [
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 625,
"evidence": "New York refers to 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",
... | How many votes were made in 2010? | SELECT COUNT(id) FROM votes WHERE STRFTIME('%Y', CreationDate) = '2010' | simple | {
"gold_sql": "SELECT COUNT(id) FROM votes WHERE STRFTIME('%Y', CreationDate) = '2010'",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 626,
"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 were adult? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(id) FROM users WHERE Age BETWEEN 19 AND 65",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Id"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: users: Age",
"question_id": 627,
"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",
... | Which users have the highest number of views? | SELECT Id, DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users ) | simple | {
"gold_sql": "SELECT Id, DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 628,
"evidence": "Us... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Calculate the ratio of votes in 2010 and 2011. | SELECT CAST(SUM(IIF(STRFTIME('%Y', CreationDate) = '2010', 1, 0)) AS REAL) / NULLIF(SUM(IIF(STRFTIME('%Y', CreationDate) = '2011', 1, 0)), 0) FROM votes | simple | {
"gold_sql": "SELECT CAST(SUM(IIF(STRFTIME('%Y', CreationDate) = '2010', 1, 0)) AS REAL) / NULLIF(SUM(IIF(STRFTIME('%Y', CreationDate) = '2011', 1, 0)), 0) FROM votes",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate"
]
},
"missing_columns": {},
"reason": "All required co... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the name of tags used by John Salvatier's? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T3.Tags 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 T1.DisplayName = 'John Salvatier'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Tags"
],
"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",
... | How many posts were created by Daniel Vassallo? | SELECT COUNT(T2.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Daniel Vassallo' | simple | {
"gold_sql": "SELECT COUNT(T2.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Daniel Vassallo'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"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",
... | How many votes were made by Harlan? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN votes AS T3 ON T3.PostId = T2.PostId WHERE T1.DisplayName = 'Harlan'",
"permission": "denied",
"query_columns": {
"votes": [
"PostId"
],
"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",
... | Which post by slashnick has the most answers count? State the post ID. | SELECT T3.Id
FROM users AS T1
INNER JOIN posts AS T3 ON T1.Id = T3.OwnerUserId
WHERE T1.DisplayName = 'slashnick'
ORDER BY T3.AnswerCount DESC
LIMIT 1 | moderate | {
"gold_sql": "SELECT T3.Id \nFROM users AS T1 \nINNER JOIN posts AS T3 ON T1.Id = T3.OwnerUserId \nWHERE T1.DisplayName = 'slashnick' \nORDER BY T3.AnswerCount DESC \nLIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"AnswerCount",
"Id",
"OwnerUserId"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among posts by Harvey Motulsky and Noah Snyder, which one has higher popularity? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T1.DisplayName 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 T1.DisplayName = 'Harvey Motulsky' OR T1.DisplayName = 'Noah Snyder' GROUP BY T1.DisplayName ORDER BY SUM(T3.ViewCount) DESC LIMIT 1",
"permission": "denied",
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many posts by Matt Parker have more than 4 votes? | SELECT COUNT(*) FROM ( SELECT T2.Id FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN votes AS T3 ON T3.PostId = T2.Id WHERE T1.DisplayName = 'Matt Parker' GROUP BY T2.Id HAVING COUNT(T3.Id) > 4); | moderate | {
"gold_sql": "SELECT COUNT(*) FROM ( SELECT T2.Id FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN votes AS T3 ON T3.PostId = T2.Id WHERE T1.DisplayName = 'Matt Parker' GROUP BY T2.Id HAVING COUNT(T3.Id) > 4);",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many negative comments did Neil McGuigan get in his posts? | SELECT COUNT(T3.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN comments AS T3 ON T2.Id = T3.PostId WHERE T1.DisplayName = 'Neil McGuigan' AND T3.Score < 60 | simple | {
"gold_sql": "SELECT COUNT(T3.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId INNER JOIN comments AS T3 ON T2.Id = T3.PostId WHERE T1.DisplayName = 'Neil McGuigan' AND T3.Score < 60",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"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",
... | State all the tags used by Mark Meckes in his posts that doesn't have comments. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DISTINCT T3.Tags FROM users AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.UserId INNER JOIN posts AS T3 ON T3.Id = T2.PostId WHERE T1.DisplayName = 'Mark Meckes' AND T3.CommentCount = 0 AND T3.Tags IS NOT NULL",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | List all the name of users that obtained the Organizer Badges. | SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.`Name` = 'Organizer' | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.`Name` = 'Organizer'",
"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",
... | Based on posts posted by Community, calculate the percentage of posts that use the R language. | SELECT CAST(SUM(CASE WHEN T1.Tags LIKE '%<r>%' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'Community' | challenging | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T1.Tags LIKE '%<r>%' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'Community'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"T... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Calculate the difference in view count of posts posted by Mornington and view count of posts posted by Amos. | SELECT SUM(CASE WHEN T1.DisplayName = 'Mornington' THEN T2.ViewCount ELSE 0 END) - SUM(CASE WHEN T1.DisplayName = 'Amos' THEN T2.ViewCount ELSE 0 END) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName IN ('Mornington', 'Amos') | moderate | {
"gold_sql": "SELECT SUM(CASE WHEN T1.DisplayName = 'Mornington' THEN T2.ViewCount ELSE 0 END) - SUM(CASE WHEN T1.DisplayName = 'Amos' THEN T2.ViewCount ELSE 0 END) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName IN ('Mornington', 'Amos')",
"permission": "allowed",
"query_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",
... | How many users received commentator badges in 2014? | SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Commentator' AND STRFTIME('%Y', Date) = '2014' | simple | {
"gold_sql": "SELECT COUNT(DISTINCT UserId) FROM badges WHERE Name = 'Commentator' AND STRFTIME('%Y', Date) = '2014'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 64... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 were created on 21st July, 2010? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(id) FROM postHistory WHERE date(CreationDate) = '2010-07-21'",
"permission": "denied",
"query_columns": {
"posthistory": [
"CreationDate",
"Id"
]
},
"missing_columns": {
"posthistory": [
"CreationDate",
"Id"
]
},
"reason": "Missing column... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What are the display names and ages of user who got the highest in views? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName, Age FROM users WHERE Views = ( SELECT MAX(Views) FROM users )",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"DisplayName"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: 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",
... | Provide the last edit date and last edit user ID for the post "Detecting a given face in a database of facial images". | SELECT LastEditDate, LastEditorUserId FROM posts WHERE Title = 'Detecting a given face in a database of facial images' | simple | {
"gold_sql": "SELECT LastEditDate, LastEditorUserId FROM posts WHERE Title = 'Detecting a given face in a database of facial images'",
"permission": "allowed",
"query_columns": {
"posts": [
"LastEditDate",
"LastEditorUserId",
"Title"
]
},
"missing_columns": {},
"reason": "All requ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 negative comments were given by user ID 13? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(Id) FROM comments WHERE UserId = 13 AND Score < 60",
"permission": "denied",
"query_columns": {
"comments": [
"Id",
"Score",
"UserId"
]
},
"missing_columns": {
"comments": [
"UserId"
]
},
"reason": "Missing column permissions: comments: U... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Describe the post title which got positive comments and display names of the users who posted those comments. | SELECT DISTINCT T1.Title, T2.UserDisplayName
FROM posts AS T1
INNER JOIN comments AS T2 ON T1.Id = T2.PostId
WHERE T2.Score > 60 AND T1.Title IS NOT NULL AND T2.UserDisplayName IS NOT NULL; | simple | {
"gold_sql": "SELECT DISTINCT T1.Title, T2.UserDisplayName\nFROM posts AS T1\nINNER JOIN comments AS T2 ON T1.Id = T2.PostId\nWHERE T2.Score > 60 AND T1.Title IS NOT NULL AND T2.UserDisplayName IS NOT NULL;",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comment... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 badge names received in 2011 for the user whose location is in the North Pole. | SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE STRFTIME('%Y', T2.Date) = '2011' AND T1.Location = 'North Pole' | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE STRFTIME('%Y', T2.Date) = '2011' AND T1.Location = 'North Pole'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"Name",
"UserId"
],
"users": [
"Id",
"Locati... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Provide the users' display names and available website URLs of the post with favorite count of more than 150. | SELECT T1.DisplayName, T1.WebsiteUrl FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.FavoriteCount > 150 | simple | {
"gold_sql": "SELECT T1.DisplayName, T1.WebsiteUrl FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.FavoriteCount > 150",
"permission": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id",
"W... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Describe the post history counts and last edit date of the post title "What is the best introductory Bayesian statistics textbook?" | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id), T2.LastEditDate FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'What is the best introductory Bayesian statistics textbook?'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"LastEditDate",
"Title"
],
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Describe the last accessed date and location of the users who received the outliers badge. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.LastAccessDate, T1.Location FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T2.Name = 'outliers'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"Id",
"LastAccessDate",
"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",
... | Provide the related post title of "How to tell if something happened in a data set which monitors a value over time". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T3.Title FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN posts AS T3 ON T1.RelatedPostId = T3.Id WHERE T2.Title = 'How to tell if something happened in a data set which monitors a value over time'",
"permission": "denied",
"query_columns": {
"posts": [
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | List the post IDs and badge names of the user Samuel in 2013. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.PostId, T2.Name FROM postHistory AS T1 INNER JOIN badges AS T2 ON T1.UserId = T2.UserId WHERE T1.UserDisplayName = 'Samuel' AND STRFTIME('%Y', T1.CreationDate) = '2013' AND STRFTIME('%Y', T2.`Date`) = '2013'",
"permission": "denied",
"query_columns": {
"badges": [
"Date",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 owner's display name of the most popular post? | SELECT DisplayName FROM users WHERE Id = ( SELECT OwnerUserId FROM posts ORDER BY ViewCount DESC LIMIT 1 ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Id = ( SELECT OwnerUserId FROM posts ORDER BY ViewCount DESC LIMIT 1 )",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"ViewCount"
],
"users": [
"DisplayName"
]
},
"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",
... | Mention the display name and location of the user who owned the excerpt post with hypothesis-testing tag. | SELECT T3.DisplayName, T3.Location FROM tags AS T1 INNER JOIN posts AS T2 ON T1.ExcerptPostId = T2.Id INNER JOIN users AS T3 ON T3.Id = T2.OwnerUserId WHERE T1.TagName = 'hypothesis-testing' | moderate | {
"gold_sql": "SELECT T3.DisplayName, T3.Location FROM tags AS T1 INNER JOIN posts AS T2 ON T1.ExcerptPostId = T2.Id INNER JOIN users AS T3 ON T3.Id = T2.OwnerUserId WHERE T1.TagName = 'hypothesis-testing'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"tag... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Write down the related posts titles and link type IDs of the post "What are principal component scores?". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T3.Title, T2.LinkTypeId FROM posts AS T1 INNER JOIN postLinks AS T2 ON T1.Id = T2.PostId INNER JOIN posts AS T3 ON T2.RelatedPostId = T3.Id WHERE T1.Title = 'What are principal component scores?'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Describe the display name of the parent ID for child post with the highest score. | SELECT DisplayName FROM posts AS T1 JOIN posts AS T2 ON T2.ID = T1.ParentId LEFT JOIN users AS T3 ON T3.Id = T2.OwnerUserId WHERE T1.ParentId IS NOT NULL ORDER BY T1.Score DESC LIMIT 1 | simple | {
"gold_sql": "SELECT DisplayName FROM posts AS T1 JOIN posts AS T2 ON T2.ID = T1.ParentId LEFT JOIN users AS T3 ON T3.Id = T2.OwnerUserId WHERE T1.ParentId IS NOT NULL ORDER BY T1.Score DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"ID",
"OwnerUserId",
"ParentId",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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",
... | Under the vote type of 8, provide the display names and websites URLs of the user who got the highest bounty amount. | SELECT DisplayName, WebsiteUrl FROM users WHERE Id = ( SELECT UserId FROM votes WHERE VoteTypeId = 8 ORDER BY BountyAmount DESC LIMIT 1 ) | moderate | {
"gold_sql": "SELECT DisplayName, WebsiteUrl FROM users WHERE Id = ( SELECT UserId FROM votes WHERE VoteTypeId = 8 ORDER BY BountyAmount DESC LIMIT 1 )",
"permission": "allowed",
"query_columns": {
"votes": [
"BountyAmount",
"Id",
"UserId",
"VoteTypeId"
],
"users": [
"Di... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What are the titles of the top 5 posts with the highest popularity? | SELECT Title FROM posts ORDER BY ViewCount DESC, Id ASC LIMIT 5; | simple | {
"gold_sql": "SELECT Title FROM posts ORDER BY ViewCount DESC, Id ASC LIMIT 5;",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title",
"ViewCount"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 658,
"evidence": "Highe... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 tags have post count between 5,000 to 7,000? | SELECT COUNT(Id) FROM tags WHERE Count BETWEEN 5000 AND 7000 | simple | {
"gold_sql": "SELECT COUNT(Id) FROM tags WHERE Count BETWEEN 5000 AND 7000",
"permission": "allowed",
"query_columns": {
"tags": [
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 659,
"evidence": "post count between 5,000 to 7,000 refers to ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 owner user id of the most valuable post? | SELECT OwnerUserId FROM posts WHERE FavoriteCount = ( SELECT MAX(FavoriteCount) FROM posts ) | simple | {
"gold_sql": "SELECT OwnerUserId FROM posts WHERE FavoriteCount = ( SELECT MAX(FavoriteCount) FROM posts )",
"permission": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
]
},
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How old is the most influential user? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Age FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Reputation"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: 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 posts with votes that were created in 2011 have a bounty of 50? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T2.BountyAmount = 50 AND STRFTIME('%Y', T2.CreationDate) = '2011' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T2.BountyAmount = 50 AND STRFTIME('%Y', T2.CreationDate) = '2011'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id"
],
"votes": [
"BountyAmount",
"CreationDate",
"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",
... | What is the id of the youngest user? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Id FROM users WHERE Age = ( SELECT MIN(Age) FROM users )",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Id"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: users: Age",
"question_id": 663,
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 score of the post on 2010-07-19? | SELECT SUM(Score) FROM posts WHERE LasActivityDate LIKE '2010-07-19%' | simple | {
"gold_sql": "SELECT SUM(Score) FROM posts WHERE LasActivityDate LIKE '2010-07-19%'",
"permission": "allowed",
"query_columns": {
"posts": [
"LasActivityDate",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 664,
"evidence": "on 201... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 monthly number of links created in 2010 for posts that have no more than 2 answers? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'",
"permission": "denied",
"query_columns": {
"posts": [
"AnswerCount",
"Id"
],
"postlinks": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the posts that were voted by user 1465, what is the id of the most valuable post? | SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"votes": [
"PostId",
"UserId"
],
"posts": [
"FavoriteCount",
"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",
... | What is the title of the post with the oldest post link? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"CreaionDate",
"Id",
"Title"
],
"postlinks": [
"PostId"
]
},
"missing_columns": {
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | 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 acquired the highest amount of badges? | SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T2.Id) DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId GROUP BY T1.DisplayName ORDER BY COUNT(T2.Id) DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | When did 'chl' cast its first vote in a post? | SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1 | simple | {
"gold_sql": "SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"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 date when the youngest user made his or her first post? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.CreaionDate FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Age IS NOT NULL ORDER BY T1.Age, T2.CreaionDate LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"CreaionDate",
"OwnerUserId"
],
"users": [
"Age",
"Id"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | 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 acquired the first Autobiographer badge? | SELECT T1.DisplayName
FROM users AS T1
INNER JOIN badges AS T2 ON T1.Id = T2.UserId
WHERE T2.`Name` = 'Autobiographer'
ORDER BY T2.Date ASC, T2.Id ASC
LIMIT 1; | simple | {
"gold_sql": "SELECT T1.DisplayName \nFROM users AS T1 \nINNER JOIN badges AS T2 ON T1.Id = T2.UserId \nWHERE T2.`Name` = 'Autobiographer' \nORDER BY T2.Date ASC, T2.Id ASC \nLIMIT 1;",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"Id",
"Name",
"UserId"
],
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the users located in United Kingdom, how many users whose post have a total favorite amount of 4 or more? | SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4 | moderate | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4",
"permission": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
],
"users": [
"Id",
"Locat... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 posts voted by the oldest users? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(PostId) FROM votes WHERE UserId IN ( SELECT Id FROM users WHERE Age = ( SELECT MAX(Age) FROM users ) )",
"permission": "denied",
"query_columns": {
"votes": [
"Id",
"PostId",
"UserId"
],
"users": [
"Age"
]
},
"missing_columns": {
"users": [... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Who has the highest reputation? Please give the display name. | SELECT DisplayName FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 674,
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many users whose reputations are higher than 2000 and the number of views is higher than 1000? | SELECT COUNT(id) FROM users WHERE Reputation > 2000 AND Views > 1000 | simple | {
"gold_sql": "SELECT COUNT(id) FROM users WHERE Reputation > 2000 AND Views > 1000",
"permission": "allowed",
"query_columns": {
"users": [
"Id",
"Reputation"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 675,
"evidence": "reputations are... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list all display names of users who are adults. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"DisplayName"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: users: Age",
"question_id": 676,
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 did Jay Stevens have in 2010? | SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' AND T1.DisplayName = 'Jay Stevens' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' AND T1.DisplayName = 'Jay Stevens'",
"permission": "allowed",
"query_columns": {
"posts": [
"CreaionDate",
"OwnerUserId"
],
"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",
... | Which post by Harvey Motulsky has the most views? Please give the id and title of this post. | SELECT T2.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' ORDER BY T2.ViewCount DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Harvey Motulsky' ORDER BY T2.ViewCount DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"Title",
"ViewCount"
],
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which post has the highest score? Please give its id and title's name. | SELECT T1.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId ORDER BY T2.Score DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.Id, T2.Title FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId ORDER BY T2.Score DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Score",
"Title"
],
"users": [
"Id"
]
},
"missing_columns": {},... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | 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 Stephen Turner's posts? | SELECT AVG(T2.Score) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Stephen Turner' | simple | {
"gold_sql": "SELECT AVG(T2.Score) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Stephen Turner'",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId",
"Score"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Please list the users' display names whose posts had over 20000 views in 2011. | SELECT T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2011' AND T2.ViewCount > 20000 | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2011' AND T2.ViewCount > 20000",
"permission": "allowed",
"query_columns": {
"posts": [
"CreaionDate",
"OwnerUserId",
"ViewCount"
],
"users":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Which is the most valuable post in 2010? Please give its id and the owner's display name. | SELECT T2.OwnerUserId, T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' ORDER BY T2.FavoriteCount DESC LIMIT 1 | moderate | {
"gold_sql": "SELECT T2.OwnerUserId, T1.DisplayName FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE STRFTIME('%Y', T2.CreaionDate) = '2010' ORDER BY T2.FavoriteCount DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"CreaionDate",
"FavoriteCount",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the percentage of posts whose owners had a reputation of over 1000 in 2011? | SELECT
(SUM(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011' AND T1.Reputation > 1000, 1, 0)) * 100.0)
/ COUNT(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011', 1, NULL))
FROM users AS T1
INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId | moderate | {
"gold_sql": "SELECT \n (SUM(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011' AND T1.Reputation > 1000, 1, 0)) * 100.0) \n / COUNT(IIF(STRFTIME('%Y', T2.CreaionDate) = '2011', 1, NULL))\nFROM users AS T1 \nINNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId",
"permission": "allowed",
"query_columns": {
"posts"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Identify the percentage of teenage users. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users",
"permission": "denied",
"query_columns": {
"users": [
"Age",
"Id"
]
},
"missing_columns": {
"users": [
"Age"
]
},
"reason": "Missing column permissions: 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",
... | Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.ViewCount, T3.DisplayName FROM postHistory AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id INNER JOIN users AS T3 ON T2.LastEditorUserId = T3.Id WHERE T1.Text = 'Computer Game Datasets'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"LastEditorUserId",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Identify the total number of posts with views above average. | SELECT COUNT(*)
FROM posts
WHERE ViewCount > (SELECT AVG(ViewCount) FROM posts) | simple | {
"gold_sql": "SELECT COUNT(*) \nFROM posts \nWHERE ViewCount > (SELECT AVG(ViewCount) FROM posts)",
"permission": "allowed",
"query_columns": {
"posts": [
"ViewCount"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 686,
"evidence": "views above a... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | How many comments were added to the post with the highest score? | SELECT T1.CommentCount
FROM posts T1
WHERE T1.Score = (SELECT MAX(Score) FROM posts); | simple | {
"gold_sql": "SELECT T1.CommentCount\nFROM posts T1\nWHERE T1.Score = (SELECT MAX(Score) FROM posts);",
"permission": "allowed",
"query_columns": {
"posts": [
"CommentCount",
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 687,
"evi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Identify the number of posts that have been viewed over 35000 times but have received no comments from other users. | SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0 | simple | {
"gold_sql": "SELECT COUNT(Id) FROM posts WHERE ViewCount > 35000 AND CommentCount = 0",
"permission": "allowed",
"query_columns": {
"posts": [
"CommentCount",
"Id",
"ViewCount"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 688,
"ev... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Identify the display name and location of the user, who was the last to edit the post with ID 183. | SELECT T2.DisplayName, T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Id = 183 ORDER BY T1.LastEditDate DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.DisplayName, T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Id = 183 ORDER BY T1.LastEditDate DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"LastEditDate",
"OwnerUserId"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Identify the latest badge awarded to the user with the display name Emmett. | SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T1.Name FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Emmett' ORDER BY T1.Date DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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": [
"Age",
"UpVotes"
]
},
"reason": "Missing column permis... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total 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 long did it take the user, known by his or her display name 'Zolomon' to get the badge? Count from the date the user's account was created. | SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon' | moderate | {
"gold_sql": "SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Zolomon'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_colu... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Count the number of posts with a tag specified as 'careers'. | SELECT COUNT(Id) FROM tags WHERE TagName = 'careers' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM tags WHERE TagName = 'careers'",
"permission": "allowed",
"query_columns": {
"tags": [
"Id",
"TagName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 696,
"evidence": "tag specified as 'careers' refers t... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | What is the reputation and view count of the user, who is known by his or her display name 'Jarrod Dixon'? | SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon' | simple | {
"gold_sql": "SELECT Reputation, Views FROM users WHERE DisplayName = 'Jarrod Dixon'",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 697,
"evidence": ""
} |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | When did the user known as 'IrishStat' create his or her account? | SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat' | simple | {
"gold_sql": "SELECT CreationDate FROM users WHERE DisplayName = 'IrishStat'",
"permission": "allowed",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 699,
"evidence": "DisplayNam... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among all the posts posted by the most influential user, identify the percentage with a score above 50. | 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 | 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": "allowed",
"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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | 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_2 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"Text",
"UserDisplayName"
],
"postLinks": [
"CreationDate",
"RelatedPostId"
],
"posts": [
"*"
],
"tags": [
"*"
],
"users": [
"AboutMe",
"AccountId",
"CreationDate",
... | Among the tags with tag ID below 15, how many of them have 20 count of posts and below? | SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15 | simple | {
"gold_sql": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15",
"permission": "allowed",
"query_columns": {
"tags": [
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 703,
"evidence": "ID below 15 refers to Id < 15; have 20 count of ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.