query_id
int64
0
1.53k
database_id
stringclasses
11 values
table_id
sequencelengths
1
4
query
stringlengths
23
286
answer
stringlengths
29
1.45k
difficulty
stringclasses
3 values
evidence
stringlengths
0
591
300
toxicology
[ "atom" ]
What atoms comprise TR186?
SELECT T.atom_id FROM atom AS T WHERE T.molecule_id = 'TR186'
simple
TR186 is a molecule id
301
toxicology
[ "bond" ]
What is the bond type of TR007_4_19?
SELECT T.bond_type FROM bond AS T WHERE T.bond_id = 'TR007_4_19'
simple
double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple bond refers to bond_type = '#';
302
toxicology
[ "connected", "atom" ]
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'
challenging
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
303
toxicology
[ "bond", "molecule" ]
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
moderate
label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic; double bond refers to bond_type = ' = ';
304
toxicology
[ "atom", "molecule" ]
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 = '+'
challenging
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
305
toxicology
[ "connected", "bond" ]
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 = '-'
simple
single bond refers to bond_type = '-';
306
toxicology
[ "atom", "bond" ]
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 = '#'
challenging
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
307
toxicology
[ "connected", "atom" ]
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'
challenging
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
308
toxicology
[ "connected", "atom" ]
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'
simple
chlorine refers to element = 'cl'
309
toxicology
[ "atom", "bond" ]
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) 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
310
toxicology
[ "bond", "molecule" ]
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 = '='
moderate
double bond refers to bond_type = ' = '; label = '+' mean molecules are carcinogenic;
311
toxicology
[ "atom", "bond" ]
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 <> '='
simple
double bond refers to bond_type = ' = '; bond_type ! = ' = '; sulphur refers to element = 's'
312
toxicology
[ "atom", "bond", "molecule" ]
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'
simple
label = '+' mean molecules are carcinogenic
313
toxicology
[ "atom" ]
How many atoms belong to molecule id TR005?
SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR005'
simple
314
toxicology
[ "bond" ]
How many single bonds are there in the list?
SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '-'
simple
single bond refers to bond_type = '-';
315
toxicology
[ "atom", "molecule" ]
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 = '+'
simple
label = '+' mean molecules are carcinogenic;
316
toxicology
[ "atom", "molecule" ]
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 = '-'
simple
label = '-' means molecules are non-carcinogenic
317
toxicology
[ "atom", "molecule" ]
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
moderate
label = '+' mean molecules are carcinogenic; percentage = DIVIDE(SUM(label = '+' and element = 'cl'), COUNT(molecule_id)) as percentage
318
toxicology
[ "connected", "atom" ]
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'
simple
319
toxicology
[ "connected", "atom" ]
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'
challenging
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
320
toxicology
[ "connected", "bond" ]
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'
moderate
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 = '#';
321
toxicology
[ "connected", "bond" ]
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'
simple
322
toxicology
[ "atom" ]
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'
challenging
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
323
toxicology
[ "molecule" ]
Is molecule TR000 is carcinogenic or not?
SELECT label FROM molecule AS T WHERE T.molecule_id = 'TR000'
simple
label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic
324
toxicology
[ "bond" ]
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
simple
single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(bond_type = '-'), COUNT(bond_id)) as percentage
325
toxicology
[ "atom", "molecule" ]
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 = '+'
simple
nitrogen refers to element = 'n'; label = '+' mean molecules are carcinogenic;
326
toxicology
[ "atom", "bond" ]
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 = '='
simple
sulphur refers to element - 's'; double bond refers to bond_type = ' = ';
327
toxicology
[ "atom", "molecule" ]
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
moderate
label = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5
328
toxicology
[ "atom", "bond" ]
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 = '='
challenging
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
329
toxicology
[ "atom", "molecule" ]
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
moderate
label = '+' mean molecules are carcinogenic; molecule that have the highest number of atoms consisted in in refers to MAX(COUNT(atom.molecule_id))
330
toxicology
[ "atom", "bond", "molecule" ]
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'
challenging
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 = '#';
331
toxicology
[ "molecule" ]
How many of the molecules are carcinogenic?
SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+'
simple
label = '+' mean molecules are carcinogenic;
332
toxicology
[ "bond" ]
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 = '-'
simple
single bond refers to bond_type = '-'; molecules between TR004 to TR010 refers molecule_id BETWEEN 'TR004' and 'TR010';
333
toxicology
[ "atom" ]
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'
simple
carbon refers to element = 'c'
334
toxicology
[ "atom", "molecule" ]
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 = '-'
challenging
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
335
toxicology
[ "atom", "bond" ]
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'
simple
oxygen refers to element = 'o'; double bond refers to bond_type = ' = ';
336
toxicology
[ "bond", "molecule" ]
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 = '-'
simple
triple bond refers to bond_type = '#'; label = '-' means molecules are non-carcinogenic
337
toxicology
[ "atom", "bond" ]
List the element and bond type included in the molecule with molecule ID of TR016.
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
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 = '#';
338
toxicology
[ "atom", "bond", "molecule" ]
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'
moderate
carbon refers to element = 'c'; double bond refers to bond_type = ' = ';
339
toxicology
[ "atom", "molecule" ]
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 = '+'
simple
label = '+' mean molecules are carcinogenic; oxygen refers to element = 'o'
340
card_games
[ "cards" ]
Which are the cards that have incredibly powerful foils.
SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL
simple
poweful foils refers to cardKingdomFoilId = cardKingdomId AND cardKingdomId is not null
341
card_games
[ "cards" ]
What are the borderless cards available without powerful foils?
SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL)
simple
borderless' refers to borderColor; poweful foils refers to cardKingdomFoilId paired with cardKingdomId AND cardKingdomId is not null
342
card_games
[ "cards" ]
List the card names with value that cost more converted mana for the face.
SELECT name FROM cards ORDER BY faceConvertedManaCost LIMIT 1
simple
more converted mana for the face refers to Max(faceConvertedManaCost);
343
card_games
[ "cards" ]
Name all cards with 2015 frame style ranking below 100 on EDHRec.
SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015
simple
below 100 on EDHRec refers to EDHRec <100; with 2015 frame style refers to frameVersion = 2015;
344
card_games
[ "cards", "legalities" ]
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'
moderate
mythic rarity printing refers to rarity = 'mythic'; card banned refers to status = 'Banned'; in gladiator format refers to format = 'gladiator';
345
card_games
[ "cards", "legalities" ]
For artifact type of cards that do not have multiple faces on the same card, state its legalities 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
moderate
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';
346
card_games
[ "cards", "legalities" ]
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 = '*')
moderate
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'
347
card_games
[ "cards", "rulings" ]
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'
moderate
cards have missing or degraded properties and value refers to hasContentWarning = 1; 'Stephen Daniele' is artist;
348
card_games
[ "cards", "rulings" ]
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'
simple
Sublime Epiphany' is name of cards; number 74s refers to number = '74s'; information refers to text;
349
card_games
[ "cards", "rulings" ]
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 GROUP BY T1.artist ORDER BY COUNT(DISTINCT T1.uuid) DESC LIMIT 1
moderate
with the most ruling information refers to Max(count(rulings.uuid)); the card is the promotional printing refers to isPromo = 1;
350
card_games
[ "cards", "foreign_data" ]
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
simple
annul refers to name = 'annul'; numbered 29 refers to number = '29';
351
card_games
[ "cards", "foreign_data" ]
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'
simple
Japanese' is the language;
352
card_games
[ "cards", "foreign_data" ]
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
moderate
Chinese Simplified' is the language; percentage = Divide(Sum(id where language = 'Chinese Simplified'), Count(id)) *100
353
card_games
[ "sets", "set_translations" ]
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'
simple
Italian translation refers to language = 'Italian'; total number of card per set refers to totalSetSize;
354
card_games
[ "cards" ]
How many types of cards does the artist Aaron Boyd illustrated about card art?
SELECT COUNT(type) FROM cards WHERE artist = 'Aaron Boyd'
simple
Aaron Boyd' is artist;
355
card_games
[ "cards" ]
What is the keyword found on card 'Angel of Mercy'?
SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy'
simple
Angel of Mercy' is the name of card;
356
card_games
[ "cards" ]
How many cards have infinite power?
SELECT COUNT(*) FROM cards WHERE power = '*'
simple
infinite power refers to power = '*';
357
card_games
[ "cards" ]
What type of promotion is of card 'Duress'?
SELECT promoTypes FROM cards WHERE name = 'Duress' AND promoTypes IS NOT NULL
simple
card Duress refers to name = 'Duress'; type of promotion refers to promoTypes;
358
card_games
[ "cards" ]
What is the border color of card "Ancestor's Chosen"?
SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen'
simple
Ancestor's Chosen' is the name of card;
359
card_games
[ "cards" ]
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
simple
Ancestor's Chosen' is the name of card; type of the card as originally printed refers to originaltype;
360
card_games
[ "cards", "set_translations" ]
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' )
moderate
Angel of Mercy' is the name of card;
361
card_games
[ "cards", "legalities" ]
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
simple
restricted refers to status = 'restricted'; have text boxes refers to is Textless = 0;
362
card_games
[ "cards", "rulings" ]
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'
simple
Ancestor's Chosen' is the name of card; description about the ruling refers to text;
363
card_games
[ "cards", "legalities" ]
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
simple
restricted refers to status = 'restricted'; found in the starter deck refers to isStarter = 1;
364
card_games
[ "cards", "legalities" ]
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'
simple
Cloudchaser Eagle is the name of card;
365
card_games
[ "cards", "foreign_data" ]
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'
simple
Benalish Knight' is the name of card;
366
card_games
[ "cards", "legalities" ]
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'
simple
Benalish Knight' is the name of card; rule of playing card refers to format;
367
card_games
[ "cards", "foreign_data" ]
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'
simple
Phyrexian' is the language; name of artists refers to artist;
368
card_games
[ "cards" ]
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
simple
borderless card refers to borderColor = 'borderless'; percentage = Divide(Count (id) where borderColor = 'borderless', Count(id)) *100
369
card_games
[ "cards", "foreign_data" ]
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
simple
German' is the language; reprinted refers to isReprint = 1;
370
card_games
[ "cards", "foreign_data" ]
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'
simple
borderless card refers to borderColor = 'borderless'; 'Russian' is the language;
371
card_games
[ "cards", "foreign_data" ]
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
challenging
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
372
card_games
[ "cards" ]
How many cards are there with toughness of 99?
SELECT COUNT(id) FROM cards WHERE toughness = 99
simple
373
card_games
[ "cards" ]
Name the cards that were illustrated by Aaron Boyd.
SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd'
simple
Aaron Boyd' is artist;
374
card_games
[ "cards" ]
How many black border cards are only available on mtgo?
SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black'
simple
black border card refers to borderColor = black; available on mtgo refers to availability = mtgo; add quotes for string = 'black' and = 'mtgo'
375
card_games
[ "cards" ]
List down all the card IDs with converted mana cost of 0.
SELECT id FROM cards WHERE convertedManaCost = 0
simple
converted mana cost of 0 refers to covertedManaCost = 0;
376
card_games
[ "cards" ]
What are the card layout of cards with keyword of flying?
SELECT layout FROM cards WHERE keywords = 'Flying'
simple
377
card_games
[ "cards" ]
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'
simple
subtype other than Angel refers to subtypes is not 'Angel';
378
card_games
[ "cards" ]
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
simple
Incredibly powerful refers to both cardKingdomFoilId and cardKingdomId IS NOT Null;
379
card_games
[ "cards" ]
What are the cards belong to duel deck a? List the ID.
SELECT id FROM cards WHERE duelDeck = 'a'
simple
duel deck a refers to duelDeck = a;
380
card_games
[ "cards" ]
List the edhrecRank for cards with frame version 2015.
SELECT edhrecRank FROM cards WHERE frameVersion = 2015
simple
381
card_games
[ "cards", "foreign_data" ]
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'
simple
Chinese Simplified' is the language;
382
card_games
[ "cards", "foreign_data" ]
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'
simple
available in paper refers to availability = 'paper'; 'Japanese is the language;
383
card_games
[ "cards", "legalities" ]
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'
simple
banned card refers to status = 'Banned'; white border refers to borderColor = 'white';
384
card_games
[ "cards", "legalities", "foreign_data" ]
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'
simple
legacy card refers to format = 'legacy'; foreign language refers to language in foreign_data
385
card_games
[ "cards", "rulings" ]
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'
simple
Beacon of Immortality' is the name of card;
386
card_games
[ "cards", "legalities" ]
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'
simple
future frame version refers to frameVersion = 'future'; legility status refers to status = 'legal';
387
card_games
[ "cards", "set_translations" ]
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' )
simple
set OGW refers to setCode = 'OGW';
388
card_games
[ "cards", "set_translations" ]
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'
simple
set 10E refers to setCode = '10E'; converted mana of 5 refers to convertedManaCost = 5;
389
card_games
[ "cards", "rulings" ]
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'
simple
Creature - Elf is the originalType;
390
card_games
[ "cards", "legalities" ]
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
simple
ID 1-20 refers to id BETWEEN 1 and 20;
391
card_games
[ "cards", "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 foreign_data AS T2 ON T1.uuid = T2.uuid WHERE T1.originalType = 'Artifact' AND T1.colors = 'B'
moderate
Artifact card refers to originalType = 'Artifact'; black color refers to colors = 'B'; foreign language refers to language in foreign_data
392
card_games
[ "cards", "rulings" ]
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
simple
uncommon refers to rarity = 'uncommon';
393
card_games
[ "cards" ]
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'
simple
John Avon refer to artist; foil poweful foils refers to cardKingdomId and cardKingdomFoildId is NOT NULL
394
card_games
[ "cards" ]
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
simple
white bordered cards refer to borderColor = 'white'; powerful cards refers to cardKingdomFoilId = cardKingdomId AND cardKingdomId is not null (replace)
395
card_games
[ "cards" ]
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 = 'print' AND type = 'mtgo'
simple
UDON refer to artist; availabe in mtgo refers to availability = 'mtgo'; starting maximum hand size of -1 refers to hand = -1
396
card_games
[ "cards" ]
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
simple
sensitive content warning refer to hasContentWarning = 1; available on paper refer to availability = 'paper' 1993 refer to frameVersion
397
card_games
[ "cards" ]
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'
moderate
available in paper refers to availability = 'paper'; available in mtgo refers to availability = 'mtgo; frameVersion = 2003;borderColor = 'black'
398
card_games
[ "cards" ]
How much unconverted mana do all the cards created by Rob Alexander cost in total?
SELECT SUM(manaCost) FROM cards WHERE artist = 'Rob Alexander'
simple
unconverted mana refer to manaCost; Rob Alexander refer to artist
399
card_games
[ "cards" ]
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
simple
all types refer to subtypes and supertypes availble in arena refers to availability = 'arena'