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
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
How much, in total, did client number 617 pay for all of the transactions in 1998?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT SUM(T2.amount) FROM disp AS T1 INNER JOIN trans AS T2 ON T2.account_id = T1.account_id WHERE STRFTIME('%Y', T2.date) = '1998' AND T1.client_id = 617", "permission": "denied", "query_columns": { "trans": [ "account_id", "amount", "date" ], "disp": [ "accoun...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
Please provide a list of clients who were born between 1983 and 1987 and whose account branch is in East Bohemia, along with their IDs.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.client_id, T3.account_id\nFROM client AS T1\nINNER JOIN district AS T2 ON T1.district_id = T2.district_id\nINNER JOIN disp AS T4 ON T1.client_id = T4.client_id\nINNER JOIN account AS T3 ON T2.district_id = T3.district_id AND T4.account_id = T3.account_id\nWHERE T2.A3 = 'east Bohemia' AND STRF...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
For the top 3 female clients with the largest loans, what are their loan details including total payments, interest paid, loan status, location, transaction activity, income category, and age?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH client_loans AS (\n SELECT \n c.client_id,\n c.gender,\n d.account_id,\n l.loan_id,\n l.amount,\n l.duration,\n l.payments,\n l.status,\n a.district_id,\n di.A2 AS district_name,\n di.A3 AS region,\n RANK() OVER...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
How many male customers who were born between 1974 and 1976 have made a payment on their home in excess of $4000?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT COUNT(T1.account_id) FROM trans AS T1 INNER JOIN account AS T2 ON T1.account_id = T2.account_id INNER JOIN disp AS T4 ON T2.account_id = T4.account_id INNER JOIN client AS T3 ON T4.client_id = T3.client_id WHERE STRFTIME('%Y', T3.birth_date) BETWEEN '1974' AND '1976' AND T3.gender = 'M' AND T1.a...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
For accounts opened in Beroun after 1996, what are the yearly statistics including account owner demographics, transaction volumes, loan performance, and credit card distribution?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH AccountsInBeroun AS (\n SELECT \n a.account_id,\n a.date,\n d.A2 AS district_name,\n STRFTIME('%Y', a.date) AS opening_year,\n a.frequency\n FROM \n account AS a\n INNER JOIN \n district AS d ON a.district_id = d.district_id\n WHERE \n ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
How many female customers have a junior credit card?
Sorry, I cannot answer.
simple
{ "gold_sql": "SELECT COUNT(T1.client_id) FROM client AS T1 INNER JOIN disp AS T2 ON T1.client_id = T2.client_id INNER JOIN card AS T3 ON T2.disp_id = T3.disp_id WHERE T1.gender = 'F' AND T3.type = 'junior'", "permission": "denied", "query_columns": { "disp": [ "client_id", "disp_id" ], "c...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What proportion of customers who have accounts at the Prague branch are female?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(T2.gender = 'F') AS REAL) / COUNT(T2.client_id) * 100\nFROM district AS T1\nINNER JOIN client AS T2 ON T1.district_id = T2.district_id\nWHERE T1.A3 = 'Prague';", "permission": "denied", "query_columns": { "client": [ "client_id", "district_id", "gender" ], ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What percentage of male clients request for weekly statements to be issued?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT CAST(SUM(T1.gender = 'M') AS REAL) * 100 / COUNT(T1.client_id) FROM client AS T1 INNER JOIN account AS T2 ON T2.district_id = T1.district_id INNER JOIN disp as T3 on T1.client_id = T3.client_id AND T2.account_id = T3.account_id WHERE T2.frequency = 'POPLATEK TYDNE'", "permission": "denied", ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What are the key statistics for account owners with weekly statement issuance, including how many owners there are, their average number of transactions, how many have credit cards, how many are high-volume clients with over 10,000 in total transactions, the number of districts they're located in, and their average acc...
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH ClientTransactionStats AS (\n SELECT \n T2.client_id,\n COUNT(DISTINCT T3.trans_id) AS transaction_count,\n SUM(T3.amount) AS total_transaction_amount,\n AVG(T3.balance) AS avg_balance\n FROM account AS T1\n JOIN disp AS T2 ON T2.account_id = T1.account_id\n ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
For accounts with loans exceeding 24 months duration that were opened before 1997, provide comprehensive details about the account(s) with the smallest loan amount, including transaction history, card information, client demographics, and order activity.
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH AccountsWithLongLoans AS (\n SELECT \n l.account_id,\n l.amount,\n l.duration,\n a.date AS account_opening_date,\n STRFTIME('%Y', a.date) AS opening_year,\n d.district_id,\n d.A2 AS district_name,\n d.A3 AS region\n FROM \n loan ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
Name the account numbers of female clients who are oldest and have lowest average salary?
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.account_id\nFROM client AS T1\nINNER JOIN district AS T2 ON T1.district_id = T2.district_id\nINNER JOIN account AS T3 ON T2.district_id = T3.district_id\nINNER JOIN disp AS T4 ON T1.client_id = T4.client_id AND T4.account_id = T3.account_id\nWHERE T1.gender = 'F'\nORDER BY T1.birth_date ASC, ...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What are the comprehensive statistics for clients born in 1920 who live in east Bohemia, including their account activity, loan information, transaction patterns, gender distribution, and most common district?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH ClientsInEastBohemia AS (\n SELECT \n c.client_id,\n c.birth_date,\n c.gender,\n d.A2 AS district_name,\n d.A3 AS region,\n STRFTIME('%Y', c.birth_date) AS birth_year,\n COUNT(DISTINCT a.account_id) AS num_accounts,\n COUNT(DISTINCT l.loan...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What are the statistics for the top 50 highest loan amounts among 24-month loans with weekly statement issuance that have an owner, including total count, average loan amount, payment details, interest rates, loan status distribution, and district economic indicators?
Sorry, I cannot answer.
challenging
{ "gold_sql": "WITH LoanAccountStats AS (\n SELECT \n a.account_id,\n a.district_id,\n a.frequency,\n l.duration,\n l.amount,\n l.payments,\n l.status,\n d.A2 AS district_name,\n d.A3 AS region,\n d.A11 AS avg_salary,\n d.A12 AS unemploym...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
What is the average amount of loan which are still on running contract with statement issuance after each transaction?
SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'
moderate
{ "gold_sql": "SELECT AVG(T2.amount) FROM account AS T1 INNER JOIN loan AS T2 ON T1.account_id = T2.account_id WHERE T2.status IN ('C', 'D') AND T1.frequency = 'POPLATEK PO OBRATU'", "permission": "allowed", "query_columns": { "account": [ "account_id", "frequency" ], "loan": [ "acco...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
List all ID and district for clients that can only have the right to issue permanent orders or apply for loans.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T3.client_id, T2.district_id, T2.A2 FROM account AS T1 INNER JOIN district AS T2 ON T1.district_id = T2.district_id INNER JOIN disp AS T3 ON T1.account_id = T3.account_id WHERE T3.type = 'OWNER'", "permission": "denied", "query_columns": { "disp": [ "account_id", "client_id",...
financial
##Instruction: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Database: financial Total Tables: 8 Total Columns: 55 Table Schemas: Table: account (4 columns) -------------------------- • account_id (integer): the id of the account • district_id (integer): location of branch • frequency (text):...
RiskAnalyst
{ "account": [ "account_id", "district_id", "frequency" ], "client": [ "client_id", "birth_date", "district_id" ], "district": [ "*" ], "loan": [ "loan_id", "account_id", "date", "amount", "duration", "payments", "status" ], "trans": [ "accou...
Provide the IDs and age of the client with high level credit card, which is eligible for loans.
Sorry, I cannot answer.
moderate
{ "gold_sql": "SELECT T1.client_id, STRFTIME('%Y', CURRENT_TIMESTAMP) - STRFTIME('%Y', T3.birth_date) FROM disp AS T1 INNER JOIN card AS T2 ON T2.disp_id = T1.disp_id INNER JOIN client AS T3 ON T1.client_id = T3.client_id WHERE T2.type = 'gold' AND T1.type = 'OWNER'", "permission": "denied", "query_columns": { ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Which are the cards that have incredibly powerful foils.
SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
simple
{ "gold_sql": "SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId 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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What are the borderless cards available without powerful foils?
SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomFoilId IS NULL OR cardKingdomId IS NULL)
simple
{ "gold_sql": "SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomFoilId IS NULL OR cardKingdomId IS NULL)", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "cardKingdomFoilId", "cardKingdomId", "id" ] }, "missing_columns": {}, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List the card names with value that cost more converted mana.
SELECT DISTINCT name FROM cards WHERE ConvertedManaCost = (SELECT MAX(ConvertedManaCost) FROM cards)
simple
{ "gold_sql": "SELECT DISTINCT name FROM cards WHERE ConvertedManaCost = (SELECT MAX(ConvertedManaCost) FROM cards)", "permission": "allowed", "query_columns": { "cards": [ "convertedManaCost", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Name all cards with 2015 frame style ranking below 100 on EDHRec.
SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015
simple
{ "gold_sql": "SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015", "permission": "allowed", "query_columns": { "cards": [ "edhrecRank", "frameVersion", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 343, "eviden...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List all the mythic rarity print cards banned in gladiator format.
SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'
moderate
{ "gold_sql": "SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'", "permission": "allowed", "query_columns": { "cards": [ "id", "rarity", "uuid" ], "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.
SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL
moderate
{ "gold_sql": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL", "permission": "allowed", "query_columns": { "cards": [ "side", "type", "uuid" ], "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List all the card id and artist with unknown power which are legal for commander play format.
SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')
moderate
{ "gold_sql": "SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')", "permission": "allowed", "query_columns": { "cards": [ "artist", "id", "power", "uui...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.
SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'
moderate
{ "gold_sql": "SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'", "permission": "allowed", "query_columns": { "cards": [ "artist", "hasContentWarning", "id", "uuid" ], "rulings": [ ...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Describe the information about rulings for card named 'Sublime Epiphany' with number 74s.
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Sublime Epiphany' AND T1.number = '74s'
simple
{ "gold_sql": "SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Sublime Epiphany' AND T1.number = '74s'", "permission": "allowed", "query_columns": { "cards": [ "name", "number", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Name the card and artist with the most ruling information. Also state if the card is a promotional printing.
SELECT T1.name, T1.artist, CASE WHEN T1.isPromo = 1 THEN 'yes' ELSE 'no' END AS isPromo FROM cards AS T1 JOIN rulings AS T2 ON T2.uuid = T1.uuid GROUP BY T1.uuid, T1.name, T1.artist, T1.isPromo ORDER BY COUNT(T2.uuid) DESC, T1.uuid ASC LIMIT 1;
moderate
{ "gold_sql": "SELECT\n T1.name,\n T1.artist,\n CASE WHEN T1.isPromo = 1 THEN 'yes' ELSE 'no' END AS isPromo\nFROM cards AS T1\nJOIN rulings AS T2 ON T2.uuid = T1.uuid\nGROUP BY T1.uuid, T1.name, T1.artist, T1.isPromo\nORDER BY COUNT(T2.uuid) DESC, T1.uuid ASC\nLIMIT 1;", "permission": "allowed", "query_column...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
State the alternative languages available for card named Annul numbered 29.
SELECT T2.language FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Annul' AND T1.number = '29'
simple
{ "gold_sql": "SELECT T2.language FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Annul' AND T1.number = '29'", "permission": "allowed", "query_columns": { "cards": [ "name", "number", "uuid" ], "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Name all the cards which have alternative language in Japanese.
SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Japanese'
simple
{ "gold_sql": "SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Japanese'", "permission": "allowed", "query_columns": { "cards": [ "name", "uuid" ], "foreign_data": [ "language", "uuid" ] }, "missing_column...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Calculate the percentage of the cards availabe in Chinese Simplified.
SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid
moderate
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid", "permission": "allowed", "query_columns": { "cards": [ "id", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List all the sets available in Italian translation. State the total number of cards per set.
SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Italian'
simple
{ "gold_sql": "SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Italian'", "permission": "allowed", "query_columns": { "sets": [ "code", "name", "totalSetSize" ], "set_translations": [ "language", ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many types of cards does the artist Aaron Boyd illustrated about card art?
SELECT COUNT(type) FROM cards WHERE artist = 'Aaron Boyd'
simple
{ "gold_sql": "SELECT COUNT(type) FROM cards WHERE artist = 'Aaron Boyd'", "permission": "allowed", "query_columns": { "cards": [ "artist" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 354, "evidence": "'Aaron Boyd' is 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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the keyword found on card 'Angel of Mercy'?
SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy'
simple
{ "gold_sql": "SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy'", "permission": "allowed", "query_columns": { "cards": [ "keywords", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 355, "evidence": "Angel of Mercy' is...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards have infinite power?
SELECT COUNT(*) FROM cards WHERE power = '*'
simple
{ "gold_sql": "SELECT COUNT(*) FROM cards WHERE power = '*'", "permission": "allowed", "query_columns": { "cards": [ "power" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 356, "evidence": "infinite power refers to power = '*';" }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What type of promotion is of card 'Duress'?
SELECT DISTINCT promoTypes FROM cards WHERE name = 'Duress' AND promoTypes IS NOT NULL
simple
{ "gold_sql": "SELECT DISTINCT promoTypes \nFROM cards \nWHERE name = 'Duress' AND promoTypes IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "name", "promoTypes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 357, "evi...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the border color of card "Ancestor's Chosen"?
SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'
simple
{ "gold_sql": "SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 358, "evidence": "name of ...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the type of the card "Ancestor's Chosen" as originally printed?
SELECT originalType FROM cards WHERE name = "Ancestor's Chosen" AND originalType IS NOT NULL
simple
{ "gold_sql": "SELECT originalType FROM cards WHERE name = \"Ancestor's Chosen\" AND originalType IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "name", "originalType" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 359, ...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What are the languages available for the set that card 'Angel of Mercy' is in?
SELECT DISTINCT s.`language` FROM cards AS c JOIN set_translations AS s ON s.setCode = c.setCode WHERE c.name = 'Angel of Mercy'
moderate
{ "gold_sql": "SELECT DISTINCT\n s.`language`\nFROM cards AS c\nJOIN set_translations AS s ON s.setCode = c.setCode\nWHERE c.name = 'Angel of Mercy'", "permission": "allowed", "query_columns": { "cards": [ "name", "setCode" ], "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards of legalities whose status is restricted have text boxes?
SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isTextless = 0
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 = 'Restricted' AND T1.isTextless = 0", "permission": "allowed", "query_columns": { "cards": [ "id", "isTextless", "uuid" ], "legalities": [ "status", ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the description about the ruling of card "Condemn"?
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Condemn'
simple
{ "gold_sql": "SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Condemn'", "permission": "allowed", "query_columns": { "cards": [ "name", "uuid" ], "rulings": [ "text", "uuid" ] }, "missing_columns": {}, "reason": "All req...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards of legalities whose status is restricted are found in a starter deck?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isStarter = 1
simple
{ "gold_sql": "SELECT COUNT(T1.id) \nFROM cards AS T1 \nINNER JOIN legalities AS T2 ON T1.uuid = T2.uuid \nWHERE T2.status = 'Restricted' AND T1.isStarter = 1", "permission": "allowed", "query_columns": { "cards": [ "id", "isStarter", "uuid" ], "legalities": [ "status", "...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the status of card "Cloudchaser Eagle"?
SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Cloudchaser Eagle'
simple
{ "gold_sql": "SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Cloudchaser Eagle'", "permission": "allowed", "query_columns": { "cards": [ "name", "uuid" ], "legalities": [ "status", "uuid" ] }, "missing_colum...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the type of card "Benalish Knight"?
SELECT type FROM cards WHERE name = 'Benalish Knight';
simple
{ "gold_sql": "SELECT type \nFROM cards \nWHERE name = 'Benalish Knight';", "permission": "allowed", "query_columns": { "cards": [ "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 365, "evidence": "Benalish Knight' is the name of card;" }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the rule of playing card "Benalish Knight"?
SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'
simple
{ "gold_sql": "SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'", "permission": "allowed", "query_columns": { "cards": [ "name", "uuid" ], "legalities": [ "format", "uuid" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Please provide the names of the artists who illustrated the card art in Phyrexian.
SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Phyrexian'
simple
{ "gold_sql": "SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Phyrexian'", "permission": "allowed", "query_columns": { "cards": [ "artist", "uuid" ], "foreign_data": [ "language", "uuid" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the percentage of borderless cards?
SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards
simple
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "id" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "questio...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards that illusrtated in German have been reprinted?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.isReprint = 1
simple
{ "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.isReprint = 1", "permission": "allowed", "query_columns": { "cards": [ "id", "isReprint", "uuid" ], "foreign_data": [ "language", "uu...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many borderless cards are illustrated in Russian?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor = 'borderless' AND T2.language = 'Russian'
simple
{ "gold_sql": "SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor = 'borderless' AND T2.language = 'Russian'", "permission": "allowed", "query_columns": { "cards": [ "borderColor", "id", "uuid" ], "foreign_data": [ "lang...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the percentage of cards whose language is French among the Story Spotlight cards?
SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1
challenging
{ "gold_sql": "SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1", "permission": "allowed", "query_columns": { "cards": [ "id", "isStorySpotlight", ...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Name the cards that were illustrated by Aaron Boyd.
SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd'
simple
{ "gold_sql": "SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd'", "permission": "allowed", "query_columns": { "cards": [ "artist", "name" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 373, "evidence": "Aaron Boyd' is 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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards with original type of "Summon - Angel" have subtype other than "Angel"?
SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'", "permission": "allowed", "query_columns": { "cards": [ "id", "originalType", "subtypes" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List the edhrecRank for cards with frame version 2015.
SELECT edhrecRank FROM cards WHERE frameVersion = 2015
simple
{ "gold_sql": "SELECT edhrecRank FROM cards WHERE frameVersion = 2015", "permission": "allowed", "query_columns": { "cards": [ "edhrecRank", "frameVersion" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 380, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List down the name of artists for cards in Chinese Simplified.
SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Chinese Simplified';
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": "allowed", "query_columns": { "cards": [ "artist", "uuid" ], "foreign_data": [ "language", "uuid" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "availability", "name", "uuid" ], "foreign_data": [ "language"...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "borderColor", "id", "uuid" ], "legalities": [ "status"...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "uuid" ], "foreign_data": [ "language", ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many legal cards are having future frame version?
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'
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": "allowed", "query_columns": { "cards": [ "frameVersion", "id", "uuid" ], "legalities": [ "status", ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "convertedManaCost", "id", "name", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
List down the name of cards with original types of Creature - Elf and the date of rulings for these cards.
SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Elf'
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": "allowed", "query_columns": { "cards": [ "id", "originalType", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "colors", "id", "uuid" ], "legalities": [ "format", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Among the Artifact cards, which are black color and comes with foreign languague translation?
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'
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": "allowed", "query_columns": { "cards": [ "colors", "name", "originalType", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.
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
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": "allowed", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
On how many cards designed by John Avon is its foil non-powerful?
SELECT COUNT(id) FROM cards WHERE (cardKingdomId IS NULL OR cardKingdomFoilId IS NULL) AND artist = 'John Avon'
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE (cardKingdomId IS NULL OR cardKingdomFoilId IS NULL) AND artist = 'John Avon'", "permission": "allowed", "query_columns": { "cards": [ "artist", "cardKingdomFoilId", "cardKingdomId", "id" ] }, "missing_columns": {}, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1?
SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo'
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo'", "permission": "allowed", "query_columns": { "cards": [ "artist", "availability", "hand", "id" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards with a 1993 frame version and available on paper have a sensitive content warning?
SELECT COUNT(id) FROM cards WHERE frameVersion = '1993' AND availability = 'paper' AND hasContentWarning = 1
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE frameVersion = '1993' AND availability = 'paper' AND hasContentWarning = 1", "permission": "allowed", "query_columns": { "cards": [ "availability", "frameVersion", "hasContentWarning", "id" ] }, "missing_columns": {}, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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?
SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal';
moderate
{ "gold_sql": "SELECT manaCost\nFROM cards\nWHERE availability = 'mtgo,paper'\n AND borderColor = 'black'\n AND frameVersion = 2003\n AND layout = 'normal';", "permission": "allowed", "query_columns": { "cards": [ "availability", "borderColor", "frameVersion", "layout", "manaC...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the unconverted mana do all the cards created by Rob Alexander cost in total?
SELECT manaCost FROM cards WHERE artist = 'Rob Alexander'
simple
{ "gold_sql": "SELECT manaCost FROM cards WHERE artist = 'Rob Alexander'", "permission": "allowed", "query_columns": { "cards": [ "artist", "manaCost" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 398, "evidence": "unconverted mana refer t...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Lists all types of cards available in arena.
SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL
simple
{ "gold_sql": "SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL", "permission": "allowed", "query_columns": { "cards": [ "availability", "subtypes", "supertypes" ] }, "missing_columns": {}, "reason": "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the percentage of Story Spotlight cards that do not have a text box?
SELECT (SELECT COUNT (id) FROM cards WHERE isTextless = 1 AND isStorySpotlight = 1) * 100 / COUNT(id) FROM cards WHERE isStorySpotlight = 1
moderate
{ "gold_sql": "SELECT (SELECT COUNT (id) FROM cards WHERE isTextless = 1 AND isStorySpotlight = 1) * 100 / COUNT(id) FROM cards WHERE isStorySpotlight = 1", "permission": "allowed", "query_columns": { "cards": [ "id", "isStorySpotlight", "isTextless" ] }, "missing_columns": {}, "re...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Indicates the name of all the languages into which the set whose number of cards is 309 is translated.
SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.baseSetSize = 309
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": "allowed", "query_columns": { "sets": [ "baseSetSize", "code" ], "set_translations": [ "language", "setCode" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many Brazilian Portuguese translated sets are inside the Commander block?
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'
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": "allowed", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "id", "types", "uuid" ], "legalities": [ "status", "uuid" ...
card_games
##Instruction: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Database: card_games Total Tables: 6 Total Columns: 115 Table Schemas: Table: cards (74 columns) ------------------------- • id (integer) • artist (text): The name of the artist that illustrated the card art. • asciiName (text): T...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Lists all types of cards in German.
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
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": "allowed", "query_columns": { "cards": [ "subtypes", "supertypes", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID.
SELECT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Erica Yang' AND T2.format = 'pauper' AND T1.availability = 'paper';
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": "allowed", "query_columns": { "cards": [ "artist", "availability", "id", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
To which artist does the card with the text "Das perfekte Gegenmittel zu einer dichten Formation" belong?
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%'
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": "allowed", "query_columns": { "cards": [ "artist", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?
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'
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": "allowed", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many rare cards have ruling text that were printed on 01/02/2007?
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'
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": "allowed", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What language is the set of 180 cards that belongs to the Ravnica block translated into?
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
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": "allowed", "query_columns": { "sets": [ "baseSetSize", "block", "code" ], "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": { "cards": [ "hasContentW...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What percentage of Japanese translated sets are expansion sets?
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'
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": "allowed", "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What kind of printing is on the card that Daren Bader created?
SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader'
simple
{ "gold_sql": "SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader'", "permission": "allowed", "query_columns": { "cards": [ "artist", "availability" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 418, "evidence": "kind of p...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
How many cards are oversized, reprinted, and printed for promotions?
SELECT COUNT(id) FROM cards WHERE isOversized = 1 AND isReprint = 1 AND isPromo = 1
simple
{ "gold_sql": "SELECT COUNT(id) FROM cards WHERE isOversized = 1 AND isReprint = 1 AND isPromo = 1", "permission": "allowed", "query_columns": { "cards": [ "id", "isOversized", "isPromo", "isReprint" ] }, "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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
What is the language of the card with the multiverse number 149934?
SELECT language FROM foreign_data WHERE multiverseid = 149934
simple
{ "gold_sql": "SELECT language FROM foreign_data WHERE multiverseid = 149934", "permission": "allowed", "query_columns": { "foreign_data": [ "multiverseid" ] }, "missing_columns": {}, "reason": "All required columns are permitted", "question_id": 422, "evidence": "multiverse number 149934 ...
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...
CardCatalogManager
{ "cards": [ "*" ], "foreign_data": [ "*" ], "legalities": [ "*" ], "sets": [ "*" ], "set_translations": [ "*" ], "rulings": [ "*" ] }
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": {}, ...