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