db_id stringlengths 4 31 | SQL stringlengths 18 1.45k | input_sequence stringlengths 148 11k | question stringlengths 16 325 |
|---|---|---|---|
card_games | select language from set_translations where id = 174 | Question: point out the language of set id '174'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion, ha... | point out the language of set id '174'? |
card_games | select name from sets where code = 'all' | Question: list out the set name of the set code 'all'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersio... | list out the set name of the set code 'all'. |
card_games | select distinct language from foreign_data where name = 'a pedra fellwar' | Question: which foreign language used by 'a pedra fellwar'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameV... | which foreign language used by 'a pedra fellwar'? |
card_games | select t2.setcode from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t1.releasedate = '2007-07-13' | Question: state the set code of the set with release date of 07/13/2007? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEf... | state the set code of the set with release date of 07/13/2007? |
card_games | 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') | Question: mention the base set size and set code of the set that was in block named 'masques' and 'mirage'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceNa... | mention the base set size and set code of the set that was in block named 'masques' and 'mirage'. |
card_games | 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 | Question: give the code of sets have expansion type of 'expansion'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects... | give the code of sets have expansion type of 'expansion'? |
card_games | 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' | Question: name the foreign name of the card that has boros watermark? list out the type of this card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, fl... | name the foreign name of the card that has boros watermark? list out the type of this card. |
card_games | 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' | Question: what is the language and flavor text of the card that has colorpie watermark? list out the type of this card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedMana... | what is the language and flavor text of the card that has colorpie watermark? list out the type of this card. |
card_games | 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' | Question: what is percentage of the cards with a converted mana cost of 10 in set of abyssal horror? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, fla... | what is percentage of the cards with a converted mana cost of 10 in set of abyssal horror? |
card_games | select t2.setcode from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t1.type = 'commander' | Question: give the code of sets have expansion commander type? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fra... | give the code of sets have expansion commander type? |
card_games | 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' | Question: name the foreign name of the card that has abzan watermark? list out the type of this card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, fl... | name the foreign name of the card that has abzan watermark? list out the type of this card. |
card_games | 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' | Question: what is the language of the card that has azorius watermark? list out the type of this card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, f... | what is the language of the card that has azorius watermark? list out the type of this card. |
card_games | select sum(case when artist = 'aaron miller' and cardkingdomfoilid is not null and cardkingdomid is not null then 1 else 0 end) from cards | Question: of all the cards that are designed by aaron miller, how many of them are incredibly powerful? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, ... | of all the cards that are designed by aaron miller, how many of them are incredibly powerful? |
card_games | select sum(case when availability = 'paper' and hand like '+%' and hand != '+0' then 1 else 0 end) from cards | Question: how many cards available in paper have a positive starting maximum hand size? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flav... | how many cards available in paper have a positive starting maximum hand size? |
card_games | select distinct name from cards where istextless = 0 | Question: please list the names of the cards that have a text box. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects,... | please list the names of the cards that have a text box. |
card_games | select distinct manacost from cards where name = 'ancestor''s chosen' | Question: what's the unconverted mana cost of the card 'ancestor's chosen'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fram... | what's the unconverted mana cost of the card 'ancestor's chosen'? |
card_games | select sum(case when power like '%*%' or power is null then 1 else 0 end) from cards where bordercolor = 'white' | Question: among the cards with a white border color, how many of them have unknown power? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, fl... | among the cards with a white border color, how many of them have unknown power? |
card_games | select distinct name from cards where ispromo = 1 and side is not null | Question: which of the cards that are a promotional painting have multiple faces on the same card? please list their names. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConverted... | which of the cards that are a promotional painting have multiple faces on the same card? please list their names. |
card_games | select distinct subtypes, supertypes from cards where name = 'molimo, maro-sorcerer' | Question: what's the list of all types for the card 'molimo, maro-sorcerer'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, fra... | what's the list of all types for the card 'molimo, maro-sorcerer'? |
card_games | select distinct purchaseurls from cards where promotypes = 'bundle' | Question: please list the websites where i can purchase the cards that have the promotional type of 'bundle'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, face... | please list the websites where i can purchase the cards that have the promotional type of 'bundle'. |
card_games | select count(case when availability like '%arena,mtgo%' then 1 else null end) from cards | Question: how many artists have designed a card with a black border color and is available in both 'arena' and 'mtgo' printing type? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, face... | how many artists have designed a card with a black border color and is available in both 'arena' and 'mtgo' printing type? |
card_games | select name from cards where name in ('serra angel', 'shrine keeper') order by convertedmanacost desc limit 1 | Question: which card costs more converted mana, 'serra angel' or 'shrine keeper'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText... | which card costs more converted mana, 'serra angel' or 'shrine keeper'? |
card_games | select artist from cards where flavorname = 'battra, dark destroyer' | Question: which artist designed the card whose promotional name is 'battra, dark destroyer'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName,... | which artist designed the card whose promotional name is 'battra, dark destroyer'? |
card_games | select name from cards where frameversion = 2003 order by convertedmanacost desc limit 3 | Question: please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedMa... | please list the names of the top 3 cards with the highest converted mana cost and have a 2003 card frame style. |
card_games | select translation from set_translations where setcode in ( select setcode from cards where name = 'ancestor''s chosen' ) and language = 'italian' | Question: what's the italian name of the set of cards with 'ancestor's chosen' is in? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavor... | what's the italian name of the set of cards with 'ancestor's chosen' is in? |
card_games | select count(distinct translation) from set_translations where setcode in ( select setcode from cards where name = 'angel of mercy' ) and translation is not null | Question: how many translations are there for the set of cards with 'angel of mercy' in it? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, ... | how many translations are there for the set of cards with 'angel of mercy' in it? |
card_games | 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' | Question: please list the names of the cards in the set 'hauptset zehnte edition'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTex... | please list the names of the cards in the set 'hauptset zehnte edition'. |
card_games | 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' | Question: for the set of cards with 'ancestor's chosen' in it, is there a korean version of it? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorNa... | for the set of cards with 'ancestor's chosen' in it, is there a korean version of it? |
card_games | 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' | Question: among the cards in the set 'hauptset zehnte edition', how many of them are designed by adam rex? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceNam... | among the cards in the set 'hauptset zehnte edition', how many of them are designed by adam rex? |
card_games | select t1.basesetsize from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t2.translation = 'hauptset zehnte edition' | Question: how many cards are there in the base set of 'hauptset zehnte edition'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText,... | how many cards are there in the base set of 'hauptset zehnte edition'? |
card_games | 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' | Question: what is the simplified chinese translation of the name of the set 'eighth edition'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName... | what is the simplified chinese translation of the name of the set 'eighth edition'? |
card_games | 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' | Question: did the set of cards with 'angel of mercy' appear on magic: the gathering online? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, ... | did the set of cards with 'angel of mercy' appear on magic: the gathering online? |
card_games | select distinct t2.releasedate from cards as t1 inner join sets as t2 on t2.code = t1.setcode where t1.name = 'ancestor''s chosen' | Question: when was the set of cards with 'ancestor's chosen' released? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffe... | when was the set of cards with 'ancestor's chosen' released? |
card_games | select t1.type from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t2.translation = 'hauptset zehnte edition' | Question: what is the expansion type of the set 'hauptset zehnte edition'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frame... | what is the expansion type of the set 'hauptset zehnte edition'? |
card_games | 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 | Question: among the sets in the block 'ice age', how many of them have an italian translation? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorNam... | among the sets in the block 'ice age', how many of them have an italian translation? |
card_games | 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' | Question: is the set of cards with adarkar valkyrie only available outside the united states? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName... | is the set of cards with adarkar valkyrie only available outside the united states? |
card_games | select count(t1.id) from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t2.translation is not null and t1.basesetsize < 10 and t2.language = 'italian' | Question: among the sets of cards that have an italian translation, how many of them have a base set number of under 10? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedMan... | among the sets of cards that have an italian translation, how many of them have a base set number of under 10? |
card_games | 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' | Question: how many cards in the set coldsnap have a black border color? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEff... | how many cards in the set coldsnap have a black border color? |
card_games | 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 | Question: please list the name of the cards in the set coldsnap with the highest converted mana cost. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, fl... | please list the name of the cards in the set coldsnap with the highest converted mana cost. |
card_games | 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 | Question: which of these artists have designed a card in the set coldsnap, jeremy jarvis, aaron miller or chippy? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, ... | which of these artists have designed a card in the set coldsnap, jeremy jarvis, aaron miller or chippy? |
card_games | 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 | Question: what is card number 4 in the set coldsnap? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersion,... | what is card number 4 in the set coldsnap? |
card_games | 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 | Question: among the cards with converted mana cost higher than 5 in the set coldsnap, how many of them have unknown power? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedM... | among the cards with converted mana cost higher than 5 in the set coldsnap, how many of them have unknown power? |
card_games | 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' | Question: what is the italian flavor text of the card 'ancestor's chosen'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frame... | what is the italian flavor text of the card 'ancestor's chosen'? |
card_games | 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 | Question: please list all the foreign languages in which the card 'ancestor's chosen' has a flavor text. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName,... | please list all the foreign languages in which the card 'ancestor's chosen' has a flavor text. |
card_games | 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' | Question: what's the german type of the card 'ancestor's chosen'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, ... | what's the german type of the card 'ancestor's chosen'? |
card_games | 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' | Question: please list the italian text ruling of all the cards in the set coldsnap. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTe... | please list the italian text ruling of all the cards in the set coldsnap. |
card_games | select t2.name from foreign_data as t1 inner join cards as t2 on t2.uuid = t1.uuid inner join sets as t3 on t3.code = t2.setcode where t3.name = 'coldsnap' and t1.language = 'italian' order by t2.convertedmanacost desc limit 1 | Question: please list the italian names of the cards in the set coldsnap with the highest converted mana cost. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, fac... | please list the italian names of the cards in the set coldsnap with the highest converted mana cost. |
card_games | select t2.date from cards as t1 inner join rulings as t2 on t2.uuid = t1.uuid where t1.name = 'reminisce' | Question: when was the ruling for the card 'reminisce' created? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fr... | when was the ruling for the card 'reminisce' created? |
card_games | 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' | Question: what is the percentage of the cards with a converted mana cost of 7 in the set coldsnap? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavo... | what is the percentage of the cards with a converted mana cost of 7 in the set coldsnap? |
card_games | 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' | Question: what is the percentage of incredibly powerful cards in the set coldsnap? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTex... | what is the percentage of incredibly powerful cards in the set coldsnap? |
card_games | select code from sets where releasedate = '2017-07-14' group by releasedate, code | Question: what's the code for the set which was released on 2017/7/14? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffe... | what's the code for the set which was released on 2017/7/14? |
card_games | select keyrunecode from sets where code = 'pkhc' | Question: list the keyrune code for the set whose code is 'pkhc'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, ... | list the keyrune code for the set whose code is 'pkhc'. |
card_games | select mcmid from sets where code = 'ss2' | Question: for the set which had 'ss2' as the code, what is its magic card market id? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorT... | for the set which had 'ss2' as the code, what is its magic card market id? |
card_games | select mcmname from sets where releasedate = '2017-06-09' | Question: what's the magic card market name for the set which was released on 2017/6/9? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flav... | what's the magic card market name for the set which was released on 2017/6/9? |
card_games | select type from sets where name like '%from the vault: lore%' | Question: for the set 'from the vault: lore', what is its expansion type? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameE... | for the set 'from the vault: lore', what is its expansion type? |
card_games | select parentcode from sets where name = 'commander 2014 oversized' | Question: for the set 'commander 2014 oversized' , give its parent code. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEf... | for the set 'commander 2014 oversized' , give its parent code. |
card_games | 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' | Question: 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. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedMa... | 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. |
card_games | select t2.releasedate from cards as t1 inner join sets as t2 on t2.code = t1.setcode where t1.name = 'evacuation' | Question: what was the release date for the set which card 'evacuation' in it? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, f... | what was the release date for the set which card 'evacuation' in it? |
card_games | select t1.basesetsize from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t2.translation = 'rinascita di alara' | Question: what is the number of cards are there in the set of 'rinascita di alara'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTe... | what is the number of cards are there in the set of 'rinascita di alara'? |
card_games | select type from sets where code in ( select setcode from set_translations where translation = 'huitime dition' ) | Question: list the expansion type of the set 'huitime dition'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, fra... | list the expansion type of the set 'huitime dition'. |
card_games | 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 | Question: what's the french name of the set of cards with 'tendo ice bridge' is in? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorTe... | what's the french name of the set of cards with 'tendo ice bridge' is in? |
card_games | select count(distinct t2.translation) from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t1.name = 'salvat 2011' and t2.translation is not null | Question: how many translations of the name of the set 'salvat 2011'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffec... | how many translations of the name of the set 'salvat 2011'? |
card_games | select t2.translation from cards as t1 inner join set_translations as t2 on t2.setcode = t1.setcode where t1.name = 'fellwar stone' and t2.language = 'japanese' and t2.translation is not null | Question: tell the japanese name of the set which card 'fellwar stone' is in it. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText,... | tell the japanese name of the set which card 'fellwar stone' is in it. |
card_games | select t1.name from cards as t1 inner join sets as t2 on t2.code = t1.setcode where t2.name = 'journey into nyx hero''s path' order by t1.convertedmanacost desc limit 1 | Question: which card name in the set 'journey into nyx hero's path' has the highest converted mana cost. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName,... | which card name in the set 'journey into nyx hero's path' has the highest converted mana cost. |
card_games | select t1.releasedate from sets as t1 inner join set_translations as t2 on t2.setcode = t1.code where t2.translation = 'ola de fro' | Question: what is the release date for the set 'ola de fro'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frame... | what is the release date for the set 'ola de fro'? |
card_games | select type from sets where code in ( select setcode from cards where name = 'samite pilgrim' ) | Question: what was the expansion type for the set which card 'samite pilgrim' in it? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorT... | what was the expansion type for the set which card 'samite pilgrim' in it? |
card_games | select count(id) from cards where setcode in ( select code from sets where name = 'world championship decks 2004' ) and convertedmanacost = 3 | Question: how many cards are there in the set 'world championship decks 2004' with the converted mana cost as '3'. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost,... | how many cards are there in the set 'world championship decks 2004' with the converted mana cost as '3'. |
card_games | select translation from set_translations where setcode in ( select code from sets where name = 'mirrodin' ) and language = 'chinese simplified' | Question: show the simplified chinese translation of the name of the set 'mirrodin'? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorT... | show the simplified chinese translation of the name of the set 'mirrodin'? |
card_games | select cast(sum(case when isnonfoilonly = 1 then 1 else 0 end) as real) * 100 / count(id) from sets where code in ( select setcode from set_translations where language = 'japanese' ) | Question: for all the set of cards that has japanese translation, what is the percentage of them are only available in non-foil? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConv... | for all the set of cards that has japanese translation, what is the percentage of them are only available in non-foil? |
card_games | select cast(sum(case when isonlineonly = 1 then 1 else 0 end) as real) * 100 / count(id) from sets where code in ( select setcode from set_translations where language = 'portuguese (brazil)' ) | Question: for all the set of cards that has brazil portuguese translation, what is the percentage of them are only available online? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, face... | for all the set of cards that has brazil portuguese translation, what is the percentage of them are only available online? |
card_games | select distinct availability from cards where artist = 'aleksi briclot' and istextless = 1 | Question: what are the available printing types of the cards that doesn't have a text box created by aleksi briclot? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCos... | what are the available printing types of the cards that doesn't have a text box created by aleksi briclot? |
card_games | select id from sets order by basesetsize desc limit 1 | Question: what is the unique id of the set that has the highest number of cards? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText,... | what is the unique id of the set that has the highest number of cards? |
card_games | select artist from cards where side is null order by convertedmanacost desc limit 1 | Question: among the cards that doesn't have multiple faces on the same card, who is the illustrator of the card art that has the highest cost of converted mana? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost... | among the cards that doesn't have multiple faces on the same card, who is the illustrator of the card art that has the highest cost of converted mana? |
card_games | select frameeffects from cards where cardkingdomfoilid is not null and cardkingdomid is not null group by frameeffects order by count(frameeffects) desc limit 1 | Question: what is the most common visual frame effects among the incredibly powerful foils? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, ... | what is the most common visual frame effects among the incredibly powerful foils? |
card_games | select sum(case when power like '%*%' or power is null then 1 else 0 end) from cards where hasfoil = 0 and dueldeck = 'a' | Question: how many cards with unknown power that can't be found in foil is in duel deck a? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, f... | how many cards with unknown power that can't be found in foil is in duel deck a? |
card_games | select id from sets where type = 'commander' order by totalsetsize desc limit 1 | Question: among the sets whose expansion type is commander, which set has the highest total number of cards including promotional and related supplemental products but excluding alchemy modifications? indicate the id of the set. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, car... | among the sets whose expansion type is commander, which set has the highest total number of cards including promotional and related supplemental products but excluding alchemy modifications? indicate the id of the set. |
card_games | select distinct name from cards where uuid in ( select uuid from legalities where format = 'duel' ) order by manacost desc limit 0, 10 | Question: in duels, what are the top 10 cards with the highest uncoverted mana cost? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorT... | in duels, what are the top 10 cards with the highest uncoverted mana cost? |
card_games | select t1.originalreleasedate, t2.format from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.rarity = 'mythic' and t1.originalreleasedate is not null and t2.status = 'legal' order by t1.originalreleasedate limit 1 | Question: when was the oldest mythic card released and what are its legal play formats? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flav... | when was the oldest mythic card released and what are its legal play formats? |
card_games | select count(t3.id) from ( select t1.id from cards as t1 inner join foreign_data as t2 on t2.uuid = t1.uuid where t1.artist = 'volkan baa' and t2.language = 'french' group by t1.id ) as t3 | Question: how many cards did volkan baa illustrated whose foreign language is in french? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, fla... | how many cards did volkan baa illustrated whose foreign language is in french? |
card_games | select count(t1.id) from cards as t1 inner join legalities as t2 on t2.uuid = t1.uuid where t1.rarity = 'rare' and t1.types = 'enchantment' and t1.name = 'abundance' and t2.status = 'legal' | Question: how many rare enchantment abundance cards are there whose play format status are all legal? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, fl... | how many rare enchantment abundance cards are there whose play format status are all legal? |
card_games | select t2.format, t1.name from cards as t1 inner join legalities as t2 on t2.uuid = t1.uuid where t2.status = 'banned' group by t2.format order by count(t2.status) desc limit 1 | Question: which of the play formats has the highest number of banned status? indicate the play format and the name of the card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConve... | which of the play formats has the highest number of banned status? indicate the play format and the name of the card. |
card_games | select language from set_translations where id in ( select id from sets where name = 'battlebond' ) | Question: what is the language of the 'battlebond' set? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, flavorText, frameEffects, frameVersi... | what is the language of the 'battlebond' set? |
card_games | select t1.artist, t2.format from cards as t1 inner join legalities as t2 on t2.uuid = t1.uuid group by t1.artist order by count(t1.id) asc limit 1 | Question: who is the illustrator that illustrated the least amount of cards? list the format of play of the cards that he/she illustrated. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank... | who is the illustrator that illustrated the least amount of cards? list the format of play of the cards that he/she illustrated. |
card_games | select distinct t2.status from cards as t1 inner join legalities as t2 on t2.uuid = t1.uuid where t1.frameversion = 1997 and t1.hascontentwarning = 1 and t1.artist = 'd. alexander gregory' and t2.format = 'legacy' | Question: among the cards whose version of frame style is 1997, what is the status of the card illustrated by d. alexander gregory in legacy play format that has sensitive content or wizards of the coast? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentit... | among the cards whose version of frame style is 1997, what is the status of the card illustrated by d. alexander gregory in legacy play format that has sensitive content or wizards of the coast? |
card_games | select t1.name, t2.format from cards as t1 inner join legalities as t2 on t2.uuid = t1.uuid where t1.edhrecrank = 1 and t2.status = 'banned' group by t1.name, t2.format | Question: which cards are ranked 1st on edhrec? list all of the cards name and its banned play format. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, f... | which cards are ranked 1st on edhrec? list all of the cards name and its banned play format. |
card_games | select (cast(sum(t1.id) as real) / count(t1.id)) / 4, t2.language from sets as t1 inner join set_translations as t2 on t1.id = t2.id where t1.releasedate between '2012-01-01' and '2015-12-31' group by t1.releasedate order by count(t2.language) desc limit 1 | Question: what is the annual average number of sets that were released between 1/1/2012 to 12/31/2015? indicate the common langugage of the card. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edh... | what is the annual average number of sets that were released between 1/1/2012 to 12/31/2015? indicate the common langugage of the card. |
card_games | select distinct artist from cards where availability = 'arena' and bordercolor = 'black' | Question: list the artists who illustrated cards with black borders which are available only in arena. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, f... | list the artists who illustrated cards with black borders which are available only in arena. |
card_games | select uuid from legalities where format = 'oldschool' and (status = 'banned' or status = 'restricted') | Question: find the uuid of cards in which the old school format is restricted or banned. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavorName, fla... | find the uuid of cards in which the old school format is restricted or banned. |
card_games | select count(id) from cards where artist = 'matthew d. wilson' and availability = 'paper' | Question: among the card designed by matthew d. wilson, how many are available only in the paper? | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, faceName, flavor... | among the card designed by matthew d. wilson, how many are available only in the paper? |
card_games | select t2.text from cards as t1 inner join rulings as t2 on t2.uuid = t1.uuid where t1.artist = 'kev walker' order by t2.date desc | Question: what are the rulings for the card named and designed by kev walker? list them in descending order of dates. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCo... | what are the rulings for the card named and designed by kev walker? list them in descending order of dates. |
card_games | select distinct t2.name , case when t1.status = 'legal' then t1.format else null end from legalities as t1 inner join cards as t2 on t2.uuid = t1.uuid where t2.setcode in ( select code from sets where name = 'hour of devastation' ) | Question: list the names of all the cards in the set hour of devastation and find the formats in which these cards are legal. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvert... | list the names of all the cards in the set hour of devastation and find the formats in which these cards are legal. |
card_games | select name from sets where code in ( select setcode from set_translations where language = 'korean' and language not like '%japanese%' ) | Question: find and list the names of sets which doesn't have japanese translation but have korean translation. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost, fac... | find and list the names of sets which doesn't have japanese translation but have korean translation. |
card_games | select distinct t1.frameversion, t1.name , iif(t2.status = 'banned', t1.name, 'no') from cards as t1 inner join legalities as t2 on t1.uuid = t2.uuid where t1.artist = 'allen williams' | Question: list all the frame styles and cards allen williams worked on and find any banned cards if there are any. | Tables: cards -> id, artist, asciiName, availability, borderColor, cardKingdomFoilId, cardKingdomId, colorIdentity, colorIndicator, colors, convertedManaCost, duelDeck, edhrecRank, faceConvertedManaCost,... | list all the frame styles and cards allen williams worked on and find any banned cards if there are any. |
codebase_community | select displayname from users where displayname in ('harlan', 'jarrod dixon') and reputation = ( select max(reputation) from users where displayname in ('harlan', 'jarrod dixon') ) | Question: which user has a higher reputation, harlan or jarrod dixon? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id,... | which user has a higher reputation, harlan or jarrod dixon? |
codebase_community | select displayname from users where strftime('%y', creationdate) = '2014' | Question: please list the display names of all the users whose accounts were created in the year 2014. | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, ... | please list the display names of all the users whose accounts were created in the year 2014. |
codebase_community | select count(id) from users where date(lastaccessdate) > '2014-09-01' | Question: how many users last accessed the website after 2014/9/1? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, Cr... | how many users last accessed the website after 2014/9/1? |
codebase_community | select displayname from users where views = ( select max(views) from users ) | Question: what is the display name of the user who has the most number of views? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postL... | what is the display name of the user who has the most number of views? |
codebase_community | select count(id) from users where upvotes > 100 and downvotes > 1 | Question: among the users who have more than 100 upvotes, how many of them have more then 1 downvotes? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, ... | among the users who have more than 100 upvotes, how many of them have more then 1 downvotes? |
codebase_community | select count(id) from users where strftime('%y', creationdate) > '2013' and views > 10 | Question: how many users with more than 10 views created their account after the year 2013? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplay... | how many users with more than 10 views created their account after the year 2013? |
codebase_community | select count(t1.id) from posts as t1 inner join users as t2 on t1.owneruserid = t2.id where t2.displayname = 'csgillespie' | Question: how many posts does the user csgillespie own? | Tables: badges -> Id, UserId, Name, Date. comments -> Id, PostId, Score, Text, CreationDate, UserId, UserDisplayName. postHistory -> Id, PostHistoryTypeId, PostId, RevisionGUID, CreationDate, UserId, Text, Comment, UserDisplayName. postLinks -> Id, CreationDate,... | how many posts does the user csgillespie own? |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.