question stringlengths 23 286 | sql stringlengths 29 1.45k | db_id stringclasses 11
values | prompt stringlengths 1.09k 6.84k | question_id int64 0 1.53k | difficulty stringclasses 3
values |
|---|---|---|---|---|---|
What atoms comprise TR186? | SELECT T.atom_id FROM atom AS T WHERE T.molecule_id = 'TR186' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 300 | simple |
What is the bond type of TR007_4_19? | SELECT T.bond_type FROM bond AS T WHERE T.bond_id = 'TR007_4_19' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 301 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 302 | challenging |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 303 | moderate |
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 = '+' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 304 | challenging |
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 = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 305 | simple |
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 = '#' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 306 | challenging |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 307 | challenging |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 308 | simple |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 309 | simple |
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 = '=' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 310 | moderate |
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 <> '=' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 311 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 312 | simple |
How many atoms belong to molecule id TR005? | SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR005' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 313 | simple |
How many single bonds are there in the list? | SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 314 | simple |
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 = '+' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 315 | simple |
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 = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 316 | simple |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 317 | moderate |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 318 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 319 | challenging |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 320 | moderate |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 321 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 322 | challenging |
Is molecule TR000 is carcinogenic or not? | SELECT label FROM molecule AS T WHERE T.molecule_id = 'TR000' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 323 | simple |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 324 | simple |
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 = '+' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 325 | simple |
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 = '=' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 326 | simple |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 327 | moderate |
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 = '=' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 328 | challenging |
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 | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 329 | moderate |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 330 | challenging |
How many of the molecules are carcinogenic? | SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 331 | simple |
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 = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 332 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 333 | simple |
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 = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 334 | challenging |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 335 | simple |
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 = '-' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 336 | simple |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 337 | challenging |
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' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 338 | moderate |
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 = '+' | toxicology | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#atom (atom_id text, molecule_id text, element text, , PRIMARY KEY(atom_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id))
#bon... | 339 | simple |
Which are the cards that have incredibly powerful foils. | SELECT id FROM cards WHERE cardKingdomFoilId IS NOT NULL AND cardKingdomId IS NOT NULL | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 340 | simple |
What are the borderless cards available without powerful foils? | SELECT id FROM cards WHERE borderColor = 'borderless' AND (cardKingdomId IS NULL OR cardKingdomId IS NULL) | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 341 | simple |
List the card names with value that cost more converted mana for the face. | SELECT name FROM cards ORDER BY faceConvertedManaCost LIMIT 1 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 342 | simple |
Name all cards with 2015 frame style ranking below 100 on EDHRec. | SELECT id FROM cards WHERE edhrecRank < 100 AND frameVersion = 2015 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 343 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 344 | moderate |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 345 | moderate |
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 = '*') | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 346 | moderate |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 347 | moderate |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 348 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 349 | moderate |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 350 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 351 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 352 | moderate |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 353 | simple |
How many types of cards does the artist Aaron Boyd illustrated about card art? | SELECT COUNT(type) FROM cards WHERE artist = 'Aaron Boyd' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 354 | simple |
What is the keyword found on card 'Angel of Mercy'? | SELECT DISTINCT keywords FROM cards WHERE name = 'Angel of Mercy' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 355 | simple |
How many cards have infinite power? | SELECT COUNT(*) FROM cards WHERE power = '*' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 356 | simple |
What type of promotion is of card 'Duress'? | SELECT promoTypes FROM cards WHERE name = 'Duress' AND promoTypes IS NOT NULL | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 357 | simple |
What is the border color of card "Ancestor's Chosen"? | SELECT DISTINCT borderColor FROM cards WHERE name = 'Ancestor''s Chosen' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 358 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 359 | simple |
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' ) | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 360 | moderate |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 361 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 362 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 363 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 364 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 365 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 366 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 367 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 368 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 369 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 370 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 371 | challenging |
How many cards are there with toughness of 99? | SELECT COUNT(id) FROM cards WHERE toughness = 99 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 372 | simple |
Name the cards that were illustrated by Aaron Boyd. | SELECT DISTINCT name FROM cards WHERE artist = 'Aaron Boyd' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 373 | simple |
How many black border cards are only available on mtgo? | SELECT COUNT(id) FROM cards WHERE availability = 'mtgo' AND borderColor = 'black' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 374 | simple |
List down all the card IDs with converted mana cost of 0. | SELECT id FROM cards WHERE convertedManaCost = 0 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 375 | simple |
What are the card layout of cards with keyword of flying? | SELECT layout FROM cards WHERE keywords = 'Flying' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 376 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 377 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 378 | simple |
What are the cards belong to duel deck a? List the ID. | SELECT id FROM cards WHERE duelDeck = 'a' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 379 | simple |
List the edhrecRank for cards with frame version 2015. | SELECT edhrecRank FROM cards WHERE frameVersion = 2015 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 380 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 381 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 382 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 383 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 384 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 385 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 386 | simple |
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' ) | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 387 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 388 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 389 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 390 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 391 | moderate |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 392 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 393 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 394 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 395 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 396 | simple |
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' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 397 | moderate |
How much unconverted mana do all the cards created by Rob Alexander cost in total? | SELECT SUM(manaCost) FROM cards WHERE artist = 'Rob Alexander' | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 398 | simple |
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 | card_games | You are a proficient SQLite database engineer. You think step by step and give clear and concise answer.
### Here are all the tables with their properties in a SQLite Database.
#
#cards (id integer, artist text, asciiName text, availability text, borderColor text, cardKingdomFoilId text, cardKingdomId text, colorIdent... | 399 | simple |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.