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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Provide the related post title of "How to tell if something happened in a data set which monitors a value over time". | 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' | 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": "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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | List the post IDs and badge names of the user Samuel in 2013. | 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' | 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": "allowed",
"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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Mention the display name and location of the user who owned the excerpt post with hypothesis-testing tag. | Sorry, I cannot answer. | 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": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Write down the related posts titles and link type IDs of the post "What are principal component scores?". | 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?' | 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": "allowed",
"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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Under the vote type of 8, provide the display names and websites URLs of the user who got the highest bounty amount. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT DisplayName, WebsiteUrl FROM users WHERE Id = ( SELECT UserId FROM votes WHERE VoteTypeId = 8 ORDER BY BountyAmount DESC LIMIT 1 )",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"Id",
"WebsiteUrl"
],
"votes": [
"BountyAmount",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | How old is the most influential user? | SELECT Age FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users ) | simple | {
"gold_sql": "SELECT Age FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Reputation"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 661,
"evidence": "How ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the id of the youngest user? | SELECT Id FROM users WHERE Age = ( SELECT MIN(Age) FROM users ) | simple | {
"gold_sql": "SELECT Id FROM users WHERE Age = ( SELECT MIN(Age) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 663,
"evidence": "the youngest user 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the average monthly number of links created in 2010 for posts that have no more than 2 answers? | SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010' | moderate | {
"gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / 12 FROM postLinks AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.AnswerCount <= 2 AND STRFTIME('%Y', T1.CreationDate) = '2010'",
"permission": "allowed",
"query_columns": {
"posts": [
"AnswerCount",
"Id"
],
"postlinks": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among the posts that were voted by user 1465, what is the id of the most valuable post? | SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.Id FROM votes AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T1.UserId = 1465 ORDER BY T2.FavoriteCount DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"Id"
],
"votes": [
"PostId",
"UserId"
]
},
"m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the title of the post with the oldest post link? | SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1 | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN postLinks AS T2 ON T2.PostId = T1.Id ORDER BY T1.CreaionDate LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"CreaionDate",
"Id",
"Title"
],
"postlinks": [
"PostId"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | When did 'chl' cast its first vote in a post? | SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1 | simple | {
"gold_sql": "SELECT T2.CreationDate FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'chl' ORDER BY T2.CreationDate LIMIT 1",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Id"
],
"votes": [
"CreationDate",
"UserId"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the date when the youngest user made his or her first post? | 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 | 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": "allowed",
"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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among the users located in United Kingdom, how many users whose post have a total favorite amount of 4 or more? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.Location = 'United Kingdom' AND T2.FavoriteCount >= 4",
"permission": "denied",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
],
"users": [
"Id",
"Locati... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the average number of posts voted by the oldest users? | SELECT AVG(PostId) FROM votes WHERE UserId IN ( SELECT Id FROM users WHERE Age = ( SELECT MAX(Age) FROM users ) ) | simple | {
"gold_sql": "SELECT AVG(PostId) FROM votes WHERE UserId IN ( SELECT Id FROM users WHERE Age = ( SELECT MAX(Age) FROM users ) )",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Id"
],
"votes": [
"PostId",
"UserId"
]
},
"missing_columns": {},
"reason":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Please list all display names of users who are adults. | SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65 | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Age BETWEEN 19 AND 65",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 676,
"evidence": "adults refer to users wh... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Identify the percentage of teenage users. | SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users | simple | {
"gold_sql": "SELECT CAST(SUM(IIF(Age BETWEEN 13 AND 18, 1, 0)) AS REAL) * 100 / COUNT(Id) FROM users",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 684,
"evidence": "tee... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Identify the total views on the post 'Computer Game Datasets'. Name the user who posted it last time. | 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' | 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": "allowed",
"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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Identify the display name and location of the user, who was the last to edit the post with ID 183. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName, T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Id = 183 ORDER BY T1.LastEditDate DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"LastEditDate",
"OwnerUserId"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Identify the number of adult users who have cast over 5000 upvotes. | SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000 | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE Age BETWEEN 19 AND 65 AND UpVotes > 5000",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Id",
"UpVotes"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 691,
"evidence": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Identify the number of posts and comments left by the user, who has the latest created user account. | SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1 | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id), COUNT(DISTINCT T3.Id) FROM users AS T1 LEFT JOIN posts AS T2 ON T2.OwnerUserId = T1.Id LEFT JOIN comments AS T3 ON T3.UserID = T1.Id ORDER BY T1.CreationDate DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
]... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Provide the text of the latest 10 comments to the post with the title 'Analysing wind data with R' and the display name of the user who left it. | SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10 | moderate | {
"gold_sql": "SELECT T3.Text, T1.DisplayName FROM posts AS T2 INNER JOIN comments AS T3 ON T3.PostID = T2.Id LEFT JOIN users AS T1 ON T1.Id = T3.UserId WHERE T2.Title = 'Analysing wind data with R' ORDER BY T3.CreationDate DESC LIMIT 10",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | 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... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among the tags with tag ID below 15, how many of them have 20 count of posts and below? | SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15 | simple | {
"gold_sql": "SELECT COUNT(id) FROM tags WHERE Count <= 20 AND Id < 15",
"permission": "allowed",
"query_columns": {
"tags": [
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 703,
"evidence": "ID below 15 refers to Id < 15; have 20 count of ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the excerpt post ID and wiki post ID of the tag named sample? | SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample' | simple | {
"gold_sql": "SELECT ExcerptPostId, WikiPostId FROM tags WHERE TagName = 'sample'",
"permission": "allowed",
"query_columns": {
"tags": [
"ExcerptPostId",
"TagName",
"WikiPostId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 704,
"e... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Give the user's reputation and up vote number of the user that commented "fine, you win :)". | SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)' | simple | {
"gold_sql": "SELECT T2.Reputation, T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'fine, you win :)'",
"permission": "allowed",
"query_columns": {
"users": [
"Id",
"Reputation",
"UpVotes"
],
"comments": [
"Text",
"UserId"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Give the texts commented on the post about linear regression. | SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%' | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title LIKE '%linear regression%'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among the posts with views ranging from 100 to 150, what is the comment with the highest score? | SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1 | moderate | {
"gold_sql": "SELECT Text FROM comments WHERE PostId IN ( SELECT Id FROM posts WHERE ViewCount BETWEEN 100 AND 150 ) ORDER BY Score DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score",
"ViewCount"
],
"comments": [
"PostId"
]
},
"missing_... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | List the creation date and age of the user that commented with webiste. | SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%' | moderate | {
"gold_sql": "SELECT T2.CreationDate, T2.Age FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.text LIKE '%http://%'",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"CreationDate",
"Id"
],
"comments": [
"UserId",
"text"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | In comments with 0 score, how many of the posts have view count lower than 5? | SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T1.Score = 0 | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id) FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.ViewCount < 5 AND T1.Score = 0",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"ViewCount"
],
"comments": [
"PostId",
"Score"
]
},
"missin... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | In posts with 1 comment, how many of the comments have 0 score? | SELECT COUNT(T1.id)
FROM comments AS T1
INNER JOIN posts AS T2 ON T1.PostId = T2.Id
WHERE T2.CommentCount = 1 AND T1.Score = 0; | simple | {
"gold_sql": "SELECT COUNT(T1.id)\nFROM comments AS T1\nINNER JOIN posts AS T2 ON T1.PostId = T2.Id\nWHERE T2.CommentCount = 1 AND T1.Score = 0;",
"permission": "allowed",
"query_columns": {
"posts": [
"CommentCount",
"Id"
],
"comments": [
"PostId",
"Score",
"id"
]
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among product comments with 0 score, what is the total number of users aged 40 years old? | SELECT COUNT(DISTINCT T2.Id)
FROM comments AS T1
INNER JOIN users AS T2 ON T1.UserId = T2.Id
WHERE T1.Score = 0 AND T2.Age = 40; | simple | {
"gold_sql": "SELECT COUNT(DISTINCT T2.Id)\nFROM comments AS T1\nINNER JOIN users AS T2 ON T1.UserId = T2.Id\nWHERE T1.Score = 0 AND T2.Age = 40;",
"permission": "allowed",
"query_columns": {
"users": [
"Age",
"Id"
],
"comments": [
"Score",
"UserId"
]
},
"missing_colum... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the post ID and the comments commented in the post titled by "Group differences on a five point Likert item"? | SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item' | simple | {
"gold_sql": "SELECT T2.Id, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'Group differences on a five point Likert item'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | What is the up vote number of the user that commented "R is also lazy evaluated."? | SELECT T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'R is also lazy evaluated.' | simple | {
"gold_sql": "SELECT T2.UpVotes FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Text = 'R is also lazy evaluated.'",
"permission": "allowed",
"query_columns": {
"users": [
"Id",
"UpVotes"
],
"comments": [
"Text",
"UserId"
]
},
"missing_columns"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | List the comments commented by the user with a username of Harvey Motulsky. | SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky' | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Harvey Motulsky'",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Id"
],
"comments": [
"Text",
"UserId"
]
},
"missing_columns": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | In comments with score between 1 to 5, list down the display names of the users with 0 down votes. | SELECT DISTINCT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0 | simple | {
"gold_sql": "SELECT DISTINCT T2.DisplayName FROM comments AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T1.Score BETWEEN 1 AND 5 AND T2.DownVotes = 0",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"DownVotes",
"Id"
],
"comments": [
"Score",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | CommunityModerator | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"*"
],
"postHistory": [
"*"
],
"postLinks": [
"*"
],
"posts": [
"Id",
"PostTypeId",
"AcceptedAnswerId",
"CreaionDate",
"Score",
"ViewCount",
"Body",
"OwnerUserId",
"LasActivity... | Among the comments with scores between 5 to 10, what is the percentage of the users with 0 up votes? | SELECT CAST(COUNT(DISTINCT CASE WHEN T1.UpVotes = 0 THEN T1.Id END) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10 | moderate | {
"gold_sql": "SELECT CAST(COUNT(DISTINCT CASE WHEN T1.UpVotes = 0 THEN T1.Id END) AS REAL) * 100/ COUNT(DISTINCT T1.Id) AS per FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Score BETWEEN 5 AND 10",
"permission": "allowed",
"query_columns": {
"users": [
"Id",
"UpVotes"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Which user has a higher reputation, Harlan or Jarrod Dixon? | SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"mis... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Please list the display names of all the users whose accounts were created in the year 2011. | SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011' | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'",
"permission": "allowed",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 532,
"evidence": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | How many users last accessed the website after 2014/9/1? | SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'",
"permission": "allowed",
"query_columns": {
"users": [
"Id",
"LastAccessDate"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 533,
"evidence": "last acces... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the display name of the user who has the most number of views? | SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users ) | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )",
"permission": "allowed",
"query_columns": {
"users": [
"DisplayName"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 534,
"evidence": "user who has the m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes? | SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1 | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1",
"permission": "allowed",
"query_columns": {
"users": [
"DownVotes",
"Id",
"UpVotes"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 535,
"evidence": "mo... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | How many users with more than 10 views created their account after the year 2013? | SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10 | simple | {
"gold_sql": "SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10",
"permission": "allowed",
"query_columns": {
"users": [
"CreationDate",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 536,
"evidenc... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | How many posts does the user csgillespie own? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"id"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Please list the titles of the posts owned by the user csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Who is the owner of the post "Eliciting priors from experts"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the title of the post that is owned by csgillespie and has the highest popularity? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' ORDER BY T1.ViewCount DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title",
"ViewCount"
],
"users": [
"Di... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the display name of the user who is the owner of the most valuable post? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the total number of comments of all the posts owned by csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.CommentCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | For the post that got the most number of answers owned by csgillespie, how many answers did it get? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.AnswerCount \nFROM posts AS T1 \nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id \nWHERE T2.DisplayName = 'csgillespie' \nORDER BY T1.AnswerCount DESC, T1.Id ASC \nLIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"AnswerCount",
"Id",
"OwnerUserId"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'",
"permission": "denied",
"query_columns": {
"posts": [
"LastEditorUserId",
"Title"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Among the posts owned by csgillespie, how many of them are root posts? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id)\nFROM posts AS T1\nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id\nWHERE T2.DisplayName = 'csgillespie' AND T1.ParentId IS NULL;",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"ParentId"
],
"users": [
"DisplayNa... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Please list the display names of all the users who owns a post that is well-finished. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL",
"permission": "denied",
"query_columns": {
"posts": [
"ClosedDate",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"mi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Among the posts owned by an elder user, how many of them have a score of over 19? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"Score"
],
"users": [
"Age",
"Id"
]
},
"missing_c... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the location of the owner of the post "Eliciting priors from experts"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"Id",
"Location"
]
},
"missi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | From which post is the tag "bayesian" excerpted from? Please give the body of the post. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Body FROM tags AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.ExcerptPostId WHERE T1.TagName = 'bayesian'",
"permission": "denied",
"query_columns": {
"posts": [
"Body",
"Id"
],
"tags": [
"ExcerptPostId",
"TagName"
]
},
"missing_columns": {
"pos... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | From which post is the most popular tag excerpted from? Please give the body of the post. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Body FROM posts WHERE id = ( SELECT ExcerptPostId FROM tags ORDER BY Count DESC LIMIT 1 )",
"permission": "denied",
"query_columns": {
"posts": [
"Id"
],
"tags": [
"ExcerptPostId"
]
},
"missing_columns": {
"tags": [
"ExcerptPostId"
]
},
"reas... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | How many badges has the user csgillespie obtained? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Please list the names of the badges obtained by csgillespie. | SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Among the badges obtained by csgillespie, how many of them were obtained in the year 2011? | SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'",
"permission": "allowed",
"query_columns": {
"badges": [
"Date",
"Id",
"UserId"
],
"users": [
"DisplayName... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the display name of the user who has obtained the most number of badges? | SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1 | simple | {
"gold_sql": "SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the average score of the posts owned by the user csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Score"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_colu... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What is the average number of badges obtained by a user with over 200 views? | SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200 | simple | {
"gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Among the posts with a score of over 5, what is the percentage of them being owned by an elder user? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"Score"
],
"users": [
"Age",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | How many votes did the user No.58 take on 2010/7/19? | SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19'",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"Id",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 558,
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Indicate the creation date of the maximum number of votes. | SELECT CreationDate
FROM votes
GROUP BY CreationDate
ORDER BY COUNT(Id) DESC, CreationDate ASC
LIMIT 1 | simple | {
"gold_sql": "SELECT CreationDate \nFROM votes \nGROUP BY CreationDate \nORDER BY COUNT(Id) DESC, CreationDate ASC \nLIMIT 1",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"quest... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Give the number of "Revival" badges. | SELECT COUNT(Id) FROM badges WHERE Name = 'Revival' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"Name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 560,
"evidence": "number refers to Id; 'Revival' is the... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | What are the titles of all posts that have comments with the highest score? | SELECT DISTINCT p.Title FROM posts p INNER JOIN comments c ON p.Id = c.PostId WHERE c.Score = (SELECT MAX(Score) FROM comments) ORDER BY p.Title ASC | simple | {
"gold_sql": "SELECT DISTINCT p.Title FROM posts p INNER JOIN comments c ON p.Id = c.PostId WHERE c.Score = (SELECT MAX(Score) FROM comments) ORDER BY p.Title ASC",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score",
"Title"
],
"comments": [
"PostId",
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | For the post which got 1910 view counts, how many comments does it get? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910 | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"ViewCount"
],
"comments": [
"PostId"
]
},
"missing_columns": {},
"reason": "All requi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | User No.3025 gave a comment at 20:29:39 on 2014/4/23 to a post, how many favorite counts did that post get? | SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025 | moderate | {
"gold_sql": "SELECT T1.FavoriteCount FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T2.CreationDate = '2014-04-23 20:29:39.0' AND T2.UserId = 3025",
"permission": "allowed",
"query_columns": {
"posts": [
"FavoriteCount",
"Id"
],
"comments": [
"CreationDate",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | ContentAnalyst | {
"badges": [
"Id",
"UserId",
"Name",
"Date"
],
"comments": [
"Id",
"PostId",
"Score",
"CreationDate",
"UserId"
],
"postHistory": [
"Id",
"PostHistoryTypeId",
"PostId",
"CreationDate",
"UserId"
],
"postLinks": [
"Id",
"CreationDate",
"Pos... | Give the comment text of the post with only one comment and parent id 107829. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Text FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ParentId = 107829 AND T1.CommentCount = 1",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount",
"Id",
"ParentId"
],
"comments": [
"PostId",
"Text"
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.