Chinastark/bird_dataset huggingface dataset:
Database: card_games
Note: duel deck a refers to dueldeck = a;
Question: What are the cards belong to duel deck a? List the ID.
SQL: SELECT id FROM cards WHERE dueldeck = 'a'
Database: card_games
Question: List the edhrecRank for cards with frame version 2015.
SQL: SELECT edhrecrank FROM cards WHERE frameversion = 2015
Database: card_games
Note: Chinese Simplified' is the language;
Question: List down the name of artists for cards in Chinese Simplified.
SQL: SELECT cards.artist FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE foreign_data.language = 'Chinese Simplified'
Database: card_games
Note: available in paper refers to availability = 'paper'; 'Japanese is the language;
Question: What are the cards that only available in paper and Japanese language?
SQL: SELECT cards.name FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE cards.availability = 'paper' AND foreign_data.language = 'Japanese'
Database: card_games
Note: banned card refers to status = 'Banned'; white border refers to bordercolor = 'white';
Question: How many of the banned cards are white border?
SQL: SELECT count(cards.id) FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE legalities.status = 'Banned' AND cards.bordercolor = 'white'
Database: card_games
Note: legacy card refers to format = 'legacy'; foreign language refers to language in foreign_data;
Question: List down the uuid for legacy cards and the foreign language of these cards.
SQL: SELECT cards.uuid, foreign_data.language FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE legalities.format = 'legacy'
Database: card_games
Note: Beacon of Immortality' is the name of card;
Question: Write down the ruling of Beacon of Immortality.
SQL: SELECT rulings.text FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE cards.name = 'Beacon of Immortality'
Database: card_games
Note: future frame version refers to frameversion = 'future'; legility status refers to status = 'legal';
Question: How many cards are having future frame version and what are the legality status of these cards?
SQL: SELECT count(cards.id) FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE cards.frameversion = 'future'
Database: card_games
Note: set OGW refers to setcode = 'OGW';
Question: What are the cards for set OGW? State the colour for these cards.
SQL: SELECT id, colors FROM cards WHERE id IN ( SELECT id FROM set_translations WHERE setcode = 'OGW' )
Database: card_games
Note: set 10E refers to setcode = '10E'; converted mana of 5 refers to convertedmanacost = 5;
Question: What are the cards in set 10E with converted mana of 5 have translation and what are the languages?
SQL: SELECT id, LANGUAGE FROM set_translations WHERE id = ( SELECT id FROM cards WHERE convertedmanacost = 5 ) AND setcode = '10E'
Database: card_games
Note: Creature - Elf is the originaltype;
Question: List down the name of cards with original types of Creature - Elf and the date of rulings for these cards.
SQL: SELECT cards.id, rulings.date FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE cards.originaltype = 'Creature - Elf'
Database: card_games
Note: id 1-20 refers to id BETWEEN 1 and 20;
Question: What are the colors of cards from ID 1-20? What are the format of these cards?
SQL: SELECT cards.colors, legalities.format FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE cards.id BETWEEN 1 AND 20
Database: card_games
Note: Artifact card refers to originaltype = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data;
Question: Among the Artifact cards, which are black color and comes with foreign languague translation?
SQL: SELECT DISTINCT cards.name FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE cards.originaltype = 'Artifact' AND cards.colors = 'B'
Database: card_games
Note: uncommon refers to rarity = 'uncommon';
Question: Pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.
SQL: SELECT DISTINCT cards.name FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE cards.rarity = 'uncommon' ORDER BY rulings.date ASC LIMIT 3
Database: card_games
Note: John Avon refer to artist; foil poweful foils refers to cardkingdomid and cardKingdomFoildid is NOT NULL;
Question: On how many cards designed by John Avon is its foil non-powerful?
SQL: SELECT count(id) FROM cards WHERE (cardkingdomid IS NULL OR cardkingdomfoilid IS NULL) AND artist = 'John Avon'
Database: card_games
Note: white bordered cards refer to bordercolor = 'white'; powerful cards refers to cardkingdomfoilid is not null AND cardkingdomid is not null (replace);
Question: How many white bordered cards are powerful?
SQL: SELECT count(id) FROM cards WHERE bordercolor = 'white' AND cardkingdomid IS NOT NULL AND cardkingdomfoilid IS NOT NULL
Database: card_games
Note: UDON refer to artist; availabe in mtgo refers to availability = 'mtgo'; starting maximum hand size of -1 refers to hand = -1;
Question: How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1?
SQL: SELECT count(id) FROM cards WHERE hand = '-1' AND artist = 'UDON' AND availability = 'mtgo'
Database: card_games
Note: sensitive content warning refer to hascontentwarning = 1; available on paper refer to availability = 'paper' 1993 refer to frameversion;
Question: How many cards with a 1993 frame version and available on paper have a sensitive content warning?
SQL: SELECT count(id) FROM cards WHERE frameversion = 1993 AND availability = 'paper' AND hascontentwarning = 1
Database: card_games
Note: available in paper and mtgo refers to availability = 'mtgo,paper'; frameversion = 2003;bordercolor = 'black';
Question: 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?
SQL: SELECT manacost FROM cards WHERE availability = 'mtgo,paper' AND bordercolor = 'black' AND frameversion = 2003 AND layout = 'normal'
Database: card_games
Note: unconverted mana refer to manacost; Rob Alexander refer to artist;
Question: What is the  unconverted mana do all the cards created by Rob Alexander cost in total?
SQL: SELECT manacost FROM cards WHERE artist = 'Rob Alexander'
Database: card_games
Note: all types refer to subtypes and supertypes  availble in arena refers to availability = 'arena';
Question: Lists all types of cards available in arena.
SQL: SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL
Database: card_games
Note: Spanish refer to language; set code refers to setcode;
Question: Lists the set code of all cards translated into Spanish.
SQL: SELECT setcode FROM set_translations WHERE LANGUAGE = 'Spanish'
Database: card_games
Note: 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';
Question: What percentage of legendary frame effect cards that are only available in online game variations?
SQL: SELECT sum(CASE WHEN isonlineonly = 1 THEN 1.0 ELSE 0 END) / count(id) * 100 FROM cards WHERE frameeffects = 'legendary'
Database: card_games
Note: 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;
Question: What is the percentage of Story Spotlight cards that do not have a text box? List them by their ID.
SQL: SELECT cast(sum(CASE WHEN istextless = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / count(id) FROM cards WHERE isstoryspotlight = 1
Database: card_games
Note: Spanish refer to language; Percentage refer to DIVidE(SUM(id where language = 'Spanish'), COUNT(id))*100;
Question: Calculate the percentage of cards in Spanish. List them by name.
SQL: 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'
Database: card_games
Note: set refer to setcode; number of cards refers to basesetsize; basesetsize = 309;
Question: Indicates the name of all the languages into which the set whose number of cards is 309 is translated.
SQL: SELECT set_translations.language FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE SETS.basesetsize = 309
Database: card_games
Note: Commander block refer to block = 'Commander'; sets refer to code = setcode; Portuguese refer to language = 'Portuguese (Brasil)';
Question: How many Brazilian Portuguese translated sets are inside the Commander block?
SQL: SELECT count(SETS.id) FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE set_translations.language = 'Portuguese (Brazil)' AND SETS.block = 'Commander'
Database: card_games
Note: legal status refer to status = 'legal'; Goblin-type cards refer to types = 'Creature';
Question: Lists by ID all Creature-type cards with legal status.
SQL: SELECT cards.id FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE legalities.status = 'Legal' AND cards.types = 'Creature'
Database: card_games
Note: German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null;
Question: Lists all types of cards in German.
SQL: SELECT cards.subtypes, cards.supertypes FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE foreign_data.language = 'German' AND cards.subtypes IS NOT NULL AND cards.supertypes IS NOT NULL
Database: card_games
Note: unknown power cards refers to power is null or power = '*';contain info about the triggered ability refers to text contains 'triggered ability';
Question: How many unknown power cards contain info about the triggered ability
SQL: SELECT rulings.text FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE (cards.power IS NULL OR cards.power = '*') AND rulings.text LIKE '%triggered ability%'
Database: card_games
Note: pre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL;
Question: Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability." that do not have multiple faces.
SQL: SELECT count(cards.id) FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE legalities.format = 'premodern' AND rulings.text = 'This is a triggered mana ability.' AND cards.side IS NULL
Database: card_games
Note: available in paper refers to availability = 'paper';
Question: Is there any card from Erica Yang artist in pauper format and available in paper? If so, indicate its ID.
SQL: SELECT cards.id FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE cards.artist = 'Erica Yang' AND legalities.format = 'pauper' AND cards.availability = 'paper'
Database: card_games
Question: To which artist does the card with the text "Das perfekte Gegenmittel zu einer dichten Formation" belong?
SQL: SELECT DISTINCT cards.artist FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE foreign_data.flavortext LIKE '%DAS perfekte Gegenmittel zu einer dichten Formation%'
Database: card_games
Note: in French refers to language = 'French'; black border color refers to bordercolor = 'black';
Question: What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?
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'
Database: card_games
Note: with print rarity refers to rarity = 'rare'; on 01/02/2007 refers to date = '2007-02-01';
Question: How many cards with print rarity have ruling text printed on 01/02/2007?
SQL: SELECT count(DISTINCT cards.id) FROM cards INNER JOIN rulings ON cards.uuid = rulings.uuid WHERE cards.rarity = 'rare' AND rulings.date = '2007-02-01'
Database: card_games
Note: set of 180 cards refers to basesetsize = 180;
Question: What language is the set of 180 cards that belongs to the Ravnica block translated into?
SQL: SELECT set_translations.language FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE SETS.block = 'Ravnica' AND SETS.basesetsize = 180
Database: card_games
Note: 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';
Question: What percentage of cards with format commander and legal status do not have a content warning?
SQL: SELECT cast(sum(CASE WHEN cards.hascontentwarning = 0 THEN 1 ELSE 0 END) AS REAL) * 100 / count(cards.id) FROM cards INNER JOIN legalities ON cards.uuid = legalities.uuid WHERE legalities.format = 'commander' AND legalities.status = 'Legal'
Database: card_games
Note: 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;
Question: What percentage of cards without power are in French?
SQL: SELECT cast(sum(CASE WHEN foreign_data.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / count(cards.id) FROM cards INNER JOIN foreign_data ON cards.uuid = foreign_data.uuid WHERE cards.power IS NULL OR cards.power = '*'
Database: card_games
Note: Japanese translated refers to language = 'Japanese'; expansion sets refers to type = 'expansion'; percentage = DIVidE(COUNT(language = 'Japanese'),COUNT(language))*100;
Question: What percentage of Japanese translated sets are expansion sets?
SQL: SELECT cast(sum(CASE WHEN set_translations.language = 'Japanese' THEN 1 ELSE 0 END) AS REAL) * 100 / count(SETS.id) FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE SETS.type = 'expansion'
Database: card_games
Note: kind of printing refers to availability; Daren Bader created refers to artist = 'Daren Bader';
Question: What kind of printing is on the card that Daren Bader created?
SQL: SELECT DISTINCT availability FROM cards WHERE artist = 'Daren Bader'
Database: card_games
Note: color cards with no borders refers to bordercolor = 'borderless'; ranked higher than 12000 on EDHRec refers to edhrecrank > 12000;
Question: How many color cards with no borders have been ranked higher than 12000 on EDHRec?
SQL: SELECT count(id) FROM cards WHERE edhrecrank > 12000 AND bordercolor = 'borderless'
Database: card_games
Note: are oversized refers to isoversized = 1; reprinted refers to isreprint = 1; printed for promotions refers to ispromo = 1;
Question: How many cards are oversized, reprinted, and printed for promotions?
SQL: SELECT count(id) FROM cards WHERE isoversized = 1 AND isreprint = 1 AND ispromo = 1
Database: card_games
Note: unknown power cards refers to power is null or power = '*'; promotional types for arena league refers to promotypes = 'arenaleague';
Question: Please list top three unknown power cards that have promotional types for arena league in alphabetical order.
SQL: SELECT name FROM cards WHERE (power IS NULL OR power LIKE '%*%') AND promotypes = 'arenaleague' ORDER BY name LIMIT 3
Database: card_games
Note: multiverse number 149934 refers to multiverseid = 149934;
Question: What is the language of the card with the multiverse number 149934?
SQL: SELECT LANGUAGE FROM foreign_data WHERE multiverseid = 149934
Database: card_games
Note: poweful refers to cardkingdomfoilid is not null AND cardkingdomid is not null;
Question: Please provide the ids of top three powerful pairs of Kingdom Foil and Kingdom Cards sorted by Kingdom Foil id in alphabetical order.
SQL: SELECT cardkingdomfoilid, cardkingdomid FROM cards WHERE cardkingdomfoilid IS NOT NULL AND cardkingdomid IS NOT NULL ORDER BY cardkingdomfoilid LIMIT 3
Database: card_games
Note: do not have a text box refers to istextless = 1; proportion refers to DIVidE(COUNT(textless = 1 and layout = 'normal'),COUNT(textless))*100;
Question: What proportion of cards do not have a text box with a normal layout?
SQL: SELECT cast(sum(CASE WHEN istextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM cards
Database: card_games
Note: don't have multiple faces on a single card side is null;
Question: What are the card numbers that don't have multiple faces on a single card and have the subtypes Angel and Wizard?
SQL: SELECT id FROM cards WHERE subtypes = 'Angel,Wizard' AND side IS NULL
Database: card_games
Note: don't appear in Magic: The Gathering Online refers to mtgocode is NULL or mtgocode = '';
Question: Please provide top three sets that don't appear in Magic: The Gathering Online, along with their names in in alphabetical order.
SQL: SELECT name FROM SETS WHERE mtgocode IS NULL ORDER BY name LIMIT 3
Database: card_games
Note: known as Archenemy refers to mcmname = 'Archenemy'; having the code ARC refers to setcode = 'ARC';
Question: What languages are available in the set known as Archenemy on the magic card market and having the code ARC?
SQL: SELECT set_translations.language FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE SETS.mcmname = 'Archenemy' AND set_translations.setcode = 'ARC'
Database: card_games
Note: set number 5 refers to id = 5;
Question: What is the name of set number 5 and its translation?
SQL: SELECT SETS.name, set_translations.translation FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE set_translations.id = 5 GROUP BY SETS.name, set_translations.translation
Database: card_games
Note: set number 206 refers to id = 206;
Question: What is the language and expansion type of set number 206?
SQL: SELECT set_translations.language, SETS.type FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE set_translations.id = 206
Database: card_games
Question: 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.
SQL: SELECT SETS.name, SETS.id FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE SETS.block = 'Shadowmoor' AND set_translations.language = 'Italian' ORDER BY SETS.id LIMIT 2
Database: card_games
Note: 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';
Question: 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.
SQL: SELECT SETS.name, SETS.id FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE set_translations.language = 'Japanese' AND SETS.isfoilonly = 1 AND SETS.isforeignonly = 0
Database: card_games
Note: Russian refers to language = 'Russian'; contains the most cards overall refers to MAX(basesetsize);
Question: Which Russian set of cards contains the most cards overall?
SQL: SELECT SETS.id FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode WHERE set_translations.language = 'Russian' GROUP BY SETS.basesetsize ORDER BY SETS.basesetsize DESC LIMIT 1
Database: card_games
Note: are only available for online games refers to isonlineonly = 1; percentage = DIVidE(COUNT(isonlineonly = 1),COUNT(isonlineonly))*100;
Question: What is the percentage of the set of cards that have Chinese Simplified as the language and are only available for online games?
SQL: SELECT cast(sum(CASE WHEN set_translations.language = 'Chinese Simplified' AND SETS.isonlineonly = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / count(*) FROM SETS INNER JOIN set_translations ON SETS.code = set_translations.setcode
Database: card_games
Note: Japanese refers to language = 'Japanese'; not in Magic: The Gathering Online refers to mtgocode is null or mtgocode = '';
Question: How many sets are available just in Japanese and not in Magic: The Gathering Online?
SQL: SELECT count(SETS.id) FROM SETS INNER JOIN set_translations ON set_translations.setcode = SETS.code WHERE set_translations.language = 'Japanese'  AND (SETS.mtgocode IS NULL OR SETS.mtgocode = '')
Database: card_games
Note: border with black color refers to bordercolor = 'black';
Question: How many card border with black color ? List out the card id.
SQL: SELECT id FROM cards WHERE bordercolor = 'black' GROUP BY id
Database: card_games
Note: frame effect as extendedart refers to frameeffects = 'extendedart';
Question: How many cards have frame effect as extendedart? List out the id of those cards.
SQL: SELECT id FROM cards WHERE frameeffects = 'extendedart' GROUP BY id
Database: card_games
Note: white card borders refers to bordercolor = 'white'; has full artwork refers to isfullart = 1;
Question: Among black card borders, which card has full artwork?
SQL: SELECT id FROM cards WHERE bordercolor = 'black' AND isfullart = 1
Database: card_games
Question: Point out the language of set id "174"?
SQL: SELECT LANGUAGE FROM set_translations WHERE id = 174
Database: card_games
Question: List out the set name of the set code "ALL".
SQL: SELECT name FROM SETS WHERE code = 'ALL'
Database: card_games
Note: "A Pedra Fellwar" refers to name = 'A Pedra Fellwar';
Question: Which foreign language used by "A Pedra Fellwar"?
SQL: SELECT DISTINCT LANGUAGE FROM foreign_data WHERE name = 'A Pedra Fellwar'
Database: card_games
Question: State the set code of the set with release date of 07/13/2007?
SQL: SELECT set_translations.setcode FROM SETS INNER JOIN set_translations ON set_translations.setcode = SETS.code WHERE SETS.releasedate = '2007-07-13'
Database: card_games
Question: Mention the base set size and set code of the set that was in block named "Masques" and "Mirage".
SQL: SELECT DISTINCT SETS.basesetsize, set_translations.setcode FROM SETS INNER JOIN set_translations ON set_translations.setcode = SETS.code WHERE SETS.block IN ('Masques', 'Mirage')
Database: card_games
Note: code of sets refers to setcode;
Question: Give the code of sets have expansion type of 'expansion'?
SQL: SELECT set_translations.setcode FROM SETS INNER JOIN set_translations ON set_translations.setcode = SETS.code WHERE SETS.type = 'expansion' GROUP BY set_translations.setcode
Database: card_games
Question: Name the foreign name of the card that has boros watermark? List out the type of this card.
SQL: SELECT DISTINCT cards.name, cards.type FROM cards INNER JOIN foreign_data ON foreign_data.uuid = cards.uuid WHERE cards.watermark = 'boros'
Database: card_games
Question: What is the language and flavor text of the card that has colorpie watermark? List out the type of this card.
SQL: SELECT DISTINCT foreign_data.language, foreign_data.flavortext FROM cards INNER JOIN foreign_data ON foreign_data.uuid = cards.uuid WHERE cards.watermark = 'colorpie'
Database: card_games
Note: set of Abyssal Horror refers to name = 'Abyssal Horror'; percentage refers to DIVidE(COUNT(convertedmanacost = 16),COUNT(convertedmanacost))*100;
Question: What is percentage of the cards with a converted Mana Cost of 10 in set of Abyssal Horror?
SQL: SELECT cast(sum(CASE WHEN cards.convertedmanacost = 10 THEN 1 ELSE 0 END) AS REAL) * 100 / count(cards.id), cards.name FROM cards INNER JOIN SETS ON SETS.code = cards.setcode WHERE cards.name = 'Abyssal Horror'
Database: card_games
Note: code of sets refers to setcode;
Question: Give the code of sets have expansion commander type?
SQL: SELECT set_translations.setcode FROM SETS INNER JOIN set_translations ON set_translations.setcode = SETS.code WHERE SETS.type = 'commander'
Database: card_games
Question: Name the foreign name of the card that has abzan watermark? List out the type of this card.
SQL: SELECT DISTINCT cards.name, cards.type FROM cards INNER JOIN foreign_data ON foreign_data.uuid = cards.uuid WHERE cards.watermark = 'abzan'