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
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Find the triple-bonded molecules which are carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the percentage of carbon in double-bond molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
201
moderate
How many triple type bonds are there?
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many triple type bonds are there? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # In how many atoms is there no bromine? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Of the first 100 molecules in number order, how many are carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify by their ID the molecules in which there is silicon. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What elements are in the TR004_8_9 bond atoms? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What elements are in a double type bond? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which type of label is the most numerous in atoms with hydrogen? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Tellurium is in what type of bond? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What atoms are connected in single type bonds? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Indicate which atoms are connected in non-carcinogenic type molecules. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which element is the least numerous in non-carcinogenic molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What type of bond is there between the atoms TR004_8 and TR004_20? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What type of label is not on molecules with atoms with tin? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many atoms with iodine and sulfur type elements are there in single bond molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify all connected atoms with a triple bond. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify all the atoms that are connected to the atoms of the TR181 molecule. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What percentage of carcinogenic-type molecules does not contain fluorine? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the percentage of carcinogenic molecules in triple type bonds? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Please list top three elements of the toxicology of the molecule TR000 in alphabetical order. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the atoms that are bonded in the molecule TR001 with the bond ID of TR001_2_6? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the difference between the number of molecules that are carcinogenic and those that are not? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the atom IDs of the bond TR_000_2_5? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the bond IDs that have the same atom ID 2 of TR000_2? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Please list top five molecules that have double bonds in alphabetical order. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the percentage of double bonds in the molecule TR008? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the percentage of molecules that are carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How much of the hydrogen in molecule TR206 is accounted for? Please provide your answer in percentage. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the type of bond that molecule TR000 has when involved in any bonds? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the elements of the toxicology and label of molecule TR060? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which bond type accounted for the majority of the bonds found in molecule TR018 and state whether or not this molecule is carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Please list top two bonds that happened with the molecule TR006 in alphabetical order. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many bonds which involved atom 12 does molecule TR009 have? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many molecules are carcinogenic and have the bromine element? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the bond type and the atoms of the bond ID of TR001_6_9? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which molecule does the atom TR001_10 belong to? Please state whether this molecule is carcinogenic or not. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many molecules have a triple bond type? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many connections does the atom 19 have? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List all the elements of the toxicology of the molecule "TR004". None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
240
challenging
How many of the molecules are not 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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many of the molecules are not carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among all the atoms from 21 to 25, list all the molecules that are carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the bonds that have phosphorus and nitrogen as their atom elements? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Is the molecule with the most double bonds carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the average number of bonds the atoms with the element iodine have? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List the bond type and the bond ID of the atom 45. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List all the elements of atoms that can not bond with any other atoms. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the atoms of the triple bond with the molecule "TR447"? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the elements of the atoms of TR144_8_19? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Of all the carcinogenic molecules, which one has the most double bonds? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the least common element of all carcinogenic molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the atoms that can bond with the atom that has the element lead? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List the elements of all the triple bonds. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What percentage of bonds have the most common combination of atoms' elements? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What proportion of single bonds are carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Calculate the total atoms consisting of the element carbon and hydrogen. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List down atom id2 for atoms with element sulfur. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the bond type for atoms with element Tin? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many elements are there for single bond molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Write down bond id for molecules that are carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among the single bond molecule id, which molecules are not carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the composition of element chlorine in percentage among the single bond molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the labels for TR000, TR001 and TR002? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
264
simple
List down the molecule id for non carcinogenic molecules.
SELECT 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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List down the molecule id for non carcinogenic molecules. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Calculate the total carcinogenic molecules for molecule id from TR000 to TR030. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List down the bond type for molecules from molecule id TR000 to TR050. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the elements for bond id TR001_10_11? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many bond id have element iodine? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among the molecules with element Calcium, are they mostly carcinogenic or non carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Does bond id TR001_1_8 have both element of chlorine and carbon? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List down two molecule id of triple bond non carcinogenic molecules with element carbon. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the percentage of element chlorine in carcinogenic molecules? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
273
moderate
List the toxicology elements associated with molecule TR001.
SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR001'
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # List the toxicology elements associated with molecule TR001. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Give me the molecule ID of the double bond type. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Write down the atom IDs of the first and second atoms of triple bond type molecules. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What are the toxicology elements associated with bond ID TR005_16_26? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many of the single bond type molecules are non-carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the label for bond ID TR001_10_11? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Enumerate the bond ID of triple bond type molecules and tell me if they are carcinogenic or not. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Tally the toxicology element of the 4th atom of each molecule that was carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # What is the ratio of Hydrogen elements in molecule ID TR006? Please indicate its label. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify whether the chemical compound that contains Calcium is carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Determine the bond type that is formed in the chemical compound containing element Tellurium. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Name chemical elements that form a bond TR001_10_11. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among all chemical compounds identified in the database, what percent of compounds form a triple-bond. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among all chemical compounds that contain molecule TR047, identify the percent that form a double-bond. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify whether the molecule that contains atom TR001_1 is carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
288
simple
Is molecule TR151 carcinogenic?
SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR151'
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Is molecule TR151 carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which toxic element can be found in the molecule TR151? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many chemical compounds in the database are identified as carcinogenic. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Identify the atoms belong to the molecule with ID between TR010 to TR050 that contain the element carbon. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many atoms belong to the molecule labeled with carcinogenic compounds? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Which bond ids are double-bond with carcinogenic compound? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # How many atoms belong to the molecule that element is hydrogen and labeled with carcinogenic compound? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Indicate the molecule id is belonging to the TR00_1_2 bond that has the first atom named TR00_1. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Among the atoms that contain element carbon, which one does not contain compound carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
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
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Calculate the percentage of molecules containing carcinogenic compounds that element is hydrogen. None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
298
moderate
Is molecule TR124 carcinogenic?
SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR124'
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)) #bond (bond_id text, molecule_id text, bond_type text, , PRIMARY KEY(bond_id), FOREIGN KEY(molecule_id) REFERENCES molecule(molecule_id)) #connected (atom_id text, atom_id2 text, bond_id text, , PRIMARY KEY(atom_id), PRIMARY KEY(atom_id2), FOREIGN KEY(atom_id2) REFERENCES atom(atom_id), FOREIGN KEY(bond_id) REFERENCES bond(bond_id), FOREIGN KEY(atom_id) REFERENCES atom(atom_id)) #molecule (molecule_id text, label text, , PRIMARY KEY(molecule_id), ) # Is molecule TR124 carcinogenic? None # Always use aliases for all aggregate functions. # Use SQL set operations(Union, Union All, Intersect and Minus) if needed. # Use the actual table names in SQL. # replace alias with actual table name or column name if equivalent alias present in natural query SELECT
299
simple