Dludora/Bird-minidev-sqlserver-oracle huggingface dataset:
Database: card_games

Question: Which are the cards that have incredibly powerful foils.
Evidence: incredibly poweful foils refers to cardKingdomFoilId is not null AND cardKingdomId is not null
SQL (SQLite): SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
SQL (SQL Server): SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
SQL (Oracle): SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL

Question: What are the borderless cards available without powerful foils?
Evidence: borderless' refers to borderColor; poweful foils refers to cardKingdomFoilId paired with cardKingdomId AND cardKingdomId is not null
SQL (SQLite): SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)
SQL (SQL Server): SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)
SQL (Oracle): SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)

Question: List all the mythic rarity print cards banned in gladiator format.
Evidence: mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';
SQL (SQLite): SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'
SQL (SQL Server): SELECT DISTINCT T1.id FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'
SQL (Oracle): SELECT DISTINCT T1.id FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T2.format = 'gladiator' AND T2.status = 'Banned' AND T1.rarity = 'mythic'

Question: For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.
Evidence: Artifact type of cards refers to types = 'Artifact'; card does not have multiple faces on the same card refers to side is NULL'; vintage play format refers to format = 'vintage';
SQL (SQLite): SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL
SQL (SQL Server): SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.type = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL
SQL (Oracle): SELECT DISTINCT T2.status FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T1."TYPE" = 'Artifact' AND T2.format = 'vintage' AND T1.side IS NULL
Database: card_games

Question: List all the card id and artist with unknown power which are legal for commander play format.
Evidence: unknown power refers to power = '*' or POWER IS NULL; commander play format refers to format = 'commander'; legal for commander play format refers to format = 'commander' where status = 'Legal'
SQL (SQLite): SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')
SQL (SQL Server): SELECT T1.id, T1.artist FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')
SQL (Oracle): SELECT T1.id, T1.artist FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Legal' AND T2.format = 'commander' AND (T1.power IS NULL OR T1.power = '*')

Question: Find all cards illustrated by Stephen Daniel and describe the text of the ruling of these cards. State if these cards have missing or degraded properties and values.
Evidence: cards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist; Find all cards refers to return card id
SQL (SQLite): SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'
SQL (SQL Server): SELECT T1.id, T2.text, T1.hasContentWarning FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'
SQL (Oracle): SELECT T1.id, T2.text, T1.hasContentWarning FROM cards T1 INNER JOIN rulings T2 ON T1.uuid = T2.uuid WHERE T1.artist = 'Stephen Daniele'

Question: Name the card and artist with the most ruling information. Also state if the card is a promotional printing.
Evidence: with the most ruling information refers to Max(count(rulings.uuid)); the card is the promotional printing refers to isPromo = 1;
SQL (SQLite): SELECT T1.name, T1.artist, T1.isPromo FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.isPromo = 1 AND T1.artist = (SELECT artist FROM cards WHERE isPromo = 1 GROUP BY artist HAVING COUNT(DISTINCT uuid) = (SELECT MAX(count_uuid) FROM ( SELECT COUNT(DISTINCT uuid) AS count_uuid FROM cards WHERE isPromo = 1 GROUP BY artist ))) LIMIT 1
SQL (SQL Server): SELECT TOP 1 T1.name, T1.artist, T1.isPromo FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.isPromo = 1 AND T1.artist = (SELECT artist FROM cards WHERE isPromo = 1 GROUP BY artist HAVING COUNT(DISTINCT uuid) = (SELECT MAX(count_uuid) AS _agg1 FROM ( SELECT COUNT(DISTINCT uuid) AS count_uuid FROM cards WHERE isPromo = 1 GROUP BY artist ) _t1))
SQL (Oracle): SELECT T1.name, T1.artist, T1.isPromo FROM cards T1 INNER JOIN rulings T2 ON T1.uuid = T2.uuid WHERE T1.isPromo = 1 AND T1.artist = (SELECT artist FROM cards WHERE isPromo = 1 GROUP BY artist HAVING COUNT(DISTINCT uuid) = (SELECT MAX(count_uuid) FROM ( SELECT COUNT(DISTINCT uuid) count_uuid FROM cards WHERE isPromo = 1 GROUP BY artist ))) FETCH FIRST 1 ROWS ONLY
Database: card_games

Question: Calculate the percentage of the cards availabe in Chinese Simplified.
Evidence: Chinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100
SQL (SQLite): SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) AS _agg1 FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid
SQL (Oracle): SELECT CAST(SUM(CASE WHEN T2.language = 'Chinese Simplified' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(T1.id) FROM cards T1 INNER JOIN foreign_data T2 ON T1.uuid = T2.uuid

Question: How many cards have infinite power?
Evidence: infinite power refers to power = '*';
SQL (SQLite): SELECT COUNT(*) FROM cards WHERE power = '*'
SQL (SQL Server): SELECT COUNT(*) AS _agg1 FROM cards WHERE power = '*'
SQL (Oracle): SELECT COUNT(*) FROM cards WHERE power = '*'

Question: What is the border color of card "Ancestor's Chosen"?
Evidence: name of card  = 'Ancestor''s Chosen' ;
SQL (SQLite): SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'
SQL (SQL Server): SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'
SQL (Oracle): SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'

Question: What is the rule of playing card "Benalish Knight"?
Evidence: Benalish Knight' is the name of card; rule of playing card refers to format;
SQL (SQLite): SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'
SQL (SQL Server): SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'
SQL (Oracle): SELECT T2.format FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'

Question: What is the percentage of borderless cards?
Evidence: borderless card refers to borderColor = 'borderless'; percentage = Divide(Count (id) where borderColor = 'borderless', Count(id)) *100
SQL (SQLite): SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(id) AS _agg1 FROM cards
SQL (Oracle): SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(id) FROM cards
Database: card_games

Question: What is the percentage of cards whose language is French among the Story Spotlight cards?
Evidence: Story Spotlight card refers to isStorySpotlight = 1; French is the language; Percentage = Divide(Count(id) where language = 'French' and isStorySpotlight = 1, Count(id) where isStorySpotlight = 1)*100
SQL (SQLite): SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) AS _agg1 FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1
SQL (Oracle): SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(T1.id) FROM cards T1 INNER JOIN foreign_data T2 ON T1.uuid = T2.uuid WHERE T1.isStorySpotlight = 1

Question: How many cards with original type of "Summon - Angel" have subtype other than "Angel"?
Evidence: subtype other than Angel refers to subtypes is not 'Angel';
SQL (SQLite): SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'
SQL (SQL Server): SELECT COUNT(id) AS _agg1 FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'
SQL (Oracle): SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'

Question: What are the cards belong to duel deck a? List the ID.
Evidence: duel deck a refers to duelDeck = a;
SQL (SQLite): SELECT id FROM cards WHERE duelDeck = 'a'
SQL (SQL Server): SELECT id FROM cards WHERE duelDeck = 'a'
SQL (Oracle): SELECT id FROM cards WHERE duelDeck = 'a'

Question: How many of the banned cards are white border?
Evidence: banned card refers to status = 'Banned'; white border refers to borderColor = 'white';
SQL (SQLite): SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'
SQL (SQL Server): SELECT COUNT(T1.id) AS _agg1 FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'
SQL (Oracle): SELECT COUNT(T1.id) FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Banned' AND T1.borderColor = 'white'

Question: Among the Artifact cards, which are black color and comes with foreign languague translation?
Evidence: Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data
SQL (SQLite): SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'
SQL (SQL Server): SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'
SQL (Oracle): SELECT DISTINCT T1.name FROM cards T1 INNER JOIN foreign_data T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'
Database: card_games

Question: What is the mana cost of cards with a normal layout, a 2003 frame version, with a black border color, and available in paper and mtgo?
Evidence: available in paper and mtgo refers to availability = 'mtgo,paper'; frameVersion = 2003;borderColor = 'black'
SQL (SQLite): SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'
SQL (SQL Server): SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND TRY_CAST(frameVersion AS FLOAT) = 2003 AND layout = 'normal'
SQL (Oracle): SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND TO_NUMBER(NULLIF(REGEXP_SUBSTR(frameVersion, '-?[0-9]+(?:\.[0-9]+)?'), '')) = 2003 AND layout = 'normal'

Question: What is the percentage of Story Spotlight cards that do not have a text box? List them by their ID.
Evidence: Story Spotlight cards that do not have a text box refers to isStorylight = 1 and isTextless = 0; Percentage = DIVIDE(SUM(count(id) where isStorylight = 1 AND isTextless = 0 ), SUM(count(id))) * 100
SQL (SQLite): SELECT CAST(SUM(CASE WHEN isTextless = 0 AND  isStorySpotlight = 1 THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN isTextless = 0 AND  isStorySpotlight = 1 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(id) AS _agg1 FROM cards
SQL (Oracle): SELECT CAST(SUM(CASE WHEN isTextless = 0 AND  isStorySpotlight = 1 THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(id) FROM cards

Question: How many Brazilian Portuguese translated sets are inside the Commander block?
Evidence: Commander block refer to block = 'Commander'; sets refer to code = setCode; Portuguese refer to language = 'Portuguese (Brasil)'
SQL (SQLite): 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'
SQL (SQL Server): SELECT COUNT(T1.id) AS _agg1 FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'
SQL (Oracle): SELECT COUNT(T1.id) FROM sets T1 INNER JOIN set_translations T2 ON T1.code = T2.setCode WHERE T2.language = 'Portuguese (Brazil)' AND T1.block = 'Commander'

Question: Lists all types of cards in German.
Evidence: German refer to language; all types refer to the subtypes, supertypes; subtypes is not null AND supertypes is not null
SQL (SQLite): 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
SQL (SQL Server): 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
SQL (Oracle): SELECT T1.subtypes, T1.supertypes FROM cards T1 INNER JOIN foreign_data T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.subtypes IS NOT NULL AND T1.supertypes IS NOT NULL
Database: card_games

Question: How many unknown power cards contain info about the triggered ability
Evidence: unknown power cards refers to power is null or power = '*';contain info about the triggered ability refers to text contains 'triggered ability'
SQL (SQLite): SELECT Count(DISTINCT T1.id) FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'
SQL (SQL Server): SELECT Count(DISTINCT T1.id) AS _agg1 FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'
SQL (Oracle): SELECT Count(DISTINCT T1.id) FROM cards T1 INNER JOIN rulings T2 ON T1.uuid = T2.uuid WHERE (T1.power IS NULL OR T1.power = '*') AND T2.text LIKE '%triggered ability%'

Question: Indicates the number of cards with pre-modern format, ruling text "This is a triggered mana ability." that do not have multiple faces.
Evidence: pre-modern format refers to format = 'premodern' ;do not have multiple faces refers to side IS NULL
SQL (SQLite): 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
SQL (SQL Server): SELECT COUNT(T1.id) AS _agg1 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
SQL (Oracle): SELECT COUNT(T1.id) FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid INNER JOIN rulings T3 ON T1.uuid = T3.uuid WHERE T2.format = 'premodern' AND T3.text = 'This is a triggered mana ability.' AND T1.Side IS NULL

Question: What is the foreign name of the card in French of type Creature, normal layout and black border color, by artist Matthew D. Wilson?
Evidence: in French refers to language = 'French'; black border color refers to borderColor = 'black'
SQL (SQLite): 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'
SQL (SQL Server): 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'
SQL (Oracle): SELECT name FROM foreign_data WHERE uuid IN ( SELECT uuid FROM cards WHERE types = 'Creature' AND layout = 'normal' AND borderColor = 'black' AND artist = 'Matthew D. Wilson' ) AND language = 'French'
Database: card_games

Question: What language is the set of 180 cards that belongs to the Ravnica block translated into?
Evidence: set of 180 cards refers to baseSetSize = 180
SQL (SQLite): 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
SQL (SQL Server): 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
SQL (Oracle): SELECT T2.language FROM sets T1 INNER JOIN set_translations T2 ON T1.code = T2.setCode WHERE T1.block = 'Ravnica' AND T1.baseSetSize = 180

Question: What percentage of cards with format commander and legal status do not have a content warning?
Evidence: do not have a content warning refers to hasContentWarning = 0; percentage refers to DIVIDE(COUNT(hasContentWarning = 0),COUNT(ID))*100 where format = 'commander' AND Status = 'legal';
SQL (SQLite): 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'
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) AS _agg1 FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'
SQL (Oracle): SELECT CAST(SUM(CASE WHEN T1.hasContentWarning = 0 THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(T1.id) FROM cards T1 INNER JOIN legalities T2 ON T1.uuid = T2.uuid WHERE T2.format = 'commander' AND T2.status = 'Legal'

Question: What percentage of cards without power are in French?
Evidence: in French refers to language = 'French'; cards without power refers to power IS NULL OR power = '*'; percentage = DIVIDE(COUNT(language = 'French' and power is NULL or power = '*'), COUNT( power is NULL or power = '*'))*100
SQL (SQLite): 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 = '*'
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN T2.language = 'French' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(T1.id) AS _agg1 FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'
SQL (Oracle): SELECT CAST(SUM(CASE WHEN T2.language = 'French' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(T1.id) FROM cards T1 INNER JOIN foreign_data T2 ON T1.uuid = T2.uuid WHERE T1.power IS NULL OR T1.power = '*'

Question: What is the language of the card with the multiverse number 149934?
Evidence: multiverse number 149934 refers to multiverseid = 149934;
SQL (SQLite): SELECT language FROM foreign_data WHERE multiverseid = 149934
SQL (SQL Server): SELECT language FROM foreign_data WHERE multiverseid = 149934
SQL (Oracle): SELECT language FROM foreign_data WHERE multiverseid = 149934
Database: card_games

Question: What proportion of cards do not have a text box with a normal layout?
Evidence: do not have a text box refers to isTextless = 1; proportion refers to DIVIDE(COUNT(Textless = 1 and layout = 'normal'),COUNT(Textless))*100
SQL (SQLite): SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM cards
SQL (SQL Server): SELECT TRY_CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN 1 ELSE 0 END) AS FLOAT) * 100 / COUNT(*) AS _agg1 FROM cards
SQL (Oracle): SELECT CAST(SUM(CASE WHEN isTextless = 1 AND layout = 'normal' THEN CAST(1 AS BINARY_DOUBLE) ELSE 0.0 END) AS BINARY_DOUBLE) * 100 / COUNT(*) FROM cards

Question: What languages are available in the set known as Archenemy on the magic card market and having the code ARC?
Evidence: known as Archenemy refers to mcmName = 'Archenemy'; having the code ARC refers to setCode = 'ARC'
SQL (SQLite): 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'
SQL (SQL Server): 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'
SQL (Oracle): SELECT T2.language FROM sets T1 INNER JOIN set_translations T2 ON T1.code = T2.setCode WHERE T1.mcmName = 'Archenemy' AND T2.setCode = 'ARC'

Question: Which foreign language used by "A Pedra Fellwar"?
Evidence: "A Pedra Fellwar" refers to name = 'A Pedra Fellwar'
SQL (SQLite): SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'
SQL (SQL Server): SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'
SQL (Oracle): SELECT DISTINCT language FROM foreign_data WHERE name = 'A Pedra Fellwar'

Question: Which card costs more converted mana, "Serra Angel" or "Shrine Keeper"?
Evidence: "Serra Angel" refers to name = 'Serra Angel'; "Shrine Keeper" refers to name = 'Shrine Keeper'; card costs more converted mana when the value of convertedManaCost is greater
SQL (SQLite): SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC LIMIT 1
SQL (SQL Server): SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY
SQL (Oracle): SELECT name FROM cards WHERE name IN ('Serra Angel', 'Shrine Keeper') ORDER BY convertedManaCost DESC NULLS LAST FETCH FIRST 1 ROWS ONLY