db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
toxicology
select t1.atom_id from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id inner join bond as t3 on t2.molecule_id = t3.molecule_id where t2.molecule_id = 'tr012' and t3.bond_type = '=' and t1.element = 'c'
Question: what is the atom id of double bonded carbon in tr012 molecule? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecu...
what is the atom id of double bonded carbon in tr012 molecule?
toxicology
select t1.atom_id from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element = 'o' and t2.label = '+'
Question: list the atom id of the carcinogenic molecule that contains oxygen? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.m...
list the atom id of the carcinogenic molecule that contains oxygen?
card_games
select id from cards where cardkingdomfoilid is not null and cardkingdomid is not null
Question: which are the cards that have incredibly powerful foils. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects,...
which are the cards that have incredibly powerful foils.
card_games
select id from cards where bordercolor = 'borderless' and (cardkingdomid is null or cardkingdomid is null)
Question: what are the borderless cards available without powerful foils? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameE...
what are the borderless cards available without powerful foils?
card_games
select name from cards order by faceconvertedmanacost limit 1
Question: list the card names with value that cost more converted mana for the face. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorT...
list the card names with value that cost more converted mana for the face.
card_games
select id from cards where edhrecrank < 100 and frameversion = 2015
Question: name all cards with 2015 frame style ranking below 100 on edhrec. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fram...
name all cards with 2015 frame style ranking below 100 on edhrec.
card_games
select distinct t1.id from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t2.format = 'gladiator' and t2.status = 'banned' and t1.rarity = 'mythic'
Question: list all the mythic rarity print cards banned in gladiator format. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fra...
list all the mythic rarity print cards banned in gladiator format.
card_games
select distinct t2.status from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.type = 'artifact' and t2.format = 'vintage' and t1.side is null
Question: for artifact type of cards that do not have multiple faces on the same card, state its legalities for vintage play format. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, face...
for artifact type of cards that do not have multiple faces on the same card, state its legalities for vintage play format.
card_games
select t1.id, t1.artist from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t2.status = 'legal' and t2.format = 'commander' and (t1.power is null or t1.power = '*')
Question: list all the card id and artist with unknown power which are legal for commander play format. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, ...
list all the card id and artist with unknown power which are legal for commander play format.
card_games
select t1.id, t2.text, t1.hascontentwarning from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.artist = 'stephen daniele'
Question: find all cards illustrated by stephen daniel and describe the text of the ruling of these cards. state if these cards have missing or degraded properties and values. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, co...
find all cards illustrated by stephen daniel and describe the text of the ruling of these cards. state if these cards have missing or degraded properties and values.
card_games
select t2.text from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.name = 'sublime epiphany' and t1.number = '74s'
Question: describe the information about rulings for card named 'sublime epiphany' with number 74s. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flav...
describe the information about rulings for card named 'sublime epiphany' with number 74s.
card_games
select t1.name, t1.artist, t1.ispromo from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.ispromo = 1 group by t1.artist order by count(distinct t1.uuid) desc limit 1
Question: name the card and artist with the most ruling information. also state if the card is a promotional printing. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaC...
name the card and artist with the most ruling information. also state if the card is a promotional printing.
card_games
select t2.language from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.name = 'annul' and t1.number = 29
Question: state the alternative languages available for card named annul numbered 29. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavor...
state the alternative languages available for card named annul numbered 29.
card_games
select t1.name from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t2.language = 'japanese'
Question: name all the cards which have alternative language in japanese. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameE...
name all the cards which have alternative language in japanese.
card_games
select cast(sum(case when t2.language = 'chinese simplified' then 1 else 0 end) as real) * 100 / count(t1.id) from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid
Question: calculate the percentage of the cards availabe in chinese simplified. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, ...
calculate the percentage of the cards availabe in chinese simplified.
card_games
select t1.name, t1.totalsetsize from sets as t1 inner join set_translations as t2 on t1.code = t2.setcode where t2.language = 'italian'
Question: list all the sets available in italian translation. state the total number of cards per set. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, f...
list all the sets available in italian translation. state the total number of cards per set.
card_games
select count(type) from cards where artist = 'aaron boyd'
Question: how many types of cards does the artist aaron boyd illustrated about card art? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, fla...
how many types of cards does the artist aaron boyd illustrated about card art?
card_games
select distinct keywords from cards where name = 'angel of mercy'
Question: what is the keyword found on card 'angel of mercy'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fram...
what is the keyword found on card 'angel of mercy'?
card_games
select count(*) from cards where power = '*'
Question: how many cards have infinite power? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion, hand, ...
how many cards have infinite power?
card_games
select promotypes from cards where name = 'duress' and promotypes is not null
Question: what type of promotion is of card 'duress'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion...
what type of promotion is of card 'duress'?
card_games
select distinct bordercolor from cards where name = 'ancestor''s chosen'
Question: what is the border color of card 'ancestor's chosen'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fr...
what is the border color of card 'ancestor's chosen'?
card_games
select originaltype from cards where name = 'ancestor''s chosen' and originaltype is not null
Question: what is the type of the card 'ancestor's chosen' as originally printed? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText...
what is the type of the card 'ancestor's chosen' as originally printed?
card_games
select language from set_translations where id in ( select id from cards where name = 'angel of mercy' )
Question: cards are not directly linked to language but through table 'set'. you need to add set in covered table & rephrase your questionwhat are the languages available for the set that card 'angel of mercy' is in? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, ...
cards are not directly linked to language but through table 'set'. you need to add set in covered table & rephrase your questionwhat are the languages available for the set that card 'angel of mercy' is in?
card_games
select count(distinct t1.id) from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t2.status = 'restricted' and t1.istextless = 0
Question: how many cards of legalities whose status is restricted have text boxes? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTex...
how many cards of legalities whose status is restricted have text boxes?
card_games
select t2.text from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.name = 'condemn'
Question: what is the description about the ruling of card 'condemn'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffec...
what is the description about the ruling of card 'condemn'?
card_games
select count(distinct t1.id) from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t2.status = 'restricted' and t1.isstarter = 1
Question: how many cards of legalities whose status is restricted are found in a starter deck? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorNam...
how many cards of legalities whose status is restricted are found in a starter deck?
card_games
select distinct t2.status from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.name = 'cloudchaser eagle'
Question: what is the status of card 'cloudchaser eagle'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVer...
what is the status of card 'cloudchaser eagle'?
card_games
select distinct t1.type from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.name = 'benalish knight'
Question: what is the type of card 'benalish knight'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion...
what is the type of card 'benalish knight'?
card_games
select t2.format from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.name = 'benalish knight'
Question: what is the rule of playing card 'benalish knight'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fram...
what is the rule of playing card 'benalish knight'?
card_games
select t1.artist from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t2.language = 'phyrexian'
Question: please provide the names of the artists who illustrated the card art in phyrexian. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName,...
please provide the names of the artists who illustrated the card art in phyrexian.
card_games
select cast(sum(case when bordercolor = 'borderless' then 1 else 0 end) as real) * 100 / count(id) from cards
Question: what is the percentage of borderless cards? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion...
what is the percentage of borderless cards?
card_games
select count(t1.id) from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t2.language = 'german' and t1.isreprint = 1
Question: how many cards that illusrtated in german have been reprinted? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEf...
how many cards that illusrtated in german have been reprinted?
card_games
select count(t1.id) from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.bordercolor = 'borderless' and t2.language = 'russian'
Question: how many borderless cards are illustrated in russian? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fr...
how many borderless cards are illustrated in russian?
card_games
select cast(sum(case when t2.language = 'french' then 1 else 0 end) as real) * 100 / count(t1.id) from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.isstoryspotlight = 1
Question: what is the percentage of cards whose language is french among the story spotlight cards? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flav...
what is the percentage of cards whose language is french among the story spotlight cards?
card_games
select count(id) from cards where toughness = 99
Question: how many cards are there with toughness of 99? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVers...
how many cards are there with toughness of 99?
card_games
select distinct name from cards where artist = 'aaron boyd'
Question: name the cards that were illustrated by aaron boyd. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fram...
name the cards that were illustrated by aaron boyd.
card_games
select count(id) from cards where availability = 'mtgo' and bordercolor = 'black'
Question: how many black border cards are only available on mtgo? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, ...
how many black border cards are only available on mtgo?
card_games
select id from cards where convertedmanacost = 0
Question: list down all the card ids with converted mana cost of 0. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects...
list down all the card ids with converted mana cost of 0.
card_games
select layout from cards where keywords = 'flying'
Question: what are the card layout of cards with keyword of flying? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects...
what are the card layout of cards with keyword of flying?
card_games
select count(id) from cards where originaltype = 'summon - angel' and subtypes != 'angel'
Question: how many cards with original type of 'summon - angel' have subtype other than 'angel'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorN...
how many cards with original type of 'summon - angel' have subtype other than 'angel'?
card_games
select id from cards where cardkingdomid is not null and cardkingdomfoilid is not null
Question: what are the foiled cards that are incredibly powerful when paired with non foiled cards? list the ids. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, ...
what are the foiled cards that are incredibly powerful when paired with non foiled cards? list the ids.
card_games
select id from cards where dueldeck = 'a'
Question: what are the cards belong to duel deck a? list the id. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, f...
what are the cards belong to duel deck a? list the id.
card_games
select edhrecrank from cards where frameversion = 2015
Question: list the edhrecrank for cards with frame version 2015. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, f...
list the edhrecrank for cards with frame version 2015.
card_games
select t1.artist from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t2.language = 'chinese simplified'
Question: list down the name of artists for cards in chinese simplified. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEf...
list down the name of artists for cards in chinese simplified.
card_games
select t1.name from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.availability = 'paper' and t2.language = 'japanese'
Question: what are the cards that only available in paper and japanese language? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText,...
what are the cards that only available in paper and japanese language?
card_games
select count(t1.id) from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t2.status = 'banned' and t1.bordercolor = 'white'
Question: how many of the banned cards are white border? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVers...
how many of the banned cards are white border?
card_games
select t1.uuid, t3.language from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid inner join foreign_data as t3 on t1.uuid = t3.uuid where t2.format = 'legacy'
Question: list down the uuid for legacy cards and the foreign language of these cards. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavo...
list down the uuid for legacy cards and the foreign language of these cards.
card_games
select t2.text from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.name = 'beacon of immortality'
Question: write down the ruling of beacon of immortality. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVer...
write down the ruling of beacon of immortality.
card_games
select count(t1.id) from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.frameversion = 'future'
Question: how many cards are having future frame version and what are the legality status of these cards? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName...
how many cards are having future frame version and what are the legality status of these cards?
card_games
select id, colors from cards where id in ( select id from set_translations where setcode = 'ogw' )
Question: what are the cards for set ogw? state the colour for these cards. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fram...
what are the cards for set ogw? state the colour for these cards.
card_games
select id, language from set_translations where id = ( select id from cards where convertedmanacost = 5 ) and setcode = '10e'
Question: what are the cards in set 10e with converted mana of 5 have translation and what are the languages? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, face...
what are the cards in set 10e with converted mana of 5 have translation and what are the languages?
card_games
select t1.id, t2.date from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.originaltype = 'creature - elf'
Question: list down the name of cards with original types of creature - elf and the date of rulings for these cards. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCos...
list down the name of cards with original types of creature - elf and the date of rulings for these cards.
card_games
select t1.colors, t2.format from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.id between 1 and 20
Question: what are the colors of cards from id 1-20? what are the format of these cards? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, fla...
what are the colors of cards from id 1-20? what are the format of these cards?
card_games
select distinct t1.name from cards as t1 inner join foreign_data as t2 on t1.uuid = t2.uuid where t1.originaltype = 'artifact' and t1.colors = 'b'
Question: among the artifact cards, which are black color and comes with foreign languague translation? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, ...
among the artifact cards, which are black color and comes with foreign languague translation?
card_games
select distinct t1.name from cards as t1 inner join rulings as t2 on t1.uuid = t2.uuid where t1.rarity = 'uncommon' order by t2.date asc limit 3
Question: pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConverte...
pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.
card_games
select count(id) from cards where (cardkingdomid is null or cardkingdomfoilid is null) and artist = 'john avon'
Question: on how many cards designed by john avon is its foil non-powerful? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fram...
on how many cards designed by john avon is its foil non-powerful?
card_games
select count(id) from cards where bordercolor = 'white' and cardkingdomid is not null and cardkingdomfoilid is not null
Question: how many white bordered cards are powerful? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion...
how many white bordered cards are powerful?
card_games
select count(id) from cards where hand = '-1' and artist = 'udon' and availability = 'print' and type = 'mtgo'
Question: how many cards designed by udon and available in mtgo print type has a starting maximum hand size of -1? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost,...
how many cards designed by udon and available in mtgo print type has a starting maximum hand size of -1?
card_games
select count(id) from cards where frameversion = 1993 and availability = 'paper' and hascontentwarning = 1
Question: how many cards with a 1993 frame version and available on paper have a sensitive content warning? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceNa...
how many cards with a 1993 frame version and available on paper have a sensitive content warning?
card_games
select manacost from cards where availability = 'mtgo,paper' and bordercolor = 'black' and frameversion = 2003 and layout = 'normal'
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? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhr...
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?
card_games
select sum(manacost) from cards where artist = 'rob alexander'
Question: how much unconverted mana do all the cards created by rob alexander cost in total? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName,...
how much unconverted mana do all the cards created by rob alexander cost in total?
card_games
select distinct subtypes, supertypes from cards where availability = 'arena' and subtypes is not null and supertypes is not null
Question: lists all types of cards available in arena. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersio...
lists all types of cards available in arena.
card_games
select setcode from set_translations where language = 'spanish'
Question: lists the set code of all cards translated into spanish. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects,...
lists the set code of all cards translated into spanish.
card_games
select sum(case when hand = '+3' then 1.0 else 0 end) / count(id) * 100 from cards where frameeffects = 'legendary'
Question: what percentage of legendary frame effect cards have a maximum starting maximun handsize of +3? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName...
what percentage of legendary frame effect cards have a maximum starting maximun handsize of +3?
card_games
select cast(sum(case when istextless = 0 then 1 else 0 end) as real) * 100 / count(id) from cards where isstoryspotlight = 1
Question: what is the percentage of story spotlight cards that also have a text box? list them by their id. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceNa...
what is the percentage of story spotlight cards that also have a text box? list them by their id.
card_games
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'
Question: calculate the percentage of cards in spanish. list them by name. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frame...
calculate the percentage of cards in spanish. list them by name.
card_games
select t2.language from sets as t1 inner join set_translations as t2 on t1.code = t2.setcode where t1.basesetsize = 309
Question: indicates the name of all the languages into which the set whose number of cards is 309 is translated. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, f...
indicates the name of all the languages into which the set whose number of cards is 309 is translated.
card_games
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'
Question: how many brazilian portuguese translated sets are inside the commander block? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flav...
how many brazilian portuguese translated sets are inside the commander block?
card_games
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'
Question: lists by id all creature-type cards with legal status. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, f...
lists by id all creature-type cards with legal status.
card_games
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
Question: lists all types of cards in german. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion, hand, ...
lists all types of cards in german.
card_games
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%'
Question: how many null power cards contain info about the triggered ability | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fra...
how many null power cards contain info about the triggered ability
card_games
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
Question: indicates the number of cards with pre-modern format, ruling text 'this is a triggered mana ability' that do not have multiple faces. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhre...
indicates the number of cards with pre-modern format, ruling text 'this is a triggered mana ability' that do not have multiple faces.
card_games
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'
Question: is there any card from erica yang artist in pauper format and available in paper? if so, indicate its id. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost...
is there any card from erica yang artist in pauper format and available in paper? if so, indicate its id.
card_games
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%'
Question: to which artist does the card with the text 'das perfekte gegenmittel zu einer dichten formation' belong? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost...
to which artist does the card with the text 'das perfekte gegenmittel zu einer dichten formation' belong?
card_games
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'
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? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecR...
what is the foreign name of the card in french of type creature, normal layout and black border color, by artist matthew d. wilson?
card_games
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'
Question: how many cards with print rarity have ruling text printed on 10/01/2009? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTex...
how many cards with print rarity have ruling text printed on 10/01/2009?
card_games
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
Question: what language is the set of 180 cards that belongs to the ravnica block translated into? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavo...
what language is the set of 180 cards that belongs to the ravnica block translated into?
card_games
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'
Question: what percentage of cards with format commander and legal status do not have a content warning? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName,...
what percentage of cards with format commander and legal status do not have a content warning?
card_games
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 '%*%'
Question: what percentage of cards without power are in french? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fr...
what percentage of cards without power are in french?
card_games
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'
Question: what percentage of japanese translated sets are expansion sets? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameE...
what percentage of japanese translated sets are expansion sets?
card_games
select distinct availability from cards where artist = 'daren bader'
Question: what kind of printing is on the card that daren bader created? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEf...
what kind of printing is on the card that daren bader created?
card_games
select count(id) from cards where edhrecrank > 12000 and bordercolor = 'borderless'
Question: how many color cards with no borders have been ranked higher than 12000 on edhrec? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName,...
how many color cards with no borders have been ranked higher than 12000 on edhrec?
card_games
select count(id) from cards where isoversized = 1 and isreprint = 1 and ispromo = 1
Question: how many cards are oversized, reprinted, and printed for promotions? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, f...
how many cards are oversized, reprinted, and printed for promotions?
card_games
select name from cards where (power is null or power like '%*%') and promotypes = 'arenaleague' order by name limit 3
Question: please list top three unknown power cards that have promotional types for arena league in alphabetical order. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedMana...
please list top three unknown power cards that have promotional types for arena league in alphabetical order.
card_games
select language from foreign_data where multiverseid = 149934
Question: what is the language of the card with the multiverse number 149934? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fr...
what is the language of the card with the multiverse number 149934?
card_games
select cardkingdomfoilid, cardkingdomid from cards where cardkingdomfoilid is not null and cardkingdomid is not null order by cardkingdomfoilid limit 3
Question: please provide the ids of top three powerful pairs of kingdom foil and kingdom cards sorted by kingdom foil id in alphabetical order. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhre...
please provide the ids of top three powerful pairs of kingdom foil and kingdom cards sorted by kingdom foil id in alphabetical order.
card_games
select cast(sum(case when istextless = 1 and layout = 'normal' then 1 else 0 end) as real) * 100 / count(*) from cards
Question: what proportion of cards do not have a text box with a normal layout? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, ...
what proportion of cards do not have a text box with a normal layout?
card_games
select id from cards where subtypes = 'angel,wizard' and 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? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConverted...
what are the card numbers that don't have multiple faces on a single card and have the subtypes angel and wizard?
card_games
select name from sets where mtgocode is null order by name limit 3
Question: please provide top three sets that don't appear in magic: the gathering online, along with their names in in alphabetical order. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank...
please provide top three sets that don't appear in magic: the gathering online, along with their names in in alphabetical order.
card_games
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'
Question: what languages are available in the set known as archenemy on the magic card market and having the code arc? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaC...
what languages are available in the set known as archenemy on the magic card market and having the code arc?
card_games
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
Question: what is the name of set number 5 and its translation? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fr...
what is the name of set number 5 and its translation?
card_games
select t2.language, t1.type from sets as t1 inner join set_translations as t2 on t1.code = t2.setcode where t2.id = 206
Question: what is the language and expansion type of set number 206? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffect...
what is the language and expansion type of set number 206?
card_games
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
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. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duel...
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.
card_games
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
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. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost,...
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.
card_games
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
Question: which russian set of cards contains the most cards overall? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffec...
which russian set of cards contains the most cards overall?
card_games
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
Question: what is the percentage of the set of cards that have chinese simplified as the language and are only available for online games? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank...
what is the percentage of the set of cards that have chinese simplified as the language and are only available for online games?
card_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 = '')
Question: how many sets are available just in japanese and not in magic: the gathering online? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorNam...
how many sets are available just in japanese and not in magic: the gathering online?
card_games
select id from cards where bordercolor = 'black' group by id
Question: how many card border with black color ? list out the card id. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEff...
how many card border with black color ? list out the card id.
card_games
select id from cards where frameeffects = 'extendedart' group by id
Question: how many cards have frame effect as extendedart? list out the id of those cards. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, f...
how many cards have frame effect as extendedart? list out the id of those cards.
card_games
select id from cards where bordercolor = 'black' and isfullart = 1
Question: among black card borders, which card has full artwork? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, f...
among black card borders, which card has full artwork?