SQL
stringlengths 29
1.45k
| difficulty
stringclasses 3
values | question_id
int64 0
1.53k
| db_id
stringclasses 11
values | evidence
stringlengths 0
591
| question
stringlengths 23
286
|
---|---|---|---|---|---|
SELECT setCode FROM set_translations WHERE language = 'Spanish' | simple | 400 | card_games | Spanish refer to language; set code refers to setCode | Lists the set code of all cards translated into Spanish. |
SELECT SUM(CASE WHEN hAND = '+3' THEN 1.0 ELSE 0 END) / COUNT(id) * 100 FROM cards WHERE frameEffects = 'legendary' | moderate | 401 | card_games | maximun hand size of +3 refer to hand = +3; legendary frame effect cards refer to frameEffects = 'legendary'; percentage refer to DIVIDE(COUNT(hand = '+3'), COUNT(id)) from cards where frameEffects = 'legendary' | What percentage of legendary frame effect cards have a maximum starting maximun hand
size of +3? |
SELECT CAST(SUM(CASE WHEN isTextless = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards WHERE isStorySpotlight = 1 | moderate | 402 | card_games | Story Spotlight cards that do not have a text box refers to isStorylight = 1 and isTextless = 1; Percentage refer to DIVIDE(SUM(count(id) where isStorylight = 1), SUM(count(id))) * 100
| What is the percentage of Story Spotlight cards that also have a text box? List them by their ID. |
SELECT ( SELECT CAST(SUM(CASE WHEN language = 'Spanish' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM foreign_data ), name FROM foreign_data WHERE language = 'Spanish' | simple | 403 | card_games | Spanish refer to language; Percentage refer to DIVIDE(SUM(ID where language = 'Spanish'), COUNT(id))*100 | Calculate the percentage of cards in Spanish. List them by name. |
SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.baseSetSize = 309 | simple | 404 | card_games | set refer to setCode; number of cards refers to baseSetSize; baseSetsize = 309
| Indicates the name of all the languages into which the set whose number of cards is 309 is translated. |
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 | 405 | card_games | Commander block refer to block = 'Commander'; sets refer to setCode; Portuguese refer to language = 'Portuguese (Brasil)'
| How many Brazilian Portuguese translated sets are inside the Commander block? |
SELECT T1.id FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid INNER JOIN legalities AS T3 ON T1.uuid = T3.uuid WHERE T3.status = 'Legal' AND T1.types = 'Creature' | simple | 406 | card_games | legal status refer to status = 'legal'; Goblin-type cards refer to types = 'Creature'; | Lists by ID all Creature-type cards with legal status. |
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 | 407 | card_games | German refer to language; all types refer to the union of subtypes and supertypes where subtypes is not null AND supertypes is not null | Lists all types of cards in German. |
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 LIKE '%*%') AND T2.text LIKE '%triggered ability%' | moderate | 408 | card_games | null power cards refers to power is NULL; unknown power cards refers to power is null or power = '*' | How many null power cards contain info about the triggered ability |
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 | 409 | card_games | do not have multiple faces refers to side IS NULL | Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability" that do not have multiple faces. |
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 | 410 | card_games | available in paper refers to availability = 'paper' | Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID. |
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 | 411 | card_games | To which artist does the card with the text "Das perfekte Gegenmittel zu einer dichten Formation" belong? |
|
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 | 412 | card_games | in French refers to language = 'French'; black border color refers to borderColor = 'black' | 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 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 = '2009-01-10' | simple | 413 | card_games | with print rarity refers to rarity = 'rare'; on 10/01/2009 refers to date = '2009-01-10' | How many cards with print rarity have ruling text printed on 10/01/2009? |
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 | 414 | card_games | set of 180 cards refers to baseSetSize = 180 | What language is the set of 180 cards that belongs to the Ravnica block translated into? |
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 | 415 | card_games | do not have a content warning refers to hasContentWarning = 0;
percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where
format = 'commander' AND Status = 'legal';
| What percentage of cards with format commander and legal status do not have a content warning? |
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.power IS NULL OR T1.power LIKE '%*%' | challenging | 416 | card_games | in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*';
percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100
| What percentage of cards without power are in French? |
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 | 417 | card_games | Japanese translated refers to language = 'Japanese'; expansion sets refers to type = 'expansion'; percentage = DIVIDE(COUNT(language = 'Japanese'),COUNT(language))*100 | What percentage of Japanese translated sets are expansion sets? |
SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader' | simple | 418 | card_games | kind of printing refers to availability; Daren Bader created refers to artist = 'Daren Bader' | What kind of printing is on the card that Daren Bader created? |
SELECT COUNT(id) FROM cards WHERE edhrecRank > 12000 AND borderColor = 'borderless' | simple | 419 | card_games | color cards with no borders refers to borderColor = 'borderless'; ranked higher than 12000 on EDHRec refers to edhrecRank > 12000 | How many color cards with no borders have been ranked higher than 12000 on EDHRec? |
SELECT COUNT(id) FROM cards WHERE isOversized = 1 AND isReprint = 1 AND isPromo = 1 | simple | 420 | card_games | are oversized refers to isOversized = 1; reprinted refers to isReprint = 1; printed for promotions refers to isPromo = 1 | How many cards are oversized, reprinted, and printed for promotions? |
SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promoTypes = 'arenaleague' ORDER BY name LIMIT 3 | simple | 421 | card_games | unknown power cards refers to power is null or power = '*'; promotional types for arena league refers to promoTypes = 'arenaleague' | Please list top three unknown power cards that have promotional types for arena league in alphabetical order. |
SELECT language FROM foreign_data WHERE multiverseid = 149934 | simple | 422 | card_games | multiverse number 149934 refers to multiverseid = 149934; | What is the language of the card with the multiverse number 149934? |
SELECT cardKingdomFoilId, cardKingdomId FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL ORDER BY cardKingdomFoilId LIMIT 3 | simple | 423 | card_games | poweful refers to cardKingdomFoilId is not null AND cardKingdomId is not null | Please provide the ids of top three powerful pairs of Kingdom Foil and Kingdom Cards sorted by Kingdom Foil id in alphabetical order. |
SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards | simple | 424 | card_games | do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100 | What proportion of cards do not have a text box with a normal layout? |
SELECT id FROM cards WHERE subtypes = 'Angel,Wizard' AND side IS NULL | simple | 425 | card_games | don't have multiple faces on a single card side is null | What are the card numbers that don't have multiple faces on a single card and have the subtypes Angel and Wizard? |
SELECT name FROM sets WHERE mtgoCode IS NULL ORDER BY name LIMIT 3 | simple | 426 | card_games | don't appear in Magic: The Gathering Online refers to mtgoCode is NULL or mtgoCode = '' | Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order. |
SELECT T2.language FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC' | moderate | 427 | card_games | known as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC' | What languages are available in the set known as Archenemy on the magic card market and having the code ARC? |
SELECT T1.name, T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.id = 5 GROUP BY T1.name, T2.translation | simple | 428 | card_games | set number 5 refers to id = 5 | What is the name of set number 5 and its translation? |
SELECT T2.language, T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.id = 206 | simple | 429 | card_games | set number 206 refers to id = 206 | What is the language and expansion type of set number 206? |
SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T1.block = 'Shadowmoor' AND T2.language = 'Italian' ORDER BY T1.id LIMIT 2 | simple | 430 | card_games | Please list top two sets of cards with their IDs that have Italian-language cards and are located in the Shadowmoor block in alphabetical order. |
|
SELECT T1.name, T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Japanese' AND T1.isFoilOnly = 1 AND T1.isForeignOnly = 0 | challenging | 431 | card_games | available outside of the United States refers to isForeignOnly = 1; has foil cards refers to isFoilOnly = 1; with Japanese writing on them refers to language = 'Japanese' | Which set is not available outside of the United States and has foil cards with Japanese writing on them? Please include the set ID in your response. |
SELECT T1.id FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Russian' GROUP BY T1.baseSetSize ORDER BY COUNT(T1.id) DESC LIMIT 1 | moderate | 432 | card_games | Russian refers to language = 'Russian'; contains the most cards overall refers to MAX(baseSetSize) | Which Russian set of cards contains the most cards overall? |
SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' AND T1.isOnlineOnly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode | moderate | 433 | card_games | are only available for online games refers to isOnlineOnly = 1; percentage = DIVIDE(COUNT(isOnlineOnly = 1),COUNT(isOnlineOnly))*100 | What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games? |
SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.language = 'Japanese' AND (T1.mtgoCode IS NULL OR T1.mtgoCode = '') | moderate | 434 | card_games | Japanese refers to language = 'Japanese'; not in Magic: The Gathering Online refers to mtgoCode is null or mtgoCode = '' | How many sets are available just in Japanese and not in Magic: The Gathering Online? |
SELECT id FROM cards WHERE borderColor = 'black' GROUP BY id | simple | 435 | card_games | border with black color refers to borderColor = 'black' | How many card border with black color ? List out the card id. |
SELECT id FROM cards WHERE frameEffects = 'extendedart' GROUP BY id | simple | 436 | card_games |
frame effect as extendedart refers to frameEffects = 'extendedart'
| How many cards have frame effect as extendedart? List out the id of those cards. |
SELECT id FROM cards WHERE borderColor = 'black' AND isFullArt = 1 | simple | 437 | card_games | white card borders refers to borderColor = 'white'; has full artwork refers to isFullArt = 1 | Among black card borders, which card has full artwork? |
SELECT language FROM set_translations WHERE id = 174 | simple | 438 | card_games | Point out the language of set id "174"? |
|
SELECT name FROM sets WHERE code = 'ALL' | simple | 439 | card_games | List out the set name of the set code "ALL". |
|
SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar' | simple | 440 | card_games | "A Pedra Fellwar" refers to name = 'A Pedra Fellwar' | Which foreign language used by "A Pedra Fellwar"? |
SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.releaseDate = '2007-07-13' | simple | 441 | card_games | State the set code of the set with release date of 07/13/2007? |
|
SELECT DISTINCT T1.baseSetSize, T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block IN ('Masques', 'Mirage') | simple | 442 | card_games | Mention the base set size and set code of the set that was in block named "Masques" and "Mirage". |
|
SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'expansion' GROUP BY T2.setCode | simple | 443 | card_games | code of sets refers to setCode | Give the code of sets have expansion type of 'expansion'? |
SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'boros' | simple | 444 | card_games | Name the foreign name of the card that has boros watermark? List out the type of this card. |
|
SELECT DISTINCT T2.language, T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'colorpie' | simple | 445 | card_games | What is the language and flavor text of the card that has colorpie watermark? List out the type of this card. |
|
SELECT CAST(SUM(CASE WHEN T1.convertedManaCost = 10 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id), T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Abyssal Horror' | moderate | 446 | card_games | set of Abyssal Horror refers to name = 'Abyssal Horror'; percentage refers to DIVIDE(COUNT(convertedManaCost = 16),COUNT(convertedManaCost))*100 | What is percentage of the cards with a converted Mana Cost of 10 in set of Abyssal Horror? |
SELECT T2.setCode FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.type = 'commander' | simple | 447 | card_games | code of sets refers to setCode | Give the code of sets have expansion commander type? |
SELECT DISTINCT T1.name, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'abzan' | simple | 448 | card_games | Name the foreign name of the card that has abzan watermark? List out the type of this card. |
|
SELECT DISTINCT T2.language, T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.watermark = 'azorius' | simple | 449 | card_games | What is the language of the card that has azorius watermark? List out the type of this card. |
|
SELECT SUM(CASE WHEN artist = 'Aaron Miller' AND cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) FROM cards | moderate | 450 | card_games | designed by Aaron Miller refers to artist = 'Aaron Miller'; are icredibily powerful refers to cardKingdomFoilId = cardKingdomId AND cardKingdomId is not null | Of all the cards that are designed by Aaron Miller, how many of them are incredibly powerful? |
SELECT SUM(CASE WHEN availability = 'paper' AND hAND LIKE '+%' AND hAND != '+0' THEN 1 ELSE 0 END) FROM cards | simple | 451 | card_games | available in paper refers to availability like '%paper%'; have a positive starting maximum hand size refers to hand = '+%' | How many cards available in paper have a positive starting maximum hand size? |
SELECT DISTINCT name FROM cards WHERE isTextless = 0 | simple | 452 | card_games | have a text box refers to isTextless = 0 | Please list the names of the cards that have a text box. |
SELECT DISTINCT manaCost FROM cards WHERE name = 'Ancestor''s Chosen' | simple | 453 | card_games | card "Ancestor's Chosen" refers to name = 'Ancestor`s Chosen' | What's the unconverted mana cost of the card "Ancestor's Chosen"? |
SELECT SUM(CASE WHEN power LIKE '%*%' OR power IS NULL THEN 1 ELSE 0 END) FROM cards WHERE borderColor = 'white' | simple | 454 | card_games | unknown power refers to power = '*' or power is null | Among the cards with a white border color, how many of them have unknown power? |
SELECT DISTINCT name FROM cards WHERE isPromo = 1 AND side IS NOT NULL | simple | 455 | card_games | are a promotional painting refers to isPromo = 1; have multiple faces on the same card refers to side is not Null | Which of the cards that are a promotional painting have multiple faces on the same card? Please list their names. |
SELECT DISTINCT subtypes, supertypes FROM cards WHERE name = 'Molimo, Maro-Sorcerer' | simple | 456 | card_games | card "Molimo, Maro-Sorcerer" refers to name = 'Molimo, Maro-Sorcerer'; list of all types refers to subtypes,supertypes | What's the list of all types for the card "Molimo, Maro-Sorcerer"? |
SELECT DISTINCT purchaseUrls FROM cards WHERE promoTypes = 'bundle' | simple | 457 | card_games | promotional type of "bundle" refers to promoTypes = 'bundle'; websites refers to purchaseUrls | Please list the websites where I can purchase the cards that have the promotional type of "bundle". |
SELECT COUNT(CASE WHEN availability LIKE '%arena,mtgo%' THEN 1 ELSE NULL END) FROM cards | simple | 458 | card_games | available in both "arena" and "mtgo" refers to availability like '%arena,mtgo%' | How many artists have designed a card with a black border color and is available in both "arena" and "mtgo" printing type? |
SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1 | moderate | 459 | card_games | "Serra Angel" refers to name = 'Serra Angel'; "Shrine Keeper" refers to name = 'Shrine Keeper';
card costs more converted mana when the value of convertedManaCost is greater | Which card costs more converted mana, "Serra Angel" or "Shrine Keeper"? |
SELECT artist FROM cards WHERE flavorName = 'Battra, Dark Destroyer' | simple | 460 | card_games | promotional name is "Battra, Dark Destroyer" refers to flavorName = 'Battra, Dark Destroyer' | Which artist designed the card whose promotional name is "Battra, Dark Destroyer"? |
SELECT name FROM cards WHERE frameVersion = 2003 ORDER BY convertedManaCost DESC LIMIT 3 | simple | 461 | card_games | name of cards refers to name; 2003 card frame style refers to frameVersion = '2003' | Please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style. |
SELECT translation FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Ancestor''s Chosen' ) AND language = 'Italian' | moderate | 462 | card_games | Italian is a language which refers to language = 'Italian'; with "Ancestor's Chosen" in the card set refers to name = 'Ancestor's Chosen' | What's the Italian name of the set of cards with "Ancestor's Chosen" is in? |
SELECT COUNT(DISTINCT translation) FROM set_translations WHERE setCode IN ( SELECT setCode FROM cards WHERE name = 'Angel of Mercy' ) AND translation IS NOT NULL | simple | 463 | card_games | set of cards with "Angel of Mercy" in it refers to name = 'Angel of Mercy' | How many translations are there for the set of cards with "Angel of Mercy" in it? |
SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' | simple | 464 | card_games | card set "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition' | Please list the names of the cards in the set "Hauptset Zehnte Edition". |
SELECT IIF(SUM(CASE WHEN T2.language = 'Korean' AND T2.translation IS NOT NULL THEN 1 ELSE 0 END) > 0, 'YES', 'NO') FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Ancestor''s Chosen' | moderate | 465 | card_games | set of cards with "Ancestor's Chosen" in it refers to name = 'Ancestor's Chosen'; Korean version refers to language = 'Korean' | For the set of cards with "Ancestor's Chosen" in it, is there a Korean version of it? |
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T2.translation = 'Hauptset Zehnte Edition' AND T1.artist = 'Adam Rex' | moderate | 466 | card_games | card set "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition'; designed by Adam refers to artist = 'Adam Rex' | Among the cards in the set "Hauptset Zehnte Edition", how many of them are designed by Adam Rex? |
SELECT T1.baseSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Hauptset Zehnte Edition' | simple | 467 | card_games | "Hauptset Zehnte Edition" refers to translation = 'Hauptset Zehnte Edition'; number of cards refers to baseSetSize | How many cards are there in the base set of "Hauptset Zehnte Edition"? |
SELECT T2.translation FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Eighth Edition' AND T2.language = 'Chinese Simplified' | moderate | 468 | card_games | Eighth Edition is the name of card set which refers to name = 'Eighth Edition'; Simplified Chinese is the language; translation of the name refers to translation | What is the Simplified Chinese translation of the name of the set "Eighth Edition"? |
SELECT IIF(T2.mtgoCode IS NOT NULL, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Angel of Mercy' | moderate | 469 | card_games | card set "Angel of Mercy" refers to name = 'Angel of Mercy'; appear on Magic: The Gathering Online refers to mtgoCode is NOT NULL and vice versa | Did the set of cards with "Angel of Mercy" appear on Magic: The Gathering Online? |
SELECT DISTINCT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Ancestor''s Chosen' | simple | 470 | card_games | card set "Ancestor's Chosen" refers to name = 'Ancestor''s Chosen'; when released refers to releaseDate | When was the set of cards with "Ancestor's Chosen" released? |
SELECT T1.type FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Hauptset Zehnte Edition' | simple | 471 | card_games | card set "Hauptset Zehnte Edition" refers to translation = ' Hauptset Zehnte Edition'; expansion type refers to type | What is the expansion type of the set "Hauptset Zehnte Edition"? |
SELECT COUNT(DISTINCT T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.block = 'Ice Age' AND T2.language = 'Italian' AND T2.translation IS NOT NULL | moderate | 472 | card_games | sets in the block "Ice Age" refers to block = 'Ice Age'; Italian translation refers to language = 'Italian' | Among the sets in the block "Ice Age", how many of them have an Italian translation? |
SELECT IIF(isForeignOnly = 1, 'YES', 'NO') FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Adarkar Valkyrie' | moderate | 473 | card_games | card set Adarkar Valkyrie refers to name = 'Adarkar Valkyrie'; isForeignOnly = 1 means only available outside the United States; | Is the set of cards with Adarkar Valkyrie only available outside the United States? |
SELECT COUNT(T1.id) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation IS NOT NULL AND T1.baseSetSize < 10 AND T2.language = 'Italian' | moderate | 474 | card_games | Italian translation refers to language = 'Italian'; have a translation means translation is not null; base set number of under 10 refers to baseSetSize < 10 | Among the sets of cards that have an Italian translation, how many of them have a base set number of under 10? |
SELECT SUM(CASE WHEN T1.borderColor = 'black' THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' | simple | 475 | card_games | card set Coldsnap refers to name = 'Coldsnap'; black border color refers to borderColor = 'black' | How many cards in the set Coldsnap have a black border color? |
SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' ORDER BY T1.convertedManaCost DESC LIMIT 1 | simple | 476 | card_games | card set Coldsnap refers to name = 'Coldsnap' | Please list the name of the cards in the set Coldsnap with the highest converted mana cost. |
SELECT T1.artist FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE (T2.name = 'Coldsnap' AND T1.artist = 'Chippy') OR (T2.name = 'Coldsnap' AND T1.artist = 'Aaron Miller') OR (T2.name = 'Coldsnap' AND T1.artist = 'Jeremy Jarvis') GROUP BY T1.artist | challenging | 477 | card_games | card set Coldsnap refers to name = 'Coldsnap'; Jeremy Jarvis, Aaron Miller or Chippy are the name of artists which refers to artist IN ('Jeremy Jarvis', 'Aaron Miller','Chippy'); | Which of these artists have designed a card in the set Coldsnap, Jeremy Jarvis, Aaron Miller or Chippy? |
SELECT T1.name FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' AND T1.number = 4 | simple | 478 | card_games | card set Coldsnap refers to name = 'Coldsnap'; card number 4 refers to number = 4 | What is card number 4 in the set Coldsnap? |
SELECT SUM(CASE WHEN T1.power LIKE '%*%' OR T1.power IS NULL THEN 1 ELSE 0 END) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' AND T1.convertedManaCost > 5 | moderate | 479 | card_games | card set Coldsnap refers to name = 'Coldsnap'; converted mana cost higher than 5 refers to convertedManaCost > 5; unknown power refers to power = '*' or T1.power is null | Among the cards with converted mana cost higher than 5 in the set Coldsnap, how many of them have unknown power? |
SELECT T2.flavorText FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'Italian' | moderate | 480 | card_games | Italian refers to language = 'Italian'; flavor text refers to flavorText; "Ancestor''s Chosen" refers to name = 'Ancestor''s Chosen' | What is the Italian flavor text of the card "Ancestor's Chosen"? |
SELECT T2.language FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.flavorText IS NOT NULL | simple | 481 | card_games | "Ancestor''s Chosen" refers to name = 'Ancestor''s Chosen'; has a flavor text refers to flavorText is not null | Please list all the foreign languages in which the card "Ancestor's Chosen" has a flavor text. |
SELECT DISTINCT T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Ancestor''s Chosen' AND T2.language = 'German' | simple | 482 | card_games | German refers to language = 'German'; "Ancestor's Chosen" refers to name = 'Ancestor''s Chosen' | What's the German type of the card "Ancestor's Chosen"? |
SELECT DISTINCT T1.text FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian' | moderate | 483 | card_games | card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian' | Please list the Italian text ruling of all the cards in the set Coldsnap. |
SELECT T2.name FROM foreign_data AS T1 INNER JOIN cards AS T2 ON T2.uuid = T1.uuid INNER JOIN sets AS T3 ON T3.code = T2.setCode WHERE T3.name = 'Coldsnap' AND T1.language = 'Italian' ORDER BY T2.convertedManaCost DESC LIMIT 1 | moderate | 484 | card_games | card set Coldsnap refers to name = 'Coldsnap'; Italian refers to language = 'Italian' | Please list the Italian names of the cards in the set Coldsnap with the highest converted mana cost. |
SELECT T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.name = 'Reminisce' | simple | 485 | card_games | Reminisce refers to name = 'Reminisce'; when created is the date | When was the ruling for the card 'Reminisce' created? |
SELECT CAST(SUM(CASE WHEN T1.convertedManaCost = 7 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' | moderate | 486 | card_games | converted mana cost of 7 refers to convertedManaCost = 7; card set Coldsnap refers to name = 'Coldsnap'; percentage = DIVIDE(SUM(convertedManaCost = 7), SUM(convertedManaCost))*100 | What is the percentage of the cards with a converted mana cost of 7 in the set Coldsnap? |
SELECT CAST(SUM(CASE WHEN T1.cardKingdomFoilId IS NOT NULL AND T1.cardKingdomId IS NOT NULL THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T2.name = 'Coldsnap' | challenging | 487 | card_games | card set Coldsnap refers to name = 'Coldsnap'; foil is incredibly powerful refers to cardKingdomFoilId = cardKingdomId AND cardKingdomId is not null; the percentage of incredibly powerful cards in the set refers to DIVIDE(SUM(incredibly powerful), SUM(name = 'Coldsnap'))*100
| What is the percentage of incredibly powerful cards in the set Coldsnap? |
SELECT code FROM sets WHERE releaseDate = '2017-07-14' GROUP BY releaseDate, code | simple | 488 | card_games | released on 2017/7/14 refers to releaseDate = '2017-07-14' | What's the code for the set which was released on 2017/7/14? |
SELECT keyruneCode FROM sets WHERE code = 'PKHC' | simple | 489 | card_games | keyrune code refers to keyruneCode | List the keyrune code for the set whose code is 'PKHC'. |
SELECT mcmId FROM sets WHERE code = 'SS2' | simple | 490 | card_games | magic card market id refers to mcmId | For the set which had 'SS2' as the code, what is its magic card market id? |
SELECT mcmName FROM sets WHERE releaseDate = '2017-06-09' | simple | 491 | card_games | magic card market name refers to mcmName | What's the magic card market name for the set which was released on 2017/6/9? |
SELECT type FROM sets WHERE name LIKE '%FROM the Vault: Lore%' | simple | 492 | card_games | set "From the Vault refers to name which contains 'From the Vault: Lore'; expansion type refers to type | For the set "From the Vault: Lore", what is its expansion type? |
SELECT parentCode FROM sets WHERE name = 'Commander 2014 Oversized' | simple | 493 | card_games | the set "Commander 2014 Oversized" refers to name = 'Commander 2014 Oversized'; | For the set "Commander 2014 Oversized" , give its parent code. |
SELECT T2.text , CASE WHEN T1.hasContentWarning = 1 THEN 'YES' ELSE 'NO' END FROM cards AS T1 INNER JOIN rulings AS T2 ON T2.uuid = T1.uuid WHERE T1.artist = 'Jim Pavelec' | challenging | 494 | card_games | all cards illustrated by Jim Pavelec refers to artist = 'Jim Pavelec'; the text of the ruling refers to text; cards have missing or degraded properties and values if hasContentWarning = 1 else it doesn't have; | For all cards illustrated by Jim Pavelec. and describe the text of the ruling of these cards. Do these cards have missing or degraded properties and values. |
SELECT T2.releaseDate FROM cards AS T1 INNER JOIN sets AS T2 ON T2.code = T1.setCode WHERE T1.name = 'Evacuation' | simple | 495 | card_games | "Evacuation" refers to name = 'Evacuation'; release date refers to releaseDate | What was the release date for the set which card "Evacuation" in it? |
SELECT T1.baseSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T2.translation = 'Rinascita di Alara' | simple | 496 | card_games | number of cards refers to baseSetSize; set of "Rinascita di Alara" refers to translation = 'Rinascita di Alara' | What is the number of cards are there in the set of "Rinascita di Alara"? |
SELECT type FROM sets WHERE code IN ( SELECT setCode FROM set_translations WHERE translation = 'Huitième édition' ) | simple | 497 | card_games | the set "Huitième édition" refers to translation = 'Huitième édition'; expansion type refers to type | List the expansion type of the set "Huitième édition". |
SELECT T2.translation FROM cards AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.setCode WHERE T1.name = 'Tendo Ice Bridge' AND T2.language = 'French' AND T2.translation IS NOT NULL | moderate | 498 | card_games | French refers to language = 'French'; "Tendo Ice Bridge" is a translated name of a card; translated name refers to translation | What's the French name of the set of cards with "Tendo Ice Bridge" is in? |
SELECT COUNT(DISTINCT T2.translation) FROM sets AS T1 INNER JOIN set_translations AS T2 ON T2.setCode = T1.code WHERE T1.name = 'Salvat 2011' AND T2.translation IS NOT NULL | moderate | 499 | card_games | translations of the name refers to translation; translation is not NULL; set "Salvat 2011" refers to name = 'Salvat 2011' | How many translations of the name of the set "Salvat 2011"? |
Subsets and Splits