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