question
stringlengths 23
286
| sql
stringlengths 29
1.45k
| db_id
stringclasses 11
values | prompt
stringclasses 3
values | question_id
int64 0
1.53k
| difficulty
stringclasses 3
values |
---|---|---|---|---|---|
Find the triple-bonded molecules which are carcinogenic. | SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#' AND T2.label = '+' | toxicology | 200 | simple |
|
What is the percentage of carbon in double-bond molecules? | SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element = 'c' THEN T1.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.atom_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '=' | toxicology | 201 | moderate |
|
How many triple type bonds are there? | SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '#' | toxicology | 202 | simple |
|
In how many atoms is there no bromine? | SELECT COUNT(DISTINCT T.atom_id) FROM atom AS T WHERE T.element <> 'br' | toxicology | 203 | simple |
|
Of the first 100 molecules in number order, how many are carcinogenic? | SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE molecule_id BETWEEN 'TR000' AND 'TR099' AND T.label = '+' | toxicology | 204 | simple |
|
Identify by their ID the molecules in which there is silicon. | SELECT T.atom_id FROM atom AS T WHERE T.element = 'si' | toxicology | 205 | simple |
|
What elements are in the TR004_8_9 bond atoms? | SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR004_8_9' | toxicology | 206 | challenging |
|
What elements are in a double type bond? | SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN connected AS T3 ON T1.atom_id = T3.atom_id WHERE T2.bond_type = '=' | toxicology | 207 | challenging |
|
Which type of label is the most numerous in atoms with hydrogen? | SELECT T.label FROM ( SELECT T2.label, COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'h' GROUP BY T2.label ORDER BY COUNT(T2.molecule_id) DESC LIMIT 1 ) t | toxicology | 208 | moderate |
|
Tellurium is in what type of bond? | SELECT DISTINCT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T3.element = 'te' | toxicology | 209 | simple |
|
What atoms are connected in single type bonds? | SELECT 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 | 210 | simple |
|
Indicate which atoms are connected in non-carcinogenic type molecules. | SELECT DISTINCT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN connected AS T3 ON T1.atom_id = T3.atom_id WHERE T2.label = '-' | toxicology | 211 | simple |
|
Which element is the least numerous in non-carcinogenic molecules? | SELECT T.element FROM ( SELECT T1.element, COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' GROUP BY T1.element ORDER BY COUNT(DISTINCT T1.molecule_id) ASC LIMIT 4 ) t | toxicology | 212 | challenging |
|
What type of bond is there between the atoms TR004_8 and TR004_20? | SELECT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.atom_id = 'TR004_8' AND T2.atom_id2 = 'TR004_20' OR T2.atom_id2 = 'TR004_8' AND T2.atom_id = 'TR004_20' | toxicology | 213 | moderate |
|
What type of label is not on molecules with atoms with tin? | SELECT DISTINCT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element != 'sn' | toxicology | 214 | simple |
|
How many atoms with iodine and sulfur type elements are there in single bond molecules? | SELECT COUNT(DISTINCT CASE WHEN T1.element = 'i' THEN T1.atom_id ELSE NULL END) AS iodine_nums , COUNT(DISTINCT CASE WHEN T1.element = 's' THEN T1.atom_id ELSE NULL END) AS sulfur_nums FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '-' | toxicology | 215 | challenging |
|
Identify all connected atoms with a triple bond. | SELECT 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 | 216 | simple |
|
Identify all the atoms that are connected to the atoms of the TR181 molecule. | SELECT T2.atom_id, T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T2.atom_id = T1.atom_id WHERE T1.molecule_id = 'TR181' | toxicology | 217 | simple |
|
What percentage of carcinogenic-type molecules does not contain fluorine? | SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element <> 'f' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | toxicology | 218 | challenging |
|
What is the percentage of carcinogenic molecules in triple type bonds? | SELECT CAST(COUNT(DISTINCT CASE WHEN T2.label = '+' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_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 T3.bond_type = '#' | toxicology | 219 | challenging |
|
Please list top three elements of the toxicology of the molecule TR000 in alphabetical order. | SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR000' ORDER BY T.element LIMIT 3 | toxicology | 220 | challenging |
|
What are the atoms that are bonded in the molecule TR001 with the bond ID of TR001_2_6? | SELECT SUBSTR(T.bond_id, 1, 7) AS atom_id1 , T.molecule_id || SUBSTR(T.bond_id, 8, 2) AS atom_id2 FROM bond AS T WHERE T.molecule_id = 'TR001' AND T.bond_id = 'TR001_2_6' | toxicology | 221 | simple |
|
What is the difference between the number of molecules that are carcinogenic and those that are not? | SELECT COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) - COUNT(CASE WHEN T.label = '-' THEN T.molecule_id ELSE NULL END) AS diff_car_notcar FROM molecule t | toxicology | 222 | moderate |
|
What are the atom IDs of the bond TR_000_2_5? | SELECT T.atom_id FROM connected AS T WHERE T.bond_id = 'TR000_2_5' | toxicology | 223 | simple |
|
What are the bond IDs that have the same atom ID 2 of TR000_2? | SELECT T.bond_id FROM connected AS T WHERE T.atom_id2 = 'TR000_2' | toxicology | 224 | simple |
|
Please list top five molecules that have double bonds in alphabetical order. | SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '=' ORDER BY T.molecule_id LIMIT 5 | toxicology | 225 | simple |
|
What is the percentage of double bonds in the molecule TR008? | SELECT CAST(COUNT(CASE WHEN T.bond_type = '=' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id) FROM bond AS T WHERE T.molecule_id = 'TR008' | toxicology | 226 | moderate |
|
What is the percentage of molecules that are carcinogenic? | SELECT CAST(COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T.molecule_id) FROM molecule t | toxicology | 227 | simple |
|
How much of the hydrogen in molecule TR206 is accounted for? Please provide your answer in percentage. | SELECT CAST(COUNT(CASE WHEN T.element = 'h' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR206' | toxicology | 228 | moderate |
|
What is the type of bond that molecule TR000 has when involved in any bonds? | SELECT DISTINCT T.bond_type FROM bond AS T WHERE T.molecule_id = 'TR000' | toxicology | 229 | simple |
|
What are the elements of the toxicology and label of molecule TR060? | SELECT DISTINCT T1.element, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR060' | toxicology | 230 | challenging |
|
Which bond type accounted for the majority of the bonds found in molecule TR018 and state whether or not this molecule is carcinogenic? | SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1 WHERE T1.molecule_id = 'TR018' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T | toxicology | 231 | challenging |
|
Please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order. | SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-' AND T2.label = '-' ORDER BY T2.molecule_id LIMIT 3 | toxicology | 232 | moderate |
|
Please list top two bonds that happened with the molecule TR006 in alphabetical order. | SELECT DISTINCT T2.bond_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.molecule_id = 'TR006' ORDER BY T2.bond_id LIMIT 2 | toxicology | 233 | simple |
|
How many bonds which involved atom 12 does molecule TR009 have? | SELECT COUNT(T2.bond_id) FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.molecule_id = 'TR009' AND T2.atom_id = T1.molecule_id || '_1' AND T2.atom_id2 = T1.molecule_id || '_2' | toxicology | 234 | moderate |
|
How many molecules are carcinogenic and have the bromine element? | SELECT COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.element = 'br' | toxicology | 235 | simple |
|
What are the bond type and the atoms of the bond ID of TR001_6_9? | SELECT T1.bond_type, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.bond_id = 'TR001_6_9' | toxicology | 236 | moderate |
|
Which molecule does the atom TR001_10 belong to? Please state whether this molecule is carcinogenic or not. | SELECT T2.molecule_id , IIF(T2.label = '+', 'YES', 'NO') AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_10' | toxicology | 237 | moderate |
|
How many molecules have a triple bond type? | SELECT COUNT(DISTINCT T.molecule_id) FROM bond AS T WHERE T.bond_type = '#' | toxicology | 238 | simple |
|
How many connections does the atom 19 have? | SELECT COUNT(T.bond_id) FROM connected AS T WHERE SUBSTR(T.atom_id, -2) = '19' | toxicology | 239 | simple |
|
List all the elements of the toxicology of the molecule "TR004". | SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR004' | toxicology | 240 | challenging |
|
How many of the molecules are not carcinogenic? | SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '-' | toxicology | 241 | simple |
|
Among all the atoms from 21 to 25, list all the molecules that are carcinogenic. | SELECT DISTINCT T2.molecule_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE SUBSTR(T1.atom_id, -2) BETWEEN '21' AND '25' AND T2.label = '+' | toxicology | 242 | moderate |
|
What are the bonds that have phosphorus and nitrogen as their atom elements? | SELECT T2.bond_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id IN ( SELECT T3.bond_id FROM connected AS T3 INNER JOIN atom AS T4 ON T3.atom_id = T4.atom_id WHERE T4.element = 'p' ) AND T1.element = 'n' | toxicology | 243 | moderate |
|
Is the molecule with the most double bonds carcinogenic? | SELECT T1.label FROM molecule AS T1 INNER JOIN ( SELECT T.molecule_id, COUNT(T.bond_type) FROM bond AS T WHERE T.bond_type = '=' GROUP BY T.molecule_id ORDER BY COUNT(T.bond_type) DESC LIMIT 1 ) AS T2 ON T1.molecule_id = T2.molecule_id | toxicology | 244 | moderate |
|
What is the average number of bonds the atoms with the element iodine have? | SELECT CAST(COUNT(T2.bond_id) AS REAL) / COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 'i' | toxicology | 245 | moderate |
|
List the bond type and the bond ID of the atom 45. | SELECT T1.bond_type, T1.bond_id FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE SUBSTR(T2.atom_id, 7, 2) = '45' | toxicology | 246 | moderate |
|
List all the elements of atoms that can not bond with any other atoms. | SELECT DISTINCT T.element FROM atom AS T WHERE T.element NOT IN ( SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id ) | toxicology | 247 | challenging |
|
What are the atoms of the triple bond with the molecule "TR447"? | SELECT T2.atom_id, T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_type = '#' AND T3.molecule_id = 'TR447' | toxicology | 248 | simple |
|
What are the elements of the atoms of TR144_8_19? | SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR144_8_19' | toxicology | 249 | challenging |
|
Of all the carcinogenic molecules, which one has the most double bonds? | SELECT T.molecule_id FROM ( SELECT T3.molecule_id, COUNT(T1.bond_type) FROM bond AS T1 INNER JOIN molecule AS T3 ON T1.molecule_id = T3.molecule_id WHERE T3.label = '+' AND T1.bond_type = '=' GROUP BY T3.molecule_id ORDER BY COUNT(T1.bond_type) DESC LIMIT 1 ) AS T | toxicology | 250 | moderate |
|
What is the least common element of all carcinogenic molecules? | SELECT T.element FROM ( SELECT T2.element, COUNT(DISTINCT T2.molecule_id) FROM molecule AS T1 INNER JOIN atom AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.label = '+' GROUP BY T2.element ORDER BY COUNT(DISTINCT T2.molecule_id) LIMIT 1 ) t | toxicology | 251 | moderate |
|
What are the atoms that can bond with the atom that has the element lead? | SELECT T2.atom_id, T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 'pb' | toxicology | 252 | simple |
|
List the elements of all the triple bonds. | SELECT DISTINCT T3.element FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T1.bond_type = '#' | toxicology | 253 | challenging |
|
What percentage of bonds have the most common combination of atoms' elements? | SELECT CAST((SELECT COUNT(T1.atom_id) FROM connected AS T1 INNER JOIN bond AS T2 ON T1.bond_id = T2.bond_id GROUP BY T2.bond_type ORDER BY COUNT(T2.bond_id) DESC LIMIT 1 ) AS REAL) * 100 / ( SELECT COUNT(atom_id) FROM connected ) | toxicology | 254 | moderate |
|
What proportion of single bonds are carcinogenic? | SELECT CAST(COUNT(CASE WHEN T2.label = '+' THEN T1.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bond_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-' | toxicology | 255 | moderate |
|
Calculate the total atoms consisting of the element carbon and hydrogen. | SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.element = 'c' OR T.element = 'h' | toxicology | 256 | simple |
|
List down atom id2 for atoms with element sulfur. | SELECT DISTINCT T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.element = 's' | toxicology | 257 | simple |
|
What are the bond type for atoms with element Tin? | SELECT DISTINCT T3.bond_type FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T3.bond_id = T2.bond_id WHERE T1.element = 'sn' | toxicology | 258 | moderate |
|
How many elements are there for single bond molecules? | SELECT COUNT(DISTINCT T.element) FROM ( SELECT DISTINCT T2.molecule_id, T1.element 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_type = '-' ) AS T | toxicology | 259 | simple |
|
Calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine. | SELECT COUNT(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 T3.bond_type = '#' AND T1.element IN ('p', 'br') | toxicology | 260 | moderate |
|
Write down bond id for molecules that are carcinogenic. | SELECT DISTINCT T1.bond_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | toxicology | 261 | simple |
|
Among the single bond molecule id, which molecules are not carcinogenic? | SELECT DISTINCT T1.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' AND T1.bond_type = '-' | toxicology | 262 | simple |
|
What is the composition of element chlorine in percentage among the single bond molecules? | SELECT CAST(COUNT(CASE WHEN T.element = 'cl' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id) FROM ( SELECT T1.atom_id, T1.element 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_type = '-' ) AS T | toxicology | 263 | challenging |
|
What are the labels for TR000, TR001 and TR002? | SELECT molecule_id, T.label FROM molecule AS T WHERE T.molecule_id IN ('TR000', 'TR001', 'TR002') | toxicology | 264 | simple |
|
List down the molecule id for non carcinogenic molecules. | SELECT T.molecule_id FROM molecule AS T WHERE T.label = '-' | toxicology | 265 | simple |
|
Calculate the total carcinogenic molecules for molecule id from TR000 to TR030. | SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.molecule_id BETWEEN 'TR000' AND 'TR030' AND T.label = '+' | toxicology | 266 | simple |
|
List down the bond type for molecules from molecule id TR000 to TR050. | SELECT T2.molecule_id, T2.bond_type FROM molecule AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.molecule_id BETWEEN 'TR000' AND 'TR050' | toxicology | 267 | moderate |
|
What are the elements for bond id TR001_10_11? | SELECT T2.element FROM connected AS T1 INNER JOIN atom AS T2 ON T1.atom_id = T2.atom_id WHERE T1.bond_id = 'TR001_10_11' | toxicology | 268 | challenging |
|
How many bond id have element iodine? | SELECT COUNT(T3.bond_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 T1.element = 'i' | toxicology | 269 | simple |
|
Among the molecules with element Calcium, are they mostly carcinogenic or non carcinogenic? | SELECT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'ca' GROUP BY T2.label ORDER BY COUNT(T2.label) DESC LIMIT 1 | toxicology | 270 | moderate |
|
Does bond id TR001_1_8 have both element of chlorine and carbon? | SELECT T2.bond_id, T2.atom_id2, T1.element AS flag_have_CaCl FROM atom AS T1 INNER JOIN connected AS T2 ON T2.atom_id = T1.atom_id WHERE T2.bond_id = 'TR001_1_8' AND (T1.element = 'c1' OR T1.element = 'c') | toxicology | 271 | simple |
|
List down two molecule id of triple bond non carcinogenic molecules with element carbon. | SELECT DISTINCT T2.molecule_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 T3.bond_type = '#' AND T1.element = 'c' AND T2.label = '-' | toxicology | 272 | moderate |
|
What is the percentage of element chlorine in carcinogenic molecules? | SELECT CAST(COUNT( CASE WHEN T1.element = 'cl' THEN T1.element ELSE NULL END) AS REAL) * 100 / COUNT(T1.element) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | toxicology | 273 | moderate |
|
List the toxicology elements associated with molecule TR001. | SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR001' | toxicology | 274 | simple |
|
Give me the molecule ID of the double bond type. | SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '=' | toxicology | 275 | simple |
|
Write down the atom IDs of the first and second atoms of triple bond type molecules. | SELECT 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 | 276 | simple |
|
What are the toxicology elements associated with bond ID TR005_16_26? | SELECT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR005_16_26' | toxicology | 277 | challenging |
|
How many of the single bond type molecules are non-carcinogenic? | SELECT COUNT(DISTINCT T2.molecule_id) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' AND T1.bond_type = '-' | toxicology | 278 | simple |
|
What is the label for bond ID TR001_10_11? | SELECT T2.label FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_id = 'TR001_10_11' | toxicology | 279 | simple |
|
Enumerate the bond ID of triple bond type molecules and tell me if they are carcinogenic or not. | SELECT DISTINCT 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 = '#' | toxicology | 280 | moderate |
|
Tally the toxicology element of the 4th atom of each molecule that was carcinogenic. | SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND SUBSTR(T1.atom_id, -1) = '4' AND LENGTH(T1.atom_id) = 7 | toxicology | 281 | challenging |
|
What is the ratio of Hydrogen elements in molecule ID TR006? Please indicate its label. | SELECT CAST(COUNT(CASE WHEN T.element = 'h' THEN T.atom_id ELSE NULL END) AS REAL) / COUNT(T.atom_id) FROM ( SELECT DISTINCT T1.atom_id, T1.element, T1.molecule_id, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR006' ) AS T UNION ALL SELECT DISTINCT T3.label FROM ( SELECT DISTINCT T1.atom_id, T1.element, T1.molecule_id, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR006' ) AS T3 | toxicology | 282 | challenging |
|
Identify whether the chemical compound that contains Calcium is carcinogenic. | SELECT T2.label AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'ca' | toxicology | 283 | moderate |
|
Determine the bond type that is formed in the chemical compound containing element Tellurium. | SELECT DISTINCT T2.bond_type FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'te' | toxicology | 284 | moderate |
|
Name chemical elements that form a bond TR001_10_11. | SELECT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bond_id = 'TR001_10_11' | toxicology | 285 | challenging |
|
Among all chemical compounds identified in the database, what percent of compounds form a triple-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 AS T | toxicology | 286 | simple |
|
Among all chemical compounds that contain molecule TR047, identify the percent that form a double-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 AS T WHERE T.molecule_id = 'TR047' | toxicology | 287 | moderate |
|
Identify whether the molecule that contains atom TR001_1 is carcinogenic. | SELECT T2.label AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_1' | toxicology | 288 | simple |
|
Is molecule TR151 carcinogenic? | SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR151' | toxicology | 289 | simple |
|
Which toxic element can be found in the molecule TR151? | SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR151' | toxicology | 290 | challenging |
|
How many chemical compounds in the database are identified as carcinogenic. | SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+' | toxicology | 291 | simple |
|
Identify the atoms belong to the molecule with ID between TR010 to TR050 that contain the element carbon. | SELECT T.atom_id FROM atom AS T WHERE T.molecule_id BETWEEN 'TR010' AND 'TR050' AND T.element = 'c' | toxicology | 292 | simple |
|
How many atoms belong to the molecule labeled with carcinogenic compounds? | SELECT COUNT(T1.atom_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | toxicology | 293 | simple |
|
Which bond ids are double-bond with carcinogenic compound? | SELECT T1.bond_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.bond_type = '=' | toxicology | 294 | simple |
|
How many atoms belong to the molecule that element is hydrogen and labeled with carcinogenic compound? | SELECT COUNT(T1.atom_id) AS atomnums_h FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.element = 'h' | toxicology | 295 | simple |
|
Indicate the molecule id is belonging to the TR00_1_2 bond that has the first atom named TR00_1. | SELECT T2.molecule_id, T2.bond_id, T1.atom_id FROM connected AS T1 INNER JOIN bond AS T2 ON T1.bond_id = T2.bond_id WHERE T1.atom_id = 'TR000_1' AND T2.bond_id = 'TR000_1_2' | toxicology | 296 | simple |
|
Among the atoms that contain element carbon, which one does not contain compound carcinogenic? | SELECT T1.atom_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 | 297 | simple |
|
Calculate the percentage of molecules containing carcinogenic compounds that element is hydrogen. | SELECT CAST(COUNT(CASE WHEN T1.element = 'h' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' | toxicology | 298 | moderate |
|
Is molecule TR124 carcinogenic? | SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR124' | toxicology | 299 | simple |