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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards are there with toughness of 99?
SELECT COUNT(id) FROM cards WHERE toughness = 99
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE toughness = 99", "permission": "allowed", "query_columns": { "cards": [ "id", "toughness" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 372, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Name the cards that were illustrated by Aaron Boyd.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd'", "permission": "denied", "query_columns": { "cards": [ "artist", "name" ] }, "missing_columns": { "cards": [ "artist" ] }, "reason": "Missing column permissions: cards: artist", "question_id": 3...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many black border cards are only available on mtgo?
SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black'
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black'", "permission": "allowed", "query_columns": { "cards": [ "availability", "borderColor", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List down all the card IDs with converted mana cost of 0.
SELECT id FROM cards WHERE convertedManaCost = 0
simple
{ "gold_sql": "SELECT id FROM cards WHERE convertedManaCost = 0", "permission": "allowed", "query_columns": { "cards": [ "convertedManaCost", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 375, "evidence": "converted mana cost of 0 ref...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the card layout of cards with keyword of flying?
SELECT DISTINCT layout FROM cards WHERE keywords LIKE '%Flying%'
simple
{ "gold_sql": "SELECT DISTINCT layout FROM cards WHERE keywords LIKE '%Flying%'", "permission": "allowed", "query_columns": { "cards": [ "keywords", "layout" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 376, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards with original type of "Summon - Angel" have subtype other than "Angel"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'", "permission": "denied", "query_columns": { "cards": [ "id", "originalType", "subtypes" ] }, "missing_columns": { "cards": [ "originalType", "subtypes" ] },...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the foiled cards that are incredibly powerful when paired with non foiled cards? List the IDs.
SELECT id FROM cards WHERE cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL
simple
{ "gold_sql": "SELECT id FROM cards WHERE cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "cardKingdomFoilId", "cardKingdomId", "id" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the cards belong to duel deck a? List the ID.
SELECT id FROM cards WHERE duelDeck = 'a'
simple
{ "gold_sql": "SELECT id FROM cards WHERE duelDeck = 'a'", "permission": "allowed", "query_columns": { "cards": [ "duelDeck", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 379, "evidence": "duel deck a refers to duelDeck = a;" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List the edhrecRank for cards with frame version 2015.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT edhrecRank FROM cards WHERE frameVersion = 2015", "permission": "denied", "query_columns": { "cards": [ "edhrecRank", "frameVersion" ] }, "missing_columns": { "cards": [ "frameVersion" ] }, "reason": "Missing column permissions: cards: frameVersion",...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List down the name of artists for cards in Chinese Simplified.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.artist\nFROM cards AS T1\nINNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid\nWHERE T2.language = 'Chinese Simplified';", "permission": "denied", "query_columns": { "foreign_data": [ "language", "uuid" ], "cards": [ "artist", "uuid" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the cards that only available in paper and Japanese language?
SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'paper' AND T2.language = 'Japanese'
simple
{ "gold_sql": "SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'paper' AND T2.language = 'Japanese'", "permission": "allowed", "query_columns": { "foreign_data": [ "language", "uuid" ], "cards": [ "availability", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many of the cards which is banned at least in one format are white border?
SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'", "permission": "allowed", "query_columns": { "legalities": [ "status", "uuid" ], "cards": [ "borderColor", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List down the uuid for legacy cards and the foreign language of these cards.
SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'legacy'
simple
{ "gold_sql": "SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'legacy'", "permission": "allowed", "query_columns": { "legalities": [ "format", "uuid" ], "foreign_data": [ ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Write down the ruling of Beacon of Immortality.
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Beacon of Immortality'
simple
{ "gold_sql": "SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Beacon of Immortality'", "permission": "allowed", "query_columns": { "cards": [ "name", "uuid" ], "rulings": [ "text", "uuid" ] }, "missing_columns": {}, "rea...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many legal cards are having future frame version?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.frameVersion = 'future' AND T2.status = 'Legal'", "permission": "denied", "query_columns": { "legalities": [ "status", "uuid" ], "cards": [ "frameVersion", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the cards for set OGW? State the colour for these cards.
SELECT id, colors FROM cards WHERE setCode = 'OGW'
simple
{ "gold_sql": "SELECT id, colors FROM cards WHERE setCode = 'OGW'", "permission": "allowed", "query_columns": { "cards": [ "colors", "id", "setCode" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 387, "evidence": "set OGW refers to se...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the cards in set 10E with converted mana of 5 have translation and what are the languages?
SELECT c.id, c.name, f.language FROM cards c JOIN foreign_data f ON c.uuid = f.uuid WHERE c.setCode = '10E' AND c.convertedManaCost = 5 ORDER BY c.name, f.language;
simple
{ "gold_sql": "SELECT c.id, c.name, f.language\nFROM cards c\nJOIN foreign_data f ON c.uuid = f.uuid\nWHERE c.setCode = '10E' AND c.convertedManaCost = 5\nORDER BY c.name, f.language;", "permission": "allowed", "query_columns": { "foreign_data": [ "language", "uuid" ], "cards": [ "co...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List down the name of cards with original types of Creature - Elf and the date of rulings for these cards.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Elf'", "permission": "denied", "query_columns": { "cards": [ "id", "originalType", "uuid" ], "rulings": [ "date", "uuid" ] }, "m...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the colors of cards from ID 1-20? What are the format of these cards?
SELECT T1.colors, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.id BETWEEN 1 AND 20
simple
{ "gold_sql": "SELECT T1.colors, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.id BETWEEN 1 AND 20", "permission": "allowed", "query_columns": { "legalities": [ "format", "uuid" ], "cards": [ "colors", "id", "uuid" ] }, "miss...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Among the Artifact cards, which are black color and comes with foreign languague translation?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'", "permission": "denied", "query_columns": { "foreign_data": [ "uuid" ], "cards": [ "colors", "name", "originalType"...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'uncommon' ORDER BY T2.date ASC LIMIT 3", "permission": "denied", "query_columns": { "cards": [ "name", "rarity", "uuid" ], "rulings": [ "date", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
On how many cards designed by John Avon is its foil non-powerful?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE (cardKingdomId IS NULL OR cardKingdomFoilId IS NULL) AND artist = 'John Avon'", "permission": "denied", "query_columns": { "cards": [ "artist", "cardKingdomFoilId", "cardKingdomId", "id" ] }, "missing_columns": { "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many white bordered cards are powerful?
SELECT COUNT(id) FROM cards WHERE borderColor = 'white' AND cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE borderColor = 'white' AND cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "cardKingdomFoilId", "cardKingdomId", "id" ] }, "missing_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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo'", "permission": "denied", "query_columns": { "cards": [ "artist", "availability", "hand", "id" ] }, "missing_columns": { "cards": [ "artist", "hand" ] ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards with a 1993 frame version and available on paper have a sensitive content warning?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE frameVersion = '1993' AND availability = 'paper' AND hasContentWarning = 1", "permission": "denied", "query_columns": { "cards": [ "availability", "frameVersion", "hasContentWarning", "id" ] }, "missing_columns": { "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT manaCost\nFROM cards\nWHERE availability = 'mtgo,paper'\n AND borderColor = 'black'\n AND frameVersion = 2003\n AND layout = 'normal';", "permission": "denied", "query_columns": { "cards": [ "availability", "borderColor", "frameVersion", "layout", "manaCo...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the unconverted mana do all the cards created by Rob Alexander cost in total?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT manaCost FROM cards WHERE artist = 'Rob Alexander'", "permission": "denied", "query_columns": { "cards": [ "artist", "manaCost" ] }, "missing_columns": { "cards": [ "artist" ] }, "reason": "Missing column permissions: cards: artist", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Lists all types of cards available in arena.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL", "permission": "denied", "query_columns": { "cards": [ "availability", "subtypes", "supertypes" ] }, "missing_columns": { "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Lists the set code of all cards translated into Spanish.
SELECT setCode FROM set_translations WHERE language = 'Spanish'
simple
{ "gold_sql": "SELECT setCode FROM set_translations WHERE language = 'Spanish'", "permission": "allowed", "query_columns": { "set_translations": [ "setCode" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 400, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What percentage of legendary frame effect cards that are only available in online game variations?
SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary'
moderate
{ "gold_sql": "SELECT SUM(CASE WHEN isOnlineOnly = 1 THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary'", "permission": "allowed", "query_columns": { "cards": [ "frameEffects", "id", "isOnlineOnly" ] }, "missing_columns": {}, "reason": "All required ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the percentage of Story Spotlight cards that do not have a text box?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT (SELECT COUNT (id) FROM cards WHERE isTextless = 1 AND isStorySpotlight = 1) * 100 / COUNT(id) FROM cards WHERE isStorySpotlight = 1", "permission": "denied", "query_columns": { "cards": [ "id", "isStorySpotlight", "isTextless" ] }, "missing_columns": { "car...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Calculate the percentage of cards in Spanish. List them by name.
SELECT (SELECT CAST(SUM(CASE WHEN language = 'Spanish' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM foreign_data) AS percentage, name FROM foreign_data WHERE language = 'Spanish' ORDER BY name
simple
{ "gold_sql": "SELECT (SELECT CAST(SUM(CASE WHEN language = 'Spanish' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM foreign_data) AS percentage, name FROM foreign_data WHERE language = 'Spanish' ORDER BY name", "permission": "allowed", "query_columns": { "foreign_data": [ "name" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Indicates the name of all the languages into which the set whose number of cards is 309 is translated.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.baseSetSize = 309", "permission": "denied", "query_columns": { "sets": [ "baseSetSize", "code" ], "set_translations": [ "language", "setCode" ] }, "missi...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many Brazilian Portuguese translated sets are inside the Commander block?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'", "permission": "denied", "query_columns": { "sets": [ "block", "code", "id" ], "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List by ID all Creature-type cards with legal status.
SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T1.types = 'Creature'
simple
{ "gold_sql": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T1.types = 'Creature'", "permission": "allowed", "query_columns": { "legalities": [ "status", "uuid" ], "cards": [ "id", "types", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Lists all types of cards in German.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.subtypes, T1.supertypes FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL", "permission": "denied", "query_columns": { "foreign_data": [ "language", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many unknown power cards contain info about the triggered ability
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'
moderate
{ "gold_sql": "SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'", "permission": "allowed", "query_columns": { "cards": [ "power", "uuid" ], "rulings": [ "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability." that do not have multiple faces.
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL
moderate
{ "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN rulings AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL", "permission": "allowed", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.id\nFROM cards AS T1\nINNER JOIN legalities AS T2 ON T1.uuid = T2.uuid\nWHERE T1.artist = 'Erica Yang'\n AND T2.format = 'pauper'\n AND T1.availability = 'paper';", "permission": "denied", "query_columns": { "legalities": [ "format", "uuid" ], "cards": [ "a...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
To which artist does the card with the text "Das perfekte Gegenmittel zu einer dichten Formation" belong?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.flavorText LIKE '%DAS perfekte Gegenmittel zu einer dichten Formation%'", "permission": "denied", "query_columns": { "foreign_data": [ "flavorText", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'", "permission": "denied", "query_columns": { "foreign_data": [ "name" ], "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many rare cards have ruling text that were printed on 01/02/2007?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'rare' AND T2.date = '2007-02-01'", "permission": "denied", "query_columns": { "cards": [ "id", "rarity", "uuid" ], "rulings": [ "date", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What language is the set of 180 cards that belongs to the Ravnica block translated into?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180", "permission": "denied", "query_columns": { "sets": [ "baseSetSize", "block", "code" ], "set_translations": [ "langua...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What percentage of cards with format commander and legal status do not have a content warning?
SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'", "permission": "allowed", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What percentage of cards without power are in French?
SELECT (COUNT(DISTINCT CASE WHEN f.language = 'French' THEN c.id END) * 100.0 / NULLIF(COUNT(DISTINCT c.id), 0)) AS french_percentage FROM cards c LEFT JOIN foreign_data f ON c.uuid = f.uuid WHERE c.power IS NULL OR c.power = '*';
challenging
{ "gold_sql": "SELECT \n (COUNT(DISTINCT CASE WHEN f.language = 'French' THEN c.id END) * 100.0 \n / NULLIF(COUNT(DISTINCT c.id), 0)) AS french_percentage\nFROM \n cards c\nLEFT JOIN \n foreign_data f ON c.uuid = f.uuid\nWHERE \n c.power IS NULL OR c.power = '*';", "permission": "allowed", "query_c...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What percentage of Japanese translated sets are expansion sets?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.language = 'Japanese' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.type = 'expansion'", "permission": "denied", "query_columns": { "sets": [ "code", "id", "type"...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What kind of printing is on the card that Daren Bader created?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader'", "permission": "denied", "query_columns": { "cards": [ "artist", "availability" ] }, "missing_columns": { "cards": [ "artist" ] }, "reason": "Missing column permissions: cards: artist", ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many color cards with no borders have been ranked higher than 12000 on EDHRec?
SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor = 'borderless'
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor = 'borderless'", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "edhrecRank", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards are oversized, reprinted, and printed for promotions?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE isOversized = 1 AND isReprint = 1 AND isPromo = 1", "permission": "denied", "query_columns": { "cards": [ "id", "isOversized", "isPromo", "isReprint" ] }, "missing_columns": { "cards": [ "isPromo" ] }, "reason":...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list top three unknown power cards that have promotional types for arena league in alphabetical order.
SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promoTypes = 'arenaleague' ORDER BY name LIMIT 3
simple
{ "gold_sql": "SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promoTypes = 'arenaleague' ORDER BY name LIMIT 3", "permission": "allowed", "query_columns": { "cards": [ "name", "power", "promoTypes" ] }, "missing_columns": {}, "reason": "All required columns ar...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the language of the card with the multiverse number 149934?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT language FROM foreign_data WHERE multiverseid = 149934", "permission": "denied", "query_columns": { "foreign_data": [ "multiverseid" ] }, "missing_columns": { "foreign_data": [ "multiverseid" ] }, "reason": "Missing column permissions: foreign_data: multiv...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please provide the ids of top three powerful pairs of Kingdom Foil and Kingdom Cards sorted by Kingdom Foil id in alphabetical order.
SELECT cardKingdomFoilId, cardKingdomId FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL ORDER BY cardKingdomFoilId LIMIT 3
simple
{ "gold_sql": "SELECT cardKingdomFoilId, cardKingdomId FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL ORDER BY cardKingdomFoilId LIMIT 3", "permission": "allowed", "query_columns": { "cards": [ "cardKingdomFoilId", "cardKingdomId" ] }, "missing_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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What proportion of cards do not have a text box with a normal layout?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*)\nFROM cards;", "permission": "denied", "query_columns": { "cards": [ "isTextless", "layout" ] }, "missing_columns": { "cards": [ "isTextless" ] }, "r...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What are the card numbers that don't have multiple faces on a single card and have the subtypes Angel and Wizard?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT id FROM cards WHERE subtypes = 'Angel,Wizard' AND side IS NULL", "permission": "denied", "query_columns": { "cards": [ "id", "side", "subtypes" ] }, "missing_columns": { "cards": [ "subtypes" ] }, "reason": "Missing column permissions: cards: 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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT name FROM sets WHERE mtgoCode IS NULL ORDER BY name LIMIT 3", "permission": "denied", "query_columns": { "sets": [ "mtgoCode", "name" ] }, "missing_columns": { "sets": [ "mtgoCode" ] }, "reason": "Missing column permissions: sets: mtgoCode", "quest...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What languages are available in the set known as Archenemy on the magic card market and having the code ARC?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC'", "permission": "denied", "query_columns": { "sets": [ "code", "mcmName" ], "set_translations": [ "language", "setCo...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the name of set number 5 and its translation?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.name, T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.id = 5 GROUP BY T1.name, T2.translation", "permission": "denied", "query_columns": { "sets": [ "code", "name" ], "set_translations": [ "id", "setCode...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the language and expansion type of set number 207?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.language, T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.id = 207", "permission": "denied", "query_columns": { "sets": [ "code", "id", "type" ], "set_translations": [ "language", "setCode" ] }, "...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list top two sets of cards with their IDs that have Italian-language cards and are located in the Shadowmoor block in alphabetical order.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T1.name, T1.id FROM sets AS T1 JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Shadowmoor' AND T2.language = 'Italian' ORDER BY T1.name ASC LIMIT 2;", "permission": "denied", "query_columns": { "sets": [ "block", "code", "id", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response.
Sorry, I cannot answer.
challenging
{ "gold_sql": "SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0", "permission": "denied", "query_columns": { "sets": [ "code", "id", "isFoilOnly", "isForeignOnly...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which Russian set of cards contains the most cards overall?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.id, T1.name, T1.totalSetSize\nFROM sets AS T1\nINNER JOIN set_translations AS T2 ON T1.code = T2.setCode\nWHERE T2.language = 'Russian'\n AND T1.totalSetSize = (\n SELECT MAX(s.totalSetSize)\n FROM sets AS s\n INNER JOIN set_translations AS st ON s.code = st.setCode\n WHERE st.la...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode", "permission": "denied", "query_columns": { "sets": [ "code", "isOnlineOnly" ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many sets are available just in Japanese and not in Magic: The Gathering Online?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.language = 'Japanese' AND (T1.mtgoCode IS NULL OR T1.mtgoCode = '')", "permission": "denied", "query_columns": { "sets": [ "code", "id", "mtgoCode" ], "set_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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many card border with black color ? List out the card id.
SELECT id FROM cards WHERE borderColor = 'black'
simple
{ "gold_sql": "SELECT id FROM cards WHERE borderColor = 'black'", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 435, "evidence": "border with black color refers to ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards have frame effect as extendedart? List out the id of those cards.
SELECT id FROM cards WHERE frameEffects = 'extendedart'
simple
{ "gold_sql": "SELECT id FROM cards WHERE frameEffects = 'extendedart'", "permission": "allowed", "query_columns": { "cards": [ "frameEffects", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 436, "evidence": "\nframe effect as extended...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Among black card borders, which card has full artwork?
SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1
simple
{ "gold_sql": "SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "id", "isFullArt" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 437, "evidence"...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Point out the language of set id "174"?
SELECT language FROM set_translations WHERE id = 174
simple
{ "gold_sql": "SELECT language FROM set_translations WHERE id = 174", "permission": "allowed", "query_columns": { "set_translations": [ "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 438, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
List out the set name of the set code "ALL".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT name FROM sets WHERE code = 'ALL'", "permission": "denied", "query_columns": { "sets": [ "code", "name" ] }, "missing_columns": { "sets": [ "code" ] }, "reason": "Missing column permissions: sets: code", "question_id": 439, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which foreign language used by "A Pedra Fellwar"?
SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'
simple
{ "gold_sql": "SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'", "permission": "allowed", "query_columns": { "foreign_data": [ "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 440, "evidence": "\"A Pedra Fellwar\" r...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
State the set code of the set with release date of 07/13/2007?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.releaseDate = '2007-07-13'", "permission": "denied", "query_columns": { "sets": [ "code", "releaseDate" ], "set_translations": [ "setCode" ] }, "missing_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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Mention the base set size and set code of the set that was in block named "Masques" and "Mirage".
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT baseSetSize, code FROM sets WHERE block IN ('Masques', 'Mirage')", "permission": "denied", "query_columns": { "sets": [ "baseSetSize", "code" ] }, "missing_columns": { "sets": [ "baseSetSize", "code" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Give the code of sets that have type of 'expansion'.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT code\nFROM sets\nWHERE type = 'expansion';", "permission": "denied", "query_columns": { "sets": [ "code" ] }, "missing_columns": { "sets": [ "code" ] }, "reason": "Missing column permissions: sets: code", "question_id": 443, "evidence": "" }
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Name the foreign name of the card that has boros watermark? List out the type of this card.
SELECT DISTINCT T2.name AS foreign_card_name, T1.type AS card_type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.watermark = 'boros';
simple
{ "gold_sql": "SELECT DISTINCT T2.name AS foreign_card_name, T1.type AS card_type\nFROM cards AS T1\nINNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid\nWHERE T1.watermark = 'boros';", "permission": "allowed", "query_columns": { "foreign_data": [ "name", "uuid" ], "cards": [ "type", ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the language and flavor text of the card that has colorpie watermark? List out the type of this card.
SELECT DISTINCT T2.language, T2.flavorText, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'colorpie'
simple
{ "gold_sql": "SELECT DISTINCT T2.language, T2.flavorText, T1.type\nFROM cards AS T1\nINNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid\nWHERE T1.watermark = 'colorpie'", "permission": "allowed", "query_columns": { "foreign_data": [ "flavorText", "language", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is percentage of the cards with a converted Mana Cost of 10 in set of Abyssal Horror?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T1.convertedManaCost = 10 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id), T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Abyssal Horror'", "permission": "denied", "query_columns": { "sets": [ "code" ], "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Give the code of sets have expansion commander type?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T2.setCode\nFROM sets AS T1\nINNER JOIN set_translations AS T2 ON T2.setCode = T1.code\nWHERE T1.type = 'commander';", "permission": "denied", "query_columns": { "sets": [ "code", "type" ], "set_translations": [ "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Name the foreign name of the card that has abzan watermark? List out the type of this card.
SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'abzan'
simple
{ "gold_sql": "SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'abzan'", "permission": "allowed", "query_columns": { "foreign_data": [ "uuid" ], "cards": [ "name", "type", "uuid", "watermark" ] ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the language of the card that has azorius watermark? List out the type of this card.
SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'azorius'
simple
{ "gold_sql": "SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'azorius'", "permission": "allowed", "query_columns": { "foreign_data": [ "language", "uuid" ], "cards": [ "type", "uuid", "waterma...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Of all the cards that are designed by Aaron Miller, how many of them are incredibly powerful?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT SUM(CASE WHEN artist = 'Aaron Miller' AND cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) FROM cards", "permission": "denied", "query_columns": { "cards": [ "artist", "cardKingdomFoilId", "cardKingdomId" ] }, "missing_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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards available in paper have a positive starting maximum hand size?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(*)\nFROM cards\nWHERE availability LIKE '%paper%'\n AND hand IS NOT NULL\n AND CAST(hand AS INTEGER) > 0;", "permission": "denied", "query_columns": { "cards": [ "availability", "hand" ] }, "missing_columns": { "cards": [ "hand" ] }, "reason"...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list the names of the cards that have a text box.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT name FROM cards WHERE isTextless = 0", "permission": "denied", "query_columns": { "cards": [ "isTextless", "name" ] }, "missing_columns": { "cards": [ "isTextless" ] }, "reason": "Missing column permissions: cards: isTextless", "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What's the unconverted mana cost of the card "Ancestor's Chosen"?
SELECT DISTINCT manaCost FROM cards WHERE name = 'Ancestor''s Chosen'
simple
{ "gold_sql": "SELECT DISTINCT manaCost FROM cards WHERE name = 'Ancestor''s Chosen'", "permission": "allowed", "query_columns": { "cards": [ "manaCost", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 453, "evidence": "card \"Ancesto...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Among the cards with a white border color, how many of them have unknown power?
SELECT SUM(CASE WHEN power = '*' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE borderColor = 'white'
simple
{ "gold_sql": "SELECT SUM(CASE WHEN power = '*' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE borderColor = 'white'", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "power" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "questi...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which of the cards that are a promotional painting have multiple faces on the same card? Please list their names.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT name FROM cards WHERE isPromo = 1 AND side IS NOT NULL", "permission": "denied", "query_columns": { "cards": [ "isPromo", "name", "side" ] }, "missing_columns": { "cards": [ "isPromo" ] }, "reason": "Missing column permissions: 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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What's the list of all types for the card "Molimo, Maro-Sorcerer"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT subtypes, supertypes, types FROM cards WHERE name = 'Molimo, Maro-Sorcerer'", "permission": "denied", "query_columns": { "cards": [ "name", "subtypes", "supertypes", "types" ] }, "missing_columns": { "cards": [ "subtypes", "superty...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list the websites where I can purchase the cards that have the promotional type of "bundle".
SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'bundle'
simple
{ "gold_sql": "SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'bundle'", "permission": "allowed", "query_columns": { "cards": [ "promoTypes", "purchaseUrls" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 457, "evidence": "promot...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many artists have designed a card with a black border color and is available in both "arena" and "mtgo" printing type?
SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' AND borderColor = 'black' THEN 1 ELSE NULL END) FROM cards
simple
{ "gold_sql": "SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' AND borderColor = 'black' THEN 1 ELSE NULL END) FROM cards", "permission": "allowed", "query_columns": { "cards": [ "availability", "borderColor" ] }, "missing_columns": {}, "reason": "All required columns are permitt...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which card costs more converted mana, "Serra Angel" or "Shrine Keeper"?
SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1
moderate
{ "gold_sql": "SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1", "permission": "allowed", "query_columns": { "cards": [ "convertedManaCost", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", ...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Which artist designed the card whose promotional name is "Battra, Dark Destroyer"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT artist FROM cards WHERE flavorName = 'Battra, Dark Destroyer'", "permission": "denied", "query_columns": { "cards": [ "artist", "flavorName" ] }, "missing_columns": { "cards": [ "artist", "flavorName" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style.
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT name FROM cards WHERE frameVersion = 2003 ORDER BY convertedManaCost DESC LIMIT 3", "permission": "denied", "query_columns": { "cards": [ "convertedManaCost", "frameVersion", "name" ] }, "missing_columns": { "cards": [ "frameVersion" ] }, "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What's the Italian name of the set of cards with "Ancestor's Chosen" is in?
SELECT translation FROM set_translations WHERE setCode IN (SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen') AND language = 'Italian' LIMIT 1;
moderate
{ "gold_sql": "SELECT translation \nFROM set_translations \nWHERE setCode IN (SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen') \n AND language = 'Italian'\nLIMIT 1;", "permission": "allowed", "query_columns": { "cards": [ "name", "setCode" ], "set_translations": [] }, "mis...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many translations are there for the set of cards with "Angel of Mercy" in it?
SELECT COUNT(DISTINCT translation) FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Angel of Mercy' ) AND translation IS NOT NULL
simple
{ "gold_sql": "SELECT COUNT(DISTINCT translation) FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Angel of Mercy' ) AND translation IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "name", "setCode" ], "set_translations": [] }, "miss...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Please list the names of the cards in the set "Hauptset Zehnte Edition".
SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition'
simple
{ "gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition'", "permission": "allowed", "query_columns": { "cards": [ "name", "setCode" ], "set_translations": [ "setCode", "...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
For the set of cards with "Ancestor's Chosen" in it, is there a Korean version of it?
SELECT IIF(SUM(CASE WHEN T2.language = 'Korean' AND T2.translation IS NOT NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'
moderate
{ "gold_sql": "SELECT IIF(SUM(CASE WHEN T2.language = 'Korean' AND T2.translation IS NOT NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'", "permission": "allowed", "query_columns": { "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Among the cards in the set "Hauptset Zehnte Edition", how many of them are designed by Adam Rex?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex'", "permission": "denied", "query_columns": { "cards": [ "artist", "id", "setCode" ], "set_trans...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
How many cards are there in the base set of "Hauptset Zehnte Edition"?
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 = 'Hauptset Zehnte Edition'", "permission": "denied", "query_columns": { "sets": [ "baseSetSize", "code" ], "set_translations": [ "setCode", "tran...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the Simplified Chinese translation of the name of the set "Eighth Edition"?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified'", "permission": "denied", "query_columns": { "sets": [ "code", "name" ], "set_translations": [ "langu...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
Did the set of cards with "Angel of Mercy" appear on Magic: The Gathering Online?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT IIF(EXISTS (SELECT 1 FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Angel of Mercy' AND T2.mtgoCode IS NOT NULL), 'YES', 'NO')", "permission": "denied", "query_columns": { "sets": [ "code", "mtgoCode" ], "cards": [ "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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
When was the set of cards with "Ancestor's Chosen" released?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT DISTINCT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen'", "permission": "denied", "query_columns": { "sets": [ "code", "releaseDate" ], "cards": [ "name", "setCode" ] }, "missing_c...
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_1
{ "cards": [ "asciiName", "availability", "borderColor", "cardKingdomFoilId", "cardKingdomId", "colorIdentity", "colors", "convertedManaCost", "duelDeck", "edhrecRank", "faceConvertedManaCost", "faceName", "flavorText", "frameEffects", "hasAlternativeDeckLim...
What is the expansion type of the set "Hauptset Zehnte Edition"?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Hauptset Zehnte Edition'", "permission": "denied", "query_columns": { "sets": [ "code", "type" ], "set_translations": [ "setCode", "translation" ]...