question_id
int64
0
1.53k
db_id
stringclasses
11 values
question
stringlengths
23
286
gold_sql
stringlengths
29
1.45k
gold_columns
stringlengths
11
227
n_gold_columns
int64
1
11
n_schema_columns
int64
11
199
label_source
stringclasses
7 values
300
toxicology
What atoms comprise TR186?
SELECT T.atom_id FROM atom AS T WHERE T.molecule_id = 'TR186'
atom.atom_id; atom.molecule_id
2
11
unchanged
301
toxicology
What is the bond type of TR007_4_19?
SELECT T.bond_type FROM bond AS T WHERE T.bond_id = 'TR007_4_19'
bond.bond_id; bond.bond_type
2
11
unchanged
302
toxicology
Name the elements that comprise the atoms of bond TR001_2_4.
SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_2_4'
atom.atom_id; atom.element; connected.atom_id; connected.bond_id
4
11
unchanged
303
toxicology
How many double bonds does TR006 have and is it carcinogenic?
SELECT COUNT(T1.bond_id), T2.label FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '=' AND T2.molecule_id = 'TR006' GROUP BY T2.label
bond.bond_id; bond.bond_type; bond.molecule_id; molecule.label; molecule.molecule_id
5
11
unchanged
304
toxicology
List all carcinogenic molecules and their elements.
SELECT DISTINCT T2.molecule_id, T1.element FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'
atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
305
toxicology
Name all bonds with single bond types and what atoms are connected to the molecules.
SELECT T1.bond_id, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.bond_type = '-'
bond.bond_id; bond.bond_type; connected.atom_id; connected.atom_id2; connected.bond_id
5
11
joinkey_added
306
toxicology
Which molecules have triple bonds and list all the elements they contain.
SELECT DISTINCT T1.molecule_id, T2.element FROM bond AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#'
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
joinkey_added
307
toxicology
Name the atoms' elements that form bond TR000_2_3.
SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR000_2_3'
atom.atom_id; atom.element; connected.atom_id; connected.bond_id
4
11
unchanged
308
toxicology
How many bonds are created by bonding atoms with chlorine element?
SELECT COUNT(T1.bond_id) FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T2.element = 'cl'
atom.atom_id; atom.element; connected.atom_id; connected.bond_id
4
11
unchanged
309
toxicology
List out the atom id that belongs to the TR346 molecule and how many bond type can be created by this molecule?
SELECT T1.atom_id, COUNT(DISTINCT T2.bond_type),T1.molecule_id FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR000' GROUP BY T1.atom_id, T2.bond_type
atom.atom_id; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
joinkey_added
310
toxicology
How many molecules have a double bond type and among these molecule, how many are labeled as carcinogenic compound?
SELECT COUNT(DISTINCT T2.molecule_id), SUM(CASE WHEN T2.label = '+' THEN 1 ELSE 0 END) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '='
bond.bond_type; bond.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
311
toxicology
How many molecules without sulphur element is not having double bond?
SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element <> 's' AND T2.bond_type <> '='
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
unchanged
312
toxicology
What is the carcinogenic label for bond TR001_2_4?
SELECT DISTINCT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_id = 'TR001_2_4'
atom.molecule_id; bond.bond_id; bond.molecule_id; molecule.label; molecule.molecule_id
5
11
unchanged
313
toxicology
How many atoms belong to molecule id TR001?
SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR001'
atom.atom_id; atom.molecule_id
2
11
unchanged
314
toxicology
How many single bonds are there in the list?
SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '-'
bond.bond_id; bond.bond_type
2
11
unchanged
315
toxicology
Among the molecules which contain "cl" element, which of them are carcinogenic?
SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'cl' AND T2.label = '+'
atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
316
toxicology
Among the molecules which contain "c" element, which of them are not carcinogenic?
SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'c' AND T2.label = '-'
atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
317
toxicology
Calculate the percentage of carcinogenic molecules which contain the Chlorine element.
SELECT COUNT(CASE WHEN T2.label = '+' AND T1.element = 'cl' THEN T2.molecule_id ELSE NULL END) * 100 / COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id
atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
318
toxicology
What is the molecule id of bond id TR001_1_7?
SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_1_7'
atom.atom_id; atom.molecule_id; connected.atom_id; connected.bond_id
4
11
unchanged
319
toxicology
How many elements are contained in bond_id TR001_3_4?
SELECT COUNT(DISTINCT T1.element) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR001_3_4'
atom.atom_id; atom.element; connected.atom_id; connected.bond_id
4
11
unchanged
320
toxicology
What is the type of the bond which is presenting the connection between two atoms TR000_1 and TR000_2?
SELECT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR000_1' AND T2.atom_id2 = 'TR000_2'
bond.bond_id; bond.bond_type; connected.atom_id; connected.atom_id2; connected.bond_id
5
11
unchanged
321
toxicology
What is the molecule of atom id "TR000_2" and atom id 2 "TR000_4"?
SELECT T1.molecule_id FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR000_2' AND T2.atom_id2 = 'TR000_4'
bond.bond_id; bond.molecule_id; connected.atom_id; connected.atom_id2; connected.bond_id
5
11
unchanged
322
toxicology
What is the element of toxicology for the atom with the ID of TR000_1?
SELECT T.element FROM atom AS T WHERE T.atom_id = 'TR000_1'
atom.atom_id; atom.element
2
11
unchanged
323
toxicology
Is molecule TR000 is carcinogenic or not?
SELECT label FROM molecule AS T WHERE T.molecule_id = 'TR000'
molecule.label; molecule.molecule_id
2
11
unchanged
324
toxicology
Find the percentage of atoms with single bond.
SELECT CAST(COUNT(CASE WHEN T.bond_type = '-' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id) FROM bond t
bond.bond_id; bond.bond_type
2
11
unchanged
325
toxicology
How many carcinogenic molecules that consisted of Nitrogen?
SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.element = 'n' AND T1.label = '+'
atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
326
toxicology
Which molecule consisted of Sulphur atom with double bond?
SELECT DISTINCT T1.molecule_id FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 's' AND T2.bond_type = '='
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
unchanged
327
toxicology
Which non-carcinogenic molecules consisted more than 5 atoms?
SELECT T.molecule_id FROM ( SELECT T1.molecule_id, COUNT(T2.atom_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '-' GROUP BY T1.molecule_id HAVING COUNT(T2.atom_id) > 5 ) t
atom.atom_id; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
ambiguity_resolved
328
toxicology
List all the elements with double bond, consisted in molecule TR024.
SELECT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR024' AND T2.bond_type = '='
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
unchanged
329
toxicology
Which carcinogenic molecule have the highest number of atoms consisted in it?
SELECT T.molecule_id FROM ( SELECT T2.molecule_id, COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' GROUP BY T2.molecule_id ORDER BY COUNT(T1.atom_id) DESC LIMIT 1 ) t
atom.atom_id; atom.molecule_id; molecule.label; molecule.molecule_id
4
11
ambiguity_resolved
330
toxicology
Calculate the percentage of carcinogenic molecules with triple bonded Hidrogen atoms.
SELECT CAST(SUM(CASE WHEN T1.label = '+' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T1.molecule_id = T3.molecule_id WHERE T3.bond_type = '#' AND T2.element = 'h'
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id; molecule.label; molecule.molecule_id
6
11
unchanged
331
toxicology
How many of the molecules are carcinogenic?
SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+'
molecule.label; molecule.molecule_id
2
11
unchanged
332
toxicology
Among the molecules between TR004 to TR010, how many of them has single bonds?
SELECT COUNT(DISTINCT T.molecule_id) FROM bond AS T WHERE T.molecule_id BETWEEN 'TR004' AND 'TR010' AND T.bond_type = '-'
bond.bond_type; bond.molecule_id
2
11
unchanged
333
toxicology
In the molecule TR008, how many carbons are present?
SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR008' AND T.element = 'c'
atom.atom_id; atom.element; atom.molecule_id
3
11
unchanged
334
toxicology
What is the element with the atom ID of TR004_7 in molecule that is not carcinogenic?
SELECT T1.element FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR004_7' AND T2.label = '-'
atom.atom_id; atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
5
11
unchanged
335
toxicology
What is the total number of molecules with double bonded oxygen?
SELECT COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '=' AND T1.element = 'o'
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
unchanged
336
toxicology
in molecules with triple bonds, how many of them are not carcinogenic?
SELECT COUNT(DISTINCT T1.molecule_id) FROM molecule AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '#' AND T1.label = '-'
bond.bond_type; bond.molecule_id; molecule.label; molecule.molecule_id
4
11
unchanged
337
toxicology
List the element and bond type included in the molecule with molecule ID of TR002.
SELECT DISTINCT T1.element, T2.bond_type FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id = 'TR002'
atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id
4
11
unchanged
338
toxicology
What is the atom ID of double bonded carbon in TR012 molecule?
SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T2.molecule_id = 'TR012' AND T3.bond_type = '=' AND T1.element = 'c'
atom.atom_id; atom.element; atom.molecule_id; bond.bond_type; bond.molecule_id; molecule.molecule_id
6
11
unchanged
339
toxicology
List the atom ID of the carcinogenic molecule that contains oxygen?
SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'o' AND T2.label = '+'
atom.atom_id; atom.element; atom.molecule_id; molecule.label; molecule.molecule_id
5
11
unchanged
340
card_games
Which are the cards that have incredibly powerful foils.
SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
cards.cardKingdomFoilId; cards.cardKingdomId; cards.id
3
115
unchanged
341
card_games
What are the borderless cards available without powerful foils?
SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)
cards.borderColor; cards.cardKingdomId; cards.id
3
115
unchanged
342
card_games
List the card names with value that cost more converted mana for the face.
SELECT name FROM cards ORDER BY faceConvertedManaCost LIMIT 1
cards.faceConvertedManaCost; cards.name
2
115
unchanged
343
card_games
Name all cards with 2015 frame style ranking below 100 on EDHRec.
SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015
cards.edhrecRank; cards.frameVersion; cards.id
3
115
unchanged
344
card_games
List all the mythic rarity print cards banned in gladiator format.
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'
cards.id; cards.rarity; cards.uuid; legalities.format; legalities.status; legalities.uuid
6
115
unchanged
345
card_games
For artifact type of cards that do not have multiple faces on the same card, state its legalities status for vintage play format.
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
cards.side; cards.type; cards.uuid; legalities.format; legalities.status; legalities.uuid
6
115
unchanged
346
card_games
List all the card id and artist with unknown power which are legal for commander play format.
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 = '*')
cards.artist; cards.id; cards.power; cards.uuid; legalities.format; legalities.status; legalities.uuid
7
115
unchanged
347
card_games
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.
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'
cards.artist; cards.hasContentWarning; cards.id; cards.uuid; rulings.text; rulings.uuid
6
115
unchanged
348
card_games
Describe the information about rulings for card named 'Sublime Epiphany' with number 74s.
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Sublime Epiphany' AND T1.number = '74s'
cards.name; cards.number; cards.uuid; rulings.text; rulings.uuid
5
115
unchanged
349
card_games
Name the card and artist with the most ruling information. Also state if the card is a promotional printing.
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 is...
cards.artist; cards.isPromo; cards.name; cards.uuid; rulings.uuid
5
115
ambiguity_resolved
350
card_games
State the alternative languages available for card named Annul numbered 29.
SELECT T2.language FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Annul' AND T1.number = 29
cards.name; cards.number; cards.uuid; foreign_data.language; foreign_data.uuid
5
115
unchanged
351
card_games
Name all the cards which have alternative language in Japanese.
SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Japanese'
cards.name; cards.uuid; foreign_data.language; foreign_data.uuid
4
115
unchanged
352
card_games
Calculate the percentage of the cards availabe in Chinese Simplified.
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
cards.id; cards.uuid; foreign_data.language; foreign_data.uuid
4
115
unchanged
353
card_games
List all the sets available in Italian translation. State the total number of cards per set.
SELECT T1.name, T1.totalSetSize FROM sets AS T1 INNER JOIN set_translations AS T2 ON T1.code = T2.setCode WHERE T2.language = 'Italian'
set_translations.language; set_translations.setCode; sets.code; sets.name; sets.totalSetSize
5
115
joinkey_added
354
card_games
How many types of cards does the artist Aaron Boyd illustrated about card art?
SELECT COUNT(type) FROM cards WHERE artist = 'Aaron Boyd'
cards.artist; cards.type
2
115
unchanged
355
card_games
What is the keyword found on card 'Angel of Mercy'?
SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy'
cards.keywords; cards.name
2
115
joinkey_added
356
card_games
How many cards have infinite power?
SELECT COUNT(*) FROM cards WHERE power = '*'
cards.power
1
115
unchanged
357
card_games
What type of promotion is of card 'Duress'?
SELECT promoTypes FROM cards WHERE name = 'Duress' AND promoTypes IS NOT NULL
cards.name; cards.promoTypes
2
115
unchanged
358
card_games
What is the border color of card "Ancestor's Chosen"?
SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'
cards.borderColor; cards.name
2
115
joinkey_added
359
card_games
What is the type of the card "Ancestor's Chosen" as originally printed?
SELECT originalType FROM cards WHERE name = 'Ancestor''s Chosen' AND originalType IS NOT NULL
cards.name; cards.originalType
2
115
unchanged
360
card_games
cards are not directly linked to language but through table 'set'. you need to add set in covered table & rephrase your question What are the languages available for the set that card 'Angel of Mercy' is in?
SELECT language FROM set_translations WHERE id IN ( SELECT id FROM cards WHERE name = 'Angel of Mercy' )
cards.id; cards.name; set_translations.id; set_translations.language
4
115
joinkey_added
361
card_games
How many cards of legalities whose status is restricted have text boxes?
SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isTextless = 0
cards.id; cards.isTextless; cards.uuid; legalities.status; legalities.uuid
5
115
unchanged
362
card_games
What is the description about the ruling of card "Condemn"?
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Condemn'
cards.name; cards.uuid; rulings.text; rulings.uuid
4
115
unchanged
363
card_games
How many cards of legalities whose status is restricted are found in a starter deck?
SELECT COUNT(DISTINCT T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T2.status = 'Restricted' AND T1.isStarter = 1
cards.id; cards.isStarter; cards.uuid; legalities.status; legalities.uuid
5
115
unchanged
364
card_games
What is the status of card "Cloudchaser Eagle"?
SELECT DISTINCT T2.status FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Cloudchaser Eagle'
cards.name; cards.uuid; legalities.status; legalities.uuid
4
115
unchanged
365
card_games
What is the type of card "Benalish Knight"?
SELECT DISTINCT T1.type FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'
cards.name; cards.type; cards.uuid; foreign_data.uuid
4
115
unchanged
366
card_games
What is the rule of playing card "Benalish Knight"?
SELECT T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Benalish Knight'
cards.name; cards.uuid; legalities.format; legalities.uuid
4
115
unchanged
367
card_games
Please provide the names of the artists who illustrated the card art in Phyrexian.
SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Phyrexian'
cards.artist; cards.uuid; foreign_data.language; foreign_data.uuid
4
115
unchanged
368
card_games
What is the percentage of borderless cards?
SELECT CAST(SUM(CASE WHEN borderColor = 'borderless' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(id) FROM cards
cards.borderColor; cards.id
2
115
unchanged
369
card_games
How many cards that illusrtated in German have been reprinted?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'German' AND T1.isReprint = 1
cards.id; cards.isReprint; cards.uuid; foreign_data.language; foreign_data.uuid
5
115
unchanged
370
card_games
How many borderless cards are illustrated in Russian?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.borderColor = 'borderless' AND T2.language = 'Russian'
cards.borderColor; cards.id; cards.uuid; foreign_data.language; foreign_data.uuid
5
115
unchanged
371
card_games
What is the percentage of cards whose language is French among the Story Spotlight cards?
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
cards.id; cards.isStorySpotlight; cards.uuid; foreign_data.language; foreign_data.uuid
5
115
unchanged
372
card_games
How many cards are there with toughness of 99?
SELECT COUNT(id) FROM cards WHERE toughness = 99
cards.id; cards.toughness
2
115
unchanged
373
card_games
Name the cards that were illustrated by Aaron Boyd.
SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd'
cards.artist; cards.name
2
115
unchanged
374
card_games
How many black border cards are only available on mtgo?
SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black'
cards.availability; cards.borderColor; cards.id
3
115
unchanged
375
card_games
List down all the card IDs with converted mana cost of 0.
SELECT id FROM cards WHERE convertedManaCost = 0
cards.convertedManaCost; cards.id
2
115
unchanged
376
card_games
What are the card layout of cards with keyword of flying?
SELECT layout FROM cards WHERE keywords = 'Flying'
cards.keywords; cards.layout
2
115
unchanged
377
card_games
How many cards with original type of "Summon - Angel" have subtype other than "Angel"?
SELECT COUNT(id) FROM cards WHERE originalType = 'Summon - Angel' AND subtypes != 'Angel'
cards.id; cards.originalType; cards.subtypes
3
115
unchanged
378
card_games
What are the foiled cards that are incredibly powerful when paired with non foiled cards? List the IDs.
SELECT id FROM cards WHERE cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL
cards.cardKingdomFoilId; cards.cardKingdomId; cards.id
3
115
unchanged
379
card_games
What are the cards belong to duel deck a? List the ID.
SELECT id FROM cards WHERE duelDeck = 'a'
cards.duelDeck; cards.id
2
115
unchanged
380
card_games
List the edhrecRank for cards with frame version 2015.
SELECT edhrecRank FROM cards WHERE frameVersion = 2015
cards.edhrecRank; cards.frameVersion
2
115
unchanged
381
card_games
List down the name of artists for cards in Chinese Simplified.
SELECT T1.artist FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T2.language = 'Chinese Simplified'
cards.artist; cards.uuid; foreign_data.language; foreign_data.uuid
4
115
unchanged
382
card_games
What are the cards that only available in paper and Japanese language?
SELECT T1.name FROM cards AS T1 INNER JOIN foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.availability = 'paper' AND T2.language = 'Japanese'
cards.availability; cards.name; cards.uuid; foreign_data.language; foreign_data.uuid
5
115
unchanged
383
card_games
How many of the banned cards are white border?
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'
cards.borderColor; cards.id; cards.uuid; legalities.status; legalities.uuid
5
115
unchanged
384
card_games
List down the uuid for legacy cards and the foreign language of these cards.
SELECT T1.uuid, T3.language FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid INNER JOIN foreign_data AS T3 ON T1.uuid = T3.uuid WHERE T2.format = 'legacy'
cards.uuid; foreign_data.language; foreign_data.uuid; legalities.format; legalities.uuid
5
115
joinkey_added
385
card_games
Write down the ruling of Beacon of Immortality.
SELECT T2.text FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.name = 'Beacon of Immortality'
cards.name; cards.uuid; rulings.text; rulings.uuid
4
115
unchanged
386
card_games
How many cards are having future frame version and what are the legality status of these cards?
SELECT COUNT(T1.id) FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.frameVersion = 'future'
cards.frameVersion; cards.id; cards.uuid; legalities.uuid
4
115
unchanged
387
card_games
What are the cards for set OGW? State the colour for these cards.
SELECT id, colors FROM cards WHERE id IN ( SELECT id FROM set_translations WHERE setCode = 'OGW' )
cards.colors; cards.id; set_translations.id; set_translations.setCode
4
115
unchanged
388
card_games
What are the cards in set 10E with converted mana of 5 have translation and what are the languages?
SELECT id, language FROM set_translations WHERE id = ( SELECT id FROM cards WHERE convertedManaCost = 5 ) AND setCode = '10E'
cards.convertedManaCost; cards.id; set_translations.id; set_translations.language; set_translations.setCode
5
115
joinkey_added
389
card_games
List down the name of cards with original types of Creature - Elf and the date of rulings for these cards.
SELECT T1.id, T2.date FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Creature - Elf'
cards.id; cards.originalType; cards.uuid; rulings.date; rulings.uuid
5
115
unchanged
390
card_games
What are the colors of cards from ID 1-20? What are the format of these cards?
SELECT T1.colors, T2.format FROM cards AS T1 INNER JOIN legalities AS T2 ON T1.uuid = T2.uuid WHERE T1.id BETWEEN 1 AND 20
cards.colors; cards.id; cards.uuid; legalities.format; legalities.uuid
5
115
joinkey_added
391
card_games
Among the Artifact cards, which are black color and comes with foreign languague translation?
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'
cards.colors; cards.name; cards.originalType; cards.uuid; foreign_data.uuid
5
115
unchanged
392
card_games
Pick 3 cards with rarity of uncommon, list down name these cards according to ascending order of it's ruling date.
SELECT DISTINCT T1.name FROM cards AS T1 INNER JOIN rulings AS T2 ON T1.uuid = T2.uuid WHERE T1.rarity = 'uncommon' ORDER BY T2.date ASC LIMIT 3
cards.name; cards.rarity; cards.uuid; rulings.date; rulings.uuid
5
115
unchanged
393
card_games
On how many cards designed by John Avon is its foil non-powerful?
SELECT COUNT(id) FROM cards WHERE (cardKingdomId IS NULL OR cardKingdomFoilId IS NULL) AND artist = 'John Avon'
cards.artist; cards.cardKingdomFoilId; cards.cardKingdomId; cards.id
4
115
unchanged
394
card_games
How many white bordered cards are powerful?
SELECT COUNT(id) FROM cards WHERE borderColor = 'white' AND cardKingdomId IS NOT NULL AND cardKingdomFoilId IS NOT NULL
cards.borderColor; cards.cardKingdomFoilId; cards.cardKingdomId; cards.id
4
115
unchanged
395
card_games
How many cards designed by UDON and available in mtgo print type has a starting maximum hand size of -1?
SELECT COUNT(id) FROM cards WHERE hAND = '-1' AND artist = 'UDON' AND Availability = 'mtgo'
cards.artist; cards.availability; cards.hand; cards.id
4
115
joinkey_added
396
card_games
How many cards with a 1993 frame version and available on paper have a sensitive content warning?
SELECT COUNT(id) FROM cards WHERE frameVersion = 1993 AND availability = 'paper' AND hasContentWarning = 1
cards.availability; cards.frameVersion; cards.hasContentWarning; cards.id
4
115
unchanged
397
card_games
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?
SELECT manaCost FROM cards WHERE availability = 'mtgo,paper' AND borderColor = 'black' AND frameVersion = 2003 AND layout = 'normal'
cards.availability; cards.borderColor; cards.frameVersion; cards.layout; cards.manaCost
5
115
unchanged
398
card_games
What is the unconverted mana do all the cards created by Rob Alexander cost in total?
SELECT manaCost FROM cards WHERE artist = 'Rob Alexander'
cards.artist; cards.manaCost
2
115
joinkey_added
399
card_games
Lists all types of cards available in arena.
SELECT DISTINCT subtypes, supertypes FROM cards WHERE availability = 'arena' AND subtypes IS NOT NULL AND supertypes IS NOT NULL
cards.availability; cards.subtypes; cards.supertypes
3
115
unchanged