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 |
|---|---|---|---|---|---|---|---|
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For the set which had 'SS2' as the code, what is its magic card market id? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT mcmId FROM sets WHERE code = 'SS2'",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"mcmId"
]
},
"missing_columns": {
"sets": [
"mcmId"
]
},
"reason": "Missing column permissions: sets: mcmId",
"question_id": 490,
"evidence": "magic... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What's the magic card market name for the set which was released on 2017/6/9? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT mcmName FROM sets WHERE releaseDate = '2017-06-09'",
"permission": "denied",
"query_columns": {
"sets": [
"mcmName",
"releaseDate"
]
},
"missing_columns": {
"sets": [
"mcmName",
"releaseDate"
]
},
"reason": "Missing column permissions: sets: mc... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For the set "From the Vault: Lore", what is its expansion type? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT type FROM sets WHERE name LIKE '%FROM the Vault: Lore%'",
"permission": "denied",
"query_columns": {
"sets": [
"name"
]
},
"missing_columns": {
"sets": [
"name"
]
},
"reason": "Missing column permissions: sets: name",
"question_id": 492,
"evidence": "s... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For the set "Commander 2014 Oversized" , give its parent code. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT parentCode FROM sets WHERE name = 'Commander 2014 Oversized'",
"permission": "denied",
"query_columns": {
"sets": [
"name",
"parentCode"
]
},
"missing_columns": {
"sets": [
"name",
"parentCode"
]
},
"reason": "Missing column permissions: sets: ... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For all cards illustrated by Jim Pavelec. and describe the text of the ruling of these cards. Do these cards have missing or degraded properties and values. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T2.text , CASE WHEN T1.hasContentWarning = 1 THEN 'YES' ELSE 'NO' END FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Jim Pavelec'",
"permission": "denied",
"query_columns": {
"cards": [
"artist",
"hasContentWarning",
"uuid"
],
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What was the release date for the set which card "Evacuation" in it? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Evacuation'",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"releaseDate"
],
"cards": [
"name",
"setCode"
]
},
"missing_columns": {
"s... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many cards are there in the set of "Rinascita di Alara"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.baseSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Rinascita di Alara'",
"permission": "denied",
"query_columns": {
"sets": [
"baseSetSize",
"code"
],
"set_translations": [
"setCode",
"translati... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | List the expansion type of the set "Huitième édition". | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT type FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE translation = 'Huitième édition' )",
"permission": "denied",
"query_columns": {
"sets": [
"code"
],
"set_translations": [
"setCode"
]
},
"missing_columns": {
"set_translations": [
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What's the French name of the set of cards with "Tendo Ice Bridge" is in? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Tendo Ice Bridge' AND T2.language = 'French' AND T2.translation IS NOT NULL",
"permission": "denied",
"query_columns": {
"cards": [
"name",
"setCode"
],
"set_... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many translations of the name of the set "Tenth Edition"? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(DISTINCT T2.translation) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Tenth Edition'",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"name"
],
"set_translations": [
"setCode",
"translation"... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Tell the Japanese name of the set which card "Fellwar Stone" is in it. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Fellwar Stone' AND T2.language = 'Japanese' AND T2.translation IS NOT NULL",
"permission": "denied",
"query_columns": {
"cards": [
"name",
"setCode"
],
"set_t... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Which card name in the set 'Journey into Nyx Hero's Path' has the highest converted mana cost. | Sorry, I cannot answer. | moderate | {
"gold_sql": "WITH MaxCMC AS (\n SELECT MAX(T1.convertedManaCost) AS max_cmc\n FROM cards AS T1\n INNER JOIN sets AS T2 ON T2.code = T1.setCode\n WHERE T2.name = 'Journey into Nyx Hero''s Path'\n)\nSELECT T1.name\nFROM cards AS T1\nINNER JOIN sets AS T2 ON T2.code = T1.setCode\nCROSS JOIN MaxCMC\nWHERE T... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What is the release date for the set "Ola de frío"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.releaseDate FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Ola de frío'",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"releaseDate"
],
"set_translations": [
"setCode",
"translation"
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What was the expansion type for the set which card "Samite Pilgrim" in it? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT type FROM sets WHERE code IN ( SELECT setCode FROM cards WHERE name = 'Samite Pilgrim' )",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"name"
],
"cards": [
"setCode"
]
},
"missing_columns": {
"sets": [
"name"
]
},
"reas... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many cards are there in the set 'World Championship Decks 2004' with the converted mana cost as '3'. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(id) FROM cards WHERE setCode IN ( SELECT code FROM sets WHERE name = 'World Championship Decks 2004' ) AND convertedManaCost = 3",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"id",
"name"
],
"cards": [
"convertedManaCost",
"set... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Show the Simplified Chinese translation of the name of the set "Mirrodin"? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT translation FROM set_translations WHERE setCode IN ( SELECT code FROM sets WHERE name = 'Mirrodin' ) AND language = 'Chinese Simplified'",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"name"
],
"set_translations": [
"setCode"
]
},
"missin... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For all the set of cards that has Japanese translation, what is the percentage of them are only available in non-foil? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN isNonFoilOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Japanese' )",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"id",
"isNonFoilOnly"
],
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | For all the cards that have a Brazilian Portuguese translation, what is the percentage of them that are only available online? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT CAST(SUM(CASE WHEN T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Portuguese (Brazil)'",
"permission": "denied",
"query_columns": {
"foreign_data": [
"language",
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What are the available printing types of the cards that doesn't have a text box created by Aleksi Briclot? | SELECT DISTINCT availability FROM cards WHERE artist = 'Aleksi Briclot' AND isTextless = 1 | moderate | {
"gold_sql": "SELECT DISTINCT availability FROM cards WHERE artist = 'Aleksi Briclot' AND isTextless = 1",
"permission": "allowed",
"query_columns": {
"cards": [
"artist",
"availability",
"isTextless"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"q... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What is the unique id of the set that has the highest number of cards? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT id FROM sets ORDER BY baseSetSize DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"sets": [
"baseSetSize",
"id"
]
},
"missing_columns": {
"sets": [
"baseSetSize"
]
},
"reason": "Missing column permissions: sets: baseSetSize",
"question_id... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Among the cards that doesn't have multiple faces on the same card, who is the illustrator of the card art that has the highest cost of converted mana? | SELECT artist FROM cards WHERE side IS NULL ORDER BY convertedManaCost DESC LIMIT 1 | simple | {
"gold_sql": "SELECT artist FROM cards WHERE side IS NULL ORDER BY convertedManaCost DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"cards": [
"artist",
"convertedManaCost",
"side"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What is the most common visual frame effects among the incredibly powerful foils? | SELECT frameEffects FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL GROUP BY frameEffects ORDER BY COUNT(frameEffects) DESC LIMIT 1 | moderate | {
"gold_sql": "SELECT frameEffects FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL GROUP BY frameEffects ORDER BY COUNT(frameEffects) DESC LIMIT 1",
"permission": "allowed",
"query_columns": {
"cards": [
"cardKingdomFoilId",
"cardKingdomId",
"frameEffects"
]
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many cards with unknown power that can't be found in foil is in duel deck A? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(CASE WHEN power = '*' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE hasFoil = 0 AND duelDeck = 'a'",
"permission": "denied",
"query_columns": {
"cards": [
"duelDeck",
"hasFoil",
"power"
]
},
"missing_columns": {
"cards": [
"hasFoil"
]
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Among the sets whose expansion type is Commander, which set has the highest total number of cards including promotional and related supplemental products but excluding Alchemy modifications? Indicate the id of the set. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT id FROM sets WHERE type = 'commander' ORDER BY totalSetSize DESC, id ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"sets": [
"id",
"totalSetSize"
]
},
"missing_columns": {
"sets": [
"totalSetSize"
]
},
"reason": "Missing column permissions... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | In duels, what are the top 10 cards with the highest converted mana cost? | SELECT DISTINCT name FROM cards WHERE uuid IN ( SELECT uuid FROM legalities WHERE format = 'duel' ) ORDER BY convertedManaCost DESC, name ASC LIMIT 10 | simple | {
"gold_sql": "SELECT DISTINCT name FROM cards WHERE uuid IN ( SELECT uuid FROM legalities WHERE format = 'duel' ) ORDER BY convertedManaCost DESC, name ASC LIMIT 10",
"permission": "allowed",
"query_columns": {
"legalities": [
"format"
],
"cards": [
"convertedManaCost",
"name"
]... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | When was the oldest mythic card released and what are its legal play formats? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.originalReleaseDate, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'mythic' AND T1.originalReleaseDate IS NOT NULL AND T2.status = 'Legal' AND T1.originalReleaseDate = (SELECT MIN(originalReleaseDate) FROM cards WHERE rarity = 'mythic' AND origi... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many cards did Volkan Baǵa illustrated whose foreign language is in French? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Volkan Baǵa' AND T2.language = 'French'",
"permission": "denied",
"query_columns": {
"foreign_data": [
"language",
"uuid"
],
"cards": [
"artist",
"id",
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | How many distinct rare enchantment Abundance cards have at least one legal play format? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.rarity = 'rare' AND T1.types = 'Enchantment' AND T1.name = 'Abundance' AND T2.status = 'Legal'",
"permission": "denied",
"query_columns": {
"legalities": [
"status",
"uuid"
],... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Which of the play format has the highest number of banned status? Indicate the play format and the names of all the card meet the condition. | Sorry, I cannot answer. | moderate | {
"gold_sql": "WITH MaxBanned AS (SELECT format, COUNT(*) AS count_banned FROM legalities WHERE status = 'Banned' GROUP BY format ORDER BY COUNT(*) DESC LIMIT 1) SELECT T2.format, T1.name FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid INNER JOIN MaxBanned MB ON MB.format = T2.format WHERE T2.status... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What is the language of the "Battlebond" set? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT language FROM set_translations WHERE id IN ( SELECT id FROM sets WHERE name = 'Battlebond' )",
"permission": "denied",
"query_columns": {
"sets": [
"id",
"name"
],
"set_translations": []
},
"missing_columns": {
"sets": [
"name"
]
},
"reason": "Mi... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Who is the illustrator that illustrated the least amount of cards? List the format of play of the cards that he/she illustrated. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.artist, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid GROUP BY T1.artist ORDER BY COUNT(T1.id) ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"legalities": [
"format",
"uuid"
],
"cards": [
"artist",
"id",
"u... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Among the cards whose version of frame style is 1997, what is the status of the card illustrated by D. Alexander Gregory in legacy play format that has sensitive content? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.frameVersion = 1997 AND T1.hasContentWarning = 1 AND T1.artist = 'D. Alexander Gregory' AND T2.format = 'legacy'",
"permission": "denied",
"query_columns": {
"legalities": [
"format",
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Which cards are ranked 1st on EDHRec? List all of the cards name and its banned play format. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.name, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T2.uuid = T1.uuid WHERE T1.edhrecRank = 1 AND T2.status = 'Banned' GROUP BY T1.name, T2.format",
"permission": "denied",
"query_columns": {
"legalities": [
"format",
"status",
"uuid"
],
"cards": ... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What is the annual average number of sets that were released between 1/1/2012 to 12/31/2015? Indicate the common langugage of the card. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT (CAST(SUM(T1.id) AS REAL) / COUNT(T1.id)) / 4, T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.id = T2.id WHERE T1.releaseDate BETWEEN '2012-01-01' AND '2015-12-31' GROUP BY T1.releaseDate ORDER BY COUNT(T2.language) DESC LIMIT 1",
"permission": "denied",
"query_columns":... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | List the artists who illustrated cards with black borders which are available only in arena. | SELECT DISTINCT artist FROM cards WHERE availability = 'arena' AND BorderColor = 'black' | simple | {
"gold_sql": "SELECT DISTINCT artist FROM cards WHERE availability = 'arena' AND BorderColor = 'black'",
"permission": "allowed",
"query_columns": {
"cards": [
"artist",
"availability",
"borderColor"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"qu... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Find the uuid of cards in which the old school format is restricted or banned. | SELECT uuid FROM legalities WHERE format = 'oldschool' AND (status = 'Banned' OR status = 'Restricted') | simple | {
"gold_sql": "SELECT uuid FROM legalities WHERE format = 'oldschool' AND (status = 'Banned' OR status = 'Restricted')",
"permission": "allowed",
"query_columns": {
"legalities": [
"format",
"status"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Among the card designed by Matthew D. Wilson, how many are available only in the paper? | SELECT COUNT(id) FROM cards WHERE artist = 'Matthew D. Wilson' AND availability = 'paper' | simple | {
"gold_sql": "SELECT COUNT(id) FROM cards WHERE artist = 'Matthew D. Wilson' AND availability = 'paper'",
"permission": "allowed",
"query_columns": {
"cards": [
"artist",
"availability",
"id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_i... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | What are the rulings for the card named and designed by Kev Walker? List them in descending order of dates. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Kev Walker' ORDER BY T2.date DESC",
"permission": "denied",
"query_columns": {
"cards": [
"artist",
"uuid"
],
"rulings": [
"date",
"text",
"uuid"
]
},
"... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | List the names of all the cards in the set Hour of Devastation and find the formats in which these cards are legal. | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT DISTINCT T2.name , CASE WHEN T1.status = 'Legal' THEN T1.format ELSE NULL END FROM legalities AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid WHERE T2.setCode IN ( SELECT code FROM sets WHERE name = 'Hour of Devastation' )",
"permission": "denied",
"query_columns": {
"legalities": [
... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | Find and list the names of sets which doesn't have Japanese translation but have Korean translation. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT name FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE language = 'Korean' AND language NOT LIKE '%Japanese%' )",
"permission": "denied",
"query_columns": {
"sets": [
"code",
"name"
],
"set_translations": [
"setCode"
]
},
"missing_colu... |
card_games | ##Instruction:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Database: card_games
Total Tables: 6
Total Columns: 115
Table Schemas:
Table: cards (74 columns)
-------------------------
• id (integer)
• artist (text): The name of the artist that illustrated the card art.
• asciiName (text): T... | DataOperator_3 | {
"cards": [
"artist",
"availability",
"borderColor",
"cardKingdomFoilId",
"cardKingdomId",
"colorIdentity",
"colorIndicator",
"colors",
"convertedManaCost",
"duelDeck",
"faceConvertedManaCost",
"faceName",
"flavorName",
"flavorText",
"frameEffects",
"ha... | List all the frame styles and cards Allen Williams worked on and find any banned cards if there are any. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT \n T1.frameVersion, \n T1.name,\n CASE \n WHEN EXISTS (SELECT 1 FROM legalities AS T2 WHERE T2.uuid = T1.uuid AND T2.status = 'Banned') \n THEN 'Banned' \n ELSE 'Not Banned' \n END AS banned_status\nFROM cards AS T1\nWHERE T1.artist = 'Allen Williams'\nORDER BY T... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Which user has a higher reputation, Harlan or Jarrod Dixon? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') AND Reputation = ( SELECT MAX(Reputation) FROM users WHERE DisplayName IN ('Harlan', 'Jarrod Dixon') )",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"Reputation"
]
},
"miss... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Please list the display names of all the users whose accounts were created in the year 2011. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE STRFTIME('%Y', CreationDate) = '2011'",
"permission": "denied",
"query_columns": {
"users": [
"CreationDate",
"DisplayName"
]
},
"missing_columns": {
"users": [
"DisplayName"
]
},
"reason": "Missing column permissions: us... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many users last accessed the website after 2014/9/1? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE date(LastAccessDate) > '2014-09-01'",
"permission": "denied",
"query_columns": {
"users": [
"Id",
"LastAccessDate"
]
},
"missing_columns": {
"users": [
"Id"
]
},
"reason": "Missing column permissions: users: Id",
"questio... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the display name of the user who has the most number of views? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE Views = ( SELECT MAX(Views) FROM users )",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName"
]
},
"missing_columns": {
"users": [
"DisplayName"
]
},
"reason": "Missing column permissions: users: DisplayName",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Among the users who have more than 100 upvotes, how many of them have more then 1 downvotes? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(Id) FROM users WHERE Upvotes > 100 AND Downvotes > 1",
"permission": "denied",
"query_columns": {
"users": [
"DownVotes",
"Id",
"UpVotes"
]
},
"missing_columns": {
"users": [
"Id"
]
},
"reason": "Missing column permissions: users: Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many users with more than 10 views created their account after the year 2013? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(id) FROM users WHERE STRFTIME('%Y', CreationDate) > '2013' AND Views > 10",
"permission": "denied",
"query_columns": {
"users": [
"CreationDate",
"Id"
]
},
"missing_columns": {
"users": [
"Id"
]
},
"reason": "Missing column permissions: users: ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many posts does the user csgillespie own? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"id"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Please list the titles of the posts owned by the user csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Who is the owner of the post "Eliciting priors from experts"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the title of the post that is owned by csgillespie and has the highest popularity? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie' ORDER BY T1.ViewCount DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title",
"ViewCount"
],
"users": [
"Di... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the display name of the user who is the owner of the most valuable post? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id ORDER BY T1.FavoriteCount DESC LIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"FavoriteCount",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the total number of comments of all the posts owned by csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.CommentCount) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the post that got the most number of answers owned by csgillespie, how many answers did it get? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.AnswerCount \nFROM posts AS T1 \nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id \nWHERE T2.DisplayName = 'csgillespie' \nORDER BY T1.AnswerCount DESC, T1.Id ASC \nLIMIT 1",
"permission": "denied",
"query_columns": {
"posts": [
"AnswerCount",
"Id",
"OwnerUserId"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the display name of the user who last edited the post "Examples for teaching: Correlation does not mean causation"? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Examples for teaching: Correlation does not mean causation'",
"permission": "denied",
"query_columns": {
"posts": [
"LastEditorUserId",
"Title"
],
"users": [
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Among the posts owned by csgillespie, how many of them are root posts? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id)\nFROM posts AS T1\nINNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id\nWHERE T2.DisplayName = 'csgillespie' AND T1.ParentId IS NULL;",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"ParentId"
],
"users": [
"DisplayNa... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Please list the display names of all the users who owns a post that is well-finished. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.ClosedDate IS NOT NULL",
"permission": "denied",
"query_columns": {
"posts": [
"ClosedDate",
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"mi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Among the posts owned by an elder user, how many of them have a score of over 19? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score >= 20 AND T2.Age > 65",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"Score"
],
"users": [
"Age",
"Id"
]
},
"missing_c... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the location of the owner of the post "Eliciting priors from experts"? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Location FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Title = 'Eliciting priors from experts'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"Id",
"Location"
]
},
"missi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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": {
"tag... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many badges has the user csgillespie obtained? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Please list the names of the badges obtained by csgillespie. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.`Name` FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Among the badges obtained by csgillespie, how many of them were obtained in the year 2011? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE STRFTIME('%Y', T1.Date) = '2011' AND T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"badges": [
"Date",
"Id",
"UserId"
],
"users": [
"DisplayName"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the display name of the user who has obtained the most number of badges? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.DisplayName FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id GROUP BY T2.Id ORDER BY COUNT(T1.Id) DESC, T2.Id ASC LIMIT 1",
"permission": "denied",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the average score of the posts owned by the user csgillespie? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT AVG(T1.Score) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T2.DisplayName = 'csgillespie'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Score"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_colu... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the average number of badges obtained by a user with over 200 views? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT CAST(COUNT(T1.Id) AS REAL) / COUNT(DISTINCT T2.DisplayName) FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.Views > 200",
"permission": "denied",
"query_columns": {
"badges": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Among the posts with a score of over 5, what is the percentage of them being owned by an elder user? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT CAST(SUM(IIF(T2.Age > 65, 1, 0)) AS REAL) * 100 / COUNT(T1.Id) FROM posts AS T1 INNER JOIN users AS T2 ON T1.OwnerUserId = T2.Id WHERE T1.Score > 5",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId",
"Score"
],
"users": [
"Age",
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many votes did the user No.58 take on 2010/7/19? | SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM votes WHERE UserId = 58 AND CreationDate = '2010-07-19'",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"Id",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 558,
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Indicate the creation date of the maximum number of votes. | SELECT CreationDate
FROM votes
GROUP BY CreationDate
ORDER BY COUNT(Id) DESC, CreationDate ASC
LIMIT 1 | simple | {
"gold_sql": "SELECT CreationDate \nFROM votes \nGROUP BY CreationDate \nORDER BY COUNT(Id) DESC, CreationDate ASC \nLIMIT 1",
"permission": "allowed",
"query_columns": {
"votes": [
"CreationDate",
"Id"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"quest... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Give the number of "Revival" badges. | SELECT COUNT(Id) FROM badges WHERE Name = 'Revival' | simple | {
"gold_sql": "SELECT COUNT(Id) FROM badges WHERE Name = 'Revival'",
"permission": "allowed",
"query_columns": {
"badges": [
"Id",
"Name"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 560,
"evidence": "number refers to Id; 'Revival' is the... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What are the titles of all posts that have comments with the highest score? | SELECT DISTINCT p.Title FROM posts p INNER JOIN comments c ON p.Id = c.PostId WHERE c.Score = (SELECT MAX(Score) FROM comments) ORDER BY p.Title ASC | simple | {
"gold_sql": "SELECT DISTINCT p.Title FROM posts p INNER JOIN comments c ON p.Id = c.PostId WHERE c.Score = (SELECT MAX(Score) FROM comments) ORDER BY p.Title ASC",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Score",
"Title"
],
"comments": [
"PostId",
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the post which got 1910 view counts, how many comments does it get? | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910 | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ViewCount = 1910",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"ViewCount"
],
"comments": [
"PostId"
]
},
"missing_columns": {},
"reason": "All requi... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | 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... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Give the comment text of the post with only one comment and parent id 107829. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Text FROM posts AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.PostId WHERE T1.ParentId = 107829 AND T1.CommentCount = 1",
"permission": "denied",
"query_columns": {
"posts": [
"CommentCount",
"Id",
"ParentId"
],
"comments": [
"PostId",
"Text"
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | User No.23853 gave a comment to a post at 9:08:18 on 2013/7/12, was that post well-finished? | SELECT IIF(T2.ClosedDate IS NULL, 'NOT well-finished', 'well-finished') AS resylt
FROM comments AS T1
INNER JOIN posts AS T2 ON T1.PostId = T2.Id
WHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0'; | moderate | {
"gold_sql": "SELECT IIF(T2.ClosedDate IS NULL, 'NOT well-finished', 'well-finished') AS resylt\nFROM comments AS T1\nINNER JOIN posts AS T2 ON T1.PostId = T2.Id\nWHERE T1.UserId = 23853 AND T1.CreationDate = '2013-07-12 09:08:18.0';",
"permission": "allowed",
"query_columns": {
"posts": [
"ClosedDate"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the owner user of post No. 65041, what is his/her reputation points? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Id = 65041",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"OwnerUserId"
],
"users": [
"Id",
"Reputation"
]
},
"missing_columns": {
"users": ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the user with the display name of "Tiago Pasqualini", how many posts did he/she own? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T1.DisplayName = 'Tiago Pasqualini'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Provide the display name of the user who made the vote No.6347. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.UserId WHERE T2.Id = 6347",
"permission": "denied",
"query_columns": {
"votes": [
"Id",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
"users": [
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Give the number of votes for the post about data visualization. | SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%' | simple | {
"gold_sql": "SELECT COUNT(T1.Id) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data visualization%'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"votes": [
"PostId"
]
},
"missing_columns": {},
"reason": "Al... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the user whose display name is "DatEpicCoderGuyWhoPrograms", what is his/her badge's name? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'DatEpicCoderGuyWhoPrograms'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_colu... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | For the user No.24, how many times is the number of his/her posts compared to his/her votes? | SELECT
(SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) /
(SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24) | moderate | {
"gold_sql": "SELECT \n (SELECT CAST(COUNT(*) AS REAL) FROM posts WHERE OwnerUserId = 24) /\n (SELECT CAST(COUNT(*) AS REAL) FROM votes WHERE UserId = 24)",
"permission": "allowed",
"query_columns": {
"posts": [
"OwnerUserId"
],
"votes": [
"UserId"
]
},
"missing_columns": {}... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How many views did the post titled 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' get? | SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer' | moderate | {
"gold_sql": "SELECT ViewCount FROM posts WHERE Title = 'Integration of Weka and/or RapidMiner into Informatica PowerCenter/Developer'",
"permission": "allowed",
"query_columns": {
"posts": [
"Title",
"ViewCount"
]
},
"missing_columns": {},
"reason": "All required columns are permitted"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Write the contents of comments with a score of 17. | SELECT Text FROM comments WHERE Score = 17 | simple | {
"gold_sql": "SELECT Text FROM comments WHERE Score = 17",
"permission": "allowed",
"query_columns": {
"comments": [
"Score"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 573,
"evidence": "score of 17 refers to Score = 17; contents of comments ... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Which user has the website URL listed at 'http://stackoverflow.com' | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DisplayName FROM users WHERE WebsiteUrl = 'http://stackoverflow.com'",
"permission": "denied",
"query_columns": {
"users": [
"DisplayName",
"WebsiteUrl"
]
},
"missing_columns": {
"users": [
"DisplayName",
"WebsiteUrl"
]
},
"reason": "Missing co... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the badge name that user 'SilentGhost' obtained? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Name FROM users AS T1 INNER JOIN badges AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'SilentGhost'",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
"us... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Name the user that commented 'thank you user93!' | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.DisplayName FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T2.Text = 'thank you user93!'",
"permission": "denied",
"query_columns": {
"comments": [
"Text",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns":... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Write all comments made by user 'A Lion.' | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T2.Text FROM users AS T1 INNER JOIN comments AS T2 ON T1.Id = T2.UserId WHERE T1.DisplayName = 'A Lion'",
"permission": "denied",
"query_columns": {
"comments": [
"Text",
"UserId"
],
"users": [
"DisplayName",
"Id"
]
},
"missing_columns": {
"com... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Which user made a post titled 'Understanding what Dassault iSight is doing?' and how much is the reputation of the user? | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T1.DisplayName, T1.Reputation FROM users AS T1 INNER JOIN posts AS T2 ON T1.Id = T2.OwnerUserId WHERE T2.Title = 'Understanding what Dassault iSight is doing?'",
"permission": "denied",
"query_columns": {
"posts": [
"OwnerUserId",
"Title"
],
"users": [
"DisplayN... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Write all comments made on the post titled 'How does gentle boosting differ from AdaBoost?' | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T1.PostId = T2.Id WHERE T2.Title = 'How does gentle boosting differ from AdaBoost?'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"comments": [
"PostId",
"Text"
]
},
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Name 10 users with the badge name 'Necromancer.' | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT DISTINCT T1.DisplayName\nFROM users AS T1\nINNER JOIN badges AS T2 ON T1.Id = T2.UserId\nWHERE T2.Name = 'Necromancer'\nORDER BY T1.Id ASC\nLIMIT 10;",
"permission": "denied",
"query_columns": {
"badges": [
"Name",
"UserId"
],
"users": [
"DisplayName",
"Id... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Who is the editor of the post titled 'Open source tools for visualizing multi-dimensional data?' | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT T2.DisplayName FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T1.Title = 'Open source tools for visualizing multi-dimensional data?'",
"permission": "denied",
"query_columns": {
"posts": [
"LastEditorUserId",
"Title"
],
"users": [
"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | List the title of posts which were edited by Vebjorn Ljosa. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT T1.Title\nFROM posts AS T1\nINNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id\nWHERE T2.DisplayName = 'Vebjorn Ljosa';",
"permission": "denied",
"query_columns": {
"posts": [
"LastEditorUserId",
"Title"
],
"users": [
"DisplayName",
"Id"
]
},
"m... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | What is the total score of the posts edited by Yevgeny and include the user's website URL. | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT SUM(T1.Score), T2.WebsiteUrl FROM posts AS T1 INNER JOIN users AS T2 ON T1.LastEditorUserId = T2.Id WHERE T2.DisplayName = 'Yevgeny' GROUP BY T2.WebsiteUrl",
"permission": "denied",
"query_columns": {
"posts": [
"LastEditorUserId",
"Score"
],
"users": [
"Display... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Write all the comments left by users who edited the post titled 'Why square the difference instead of taking the absolute value in standard deviation?' | SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?' | moderate | {
"gold_sql": "SELECT T2.Comment FROM posts AS T1 INNER JOIN postHistory AS T2 ON T1.Id = T2.PostId WHERE T1.Title = 'Why square the difference instead of taking the absolute value in standard deviation?'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"posthistor... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | How much is the total bounty amount of the post titled about 'data' | SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%' | simple | {
"gold_sql": "SELECT SUM(T2.BountyAmount) FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId WHERE T1.Title LIKE '%data%'",
"permission": "allowed",
"query_columns": {
"posts": [
"Id",
"Title"
],
"votes": [
"BountyAmount",
"PostId"
]
},
"missing_columns": {},... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Which user added a bounty amount of 50 to the post title mentioning variance? | Sorry, I cannot answer. | challenging | {
"gold_sql": "SELECT T3.DisplayName, T1.Title FROM posts AS T1 INNER JOIN votes AS T2 ON T1.Id = T2.PostId INNER JOIN users AS T3 ON T3.Id = T2.UserId WHERE T2.BountyAmount = 50 AND T1.Title LIKE '%variance%'",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Title"
],
"votes"... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Calculate the average view count of each post tagged as 'humor' and list the title and the comment of each post. | Sorry, I cannot answer. | moderate | {
"gold_sql": "SELECT AVG(T2.ViewCount), T2.Title, T1.Text FROM comments AS T1 INNER JOIN posts AS T2 ON T2.Id = T1.PostId WHERE T2.Tags = '<humor>' GROUP BY T2.Title, T1.Text ",
"permission": "denied",
"query_columns": {
"posts": [
"Id",
"Tags",
"Title",
"ViewCount"
],
"comme... |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Give the total number of comments posted by user ID 13. | SELECT COUNT(Id) FROM comments WHERE UserId = 13 | simple | {
"gold_sql": "SELECT COUNT(Id) FROM comments WHERE UserId = 13",
"permission": "allowed",
"query_columns": {
"comments": [
"Id",
"UserId"
]
},
"missing_columns": {},
"reason": "All required columns are permitted",
"question_id": 588,
"evidence": ""
} |
codebase_community | ##Instruction:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Database: codebase_community
Total Tables: 8
Total Columns: 71
Table Schemas:
Table: badges (4 columns)
-------------------------
• Id (integer): the badge id
• UserId (integer): the unique id of the user
• Name (text): the... | DataOperator_1 | {
"badges": [
"*"
],
"comments": [
"CreationDate",
"Id",
"PostId",
"Score",
"UserDisplayName",
"UserId"
],
"postHistory": [
"*"
],
"postLinks": [
"Id",
"LinkTypeId",
"PostId",
"RelatedPostId"
],
"posts": [
"*"
],
"users": [
"AboutMe",
"Ac... | Which user ID has the highest reputation? | Sorry, I cannot answer. | simple | {
"gold_sql": "SELECT Id FROM users WHERE Reputation = ( SELECT MAX(Reputation) FROM users )",
"permission": "denied",
"query_columns": {
"users": [
"Id",
"Reputation"
]
},
"missing_columns": {
"users": [
"Id"
]
},
"reason": "Missing column permissions: users: Id",
"que... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.