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