db_id
stringlengths
4
31
SQL
stringlengths
18
1.45k
input_sequence
stringlengths
148
11k
question
stringlengths
16
325
toxicology
select count(distinct t.molecule_id) from bond as t where t.bond_type = '#'
Question: how many molecules have a triple bond type? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bo...
how many molecules have a triple bond type?
toxicology
select count(t.bond_id) from connected as t where substr(t.atom_id, -2) = '19'
Question: how many connections does the atom 19 have? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bo...
how many connections does the atom 19 have?
toxicology
select distinct t.element from atom as t where t.molecule_id = 'tr004'
Question: list all the elements of the toxicology of the molecule 'tr004'. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole...
list all the elements of the toxicology of the molecule 'tr004'.
toxicology
select count(t.molecule_id) from molecule as t where t.label = '-'
Question: how many of the molecules are not carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connecte...
how many of the molecules are not carcinogenic?
toxicology
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 = '+'
Question: among all the atoms from 21 to 25, list all the molecules that are carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id...
among all the atoms from 21 to 25, list all the molecules that are carcinogenic.
toxicology
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'
Question: what are the bonds that have phosphorus and nitrogen as their atom elements? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = m...
what are the bonds that have phosphorus and nitrogen as their atom elements?
toxicology
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
Question: is the molecule with the most double bonds carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id,...
is the molecule with the most double bonds carcinogenic?
toxicology
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'
Question: what is the average number of bonds the atoms with the element iodine have? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mo...
what is the average number of bonds the atoms with the element iodine have?
toxicology
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'
Question: list the bond type and the bond id of the atom 45. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, conne...
list the bond type and the bond id of the atom 45.
toxicology
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 )
Question: list all the elements of atoms that can not bond with any other atoms. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul...
list all the elements of atoms that can not bond with any other atoms.
toxicology
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'
Question: what are the atoms of the triple bond with the molecule 'tr447'? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole...
what are the atoms of the triple bond with the molecule 'tr447'?
toxicology
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'
Question: what are the elements of the atoms of tr144_8_19? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connec...
what are the elements of the atoms of tr144_8_19?
toxicology
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
Question: of all the carcinogenic molecules, which one has the most double bonds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecu...
of all the carcinogenic molecules, which one has the most double bonds?
toxicology
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
Question: what is the least common element of all carcinogenic molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molec...
what is the least common element of all carcinogenic molecules?
toxicology
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'
Question: what are the atoms that can bond with the atom that has the element lead? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mole...
what are the atoms that can bond with the atom that has the element lead?
toxicology
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 = '#'
Question: list the elements of all the triple bonds. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bon...
list the elements of all the triple bonds.
toxicology
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 )
Question: what percentage of bonds have the most common combination of atoms' elements? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = ...
what percentage of bonds have the most common combination of atoms' elements?
toxicology
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 = '-'
Question: what proportion of single bonds are carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connec...
what proportion of single bonds are carcinogenic?
toxicology
select count(t.atom_id) from atom as t where t.element = 'c' or t.element = 'h'
Question: calculate the total atoms consisting of the element carbon and hydrogen. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molec...
calculate the total atoms consisting of the element carbon and hydrogen.
toxicology
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'
Question: list down atom id2 for atoms with element sulfur. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connec...
list down atom id2 for atoms with element sulfur.
toxicology
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'
Question: what are the bond type for atoms with element tin? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, conne...
what are the bond type for atoms with element tin?
toxicology
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
Question: how many elements are there for single bond molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, c...
how many elements are there for single bond molecules?
toxicology
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')
Question: calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id...
calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine.
toxicology
select distinct t1.bond_id from bond as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+'
Question: write down bond id for molecules that are carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, ...
write down bond id for molecules that are carcinogenic.
toxicology
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 = '-'
Question: among the single bond molecule id, which molecules are not carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molec...
among the single bond molecule id, which molecules are not carcinogenic?
toxicology
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
Question: what is the composition of element chlorine in percentage among the single bond molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.m...
what is the composition of element chlorine in percentage among the single bond molecules?
toxicology
select molecule_id, t.label from molecule as t where t.molecule_id in ('tr000', 'tr001', 'tr002')
Question: what are the labels for tr000, tr001 and tr002? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connecte...
what are the labels for tr000, tr001 and tr002?
toxicology
select t.molecule_id from molecule as t where t.label = '-'
Question: list down the molecule id for non carcinogenic molecules. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id...
list down the molecule id for non carcinogenic molecules.
toxicology
select count(t.molecule_id) from molecule as t where t.molecule_id between 'tr000' and 'tr030' and t.label = '+'
Question: calculate the total carcinogenic molecules for molecule id from tr000 to tr030. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id ...
calculate the total carcinogenic molecules for molecule id from tr000 to tr030.
toxicology
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'
Question: list down the bond type for molecules from molecule id tr000 to tr050. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul...
list down the bond type for molecules from molecule id tr000 to tr050.
toxicology
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'
Question: what are the elements for bond id tr001_10_11? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected...
what are the elements for bond id tr001_10_11?
toxicology
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'
Question: how many bond id have element iodine? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id ...
how many bond id have element iodine?
toxicology
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
Question: among the molecules with element calcium, are they mostly carcinogenic or non carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond....
among the molecules with element calcium, are they mostly carcinogenic or non carcinogenic?
toxicology
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')
Question: does bond id tr001_1_8 have both element of chlorine and carbon? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole...
does bond id tr001_1_8 have both element of chlorine and carbon?
toxicology
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 = '-'
Question: list down two molecule id of triple bond non carcinogenic molecules with element carbon. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.mol...
list down two molecule id of triple bond non carcinogenic molecules with element carbon.
toxicology
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 = '+'
Question: what is the percentage of element chlorine in carcinogenic molecules? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule...
what is the percentage of element chlorine in carcinogenic molecules?
toxicology
select distinct t.element from atom as t where t.molecule_id = 'tr001'
Question: list the toxicology elements associated with molecule tr001. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule...
list the toxicology elements associated with molecule tr001.
toxicology
select distinct t.molecule_id from bond as t where t.bond_type = '='
Question: give me the molecule id of the double bond type. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connect...
give me the molecule id of the double bond type.
toxicology
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 = '#'
Question: write down the atom ids of the first and second atoms of triple bond type molecules. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecul...
write down the atom ids of the first and second atoms of triple bond type molecules.
toxicology
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'
Question: what are the toxicology elements associated with bond id tr005_16_26? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule...
what are the toxicology elements associated with bond id tr005_16_26?
toxicology
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 = '-'
Question: how many of the single bond type molecules are non-carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole...
how many of the single bond type molecules are non-carcinogenic?
toxicology
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'
Question: what is the label for bond id tr001_10_11? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bon...
what is the label for bond id tr001_10_11?
toxicology
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 = '#'
Question: enumerate the bond id of triple bond type molecules and tell me if they are carcinogenic or not. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, ...
enumerate the bond id of triple bond type molecules and tell me if they are carcinogenic or not.
toxicology
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
Question: tally the toxicology element of the 4th atom of each molecule that was carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecul...
tally the toxicology element of the 4th atom of each molecule that was carcinogenic.
toxicology
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.la...
Question: what is the ratio of hydrogen elements in molecule id tr006? please indicate its label. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.mole...
what is the ratio of hydrogen elements in molecule id tr006? please indicate its label.
toxicology
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'
Question: identify whether the chemical compound that contains calcium is carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = ...
identify whether the chemical compound that contains calcium is carcinogenic.
toxicology
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'
Question: determine the bond type that is formed in the chemical compound containing element tellurium. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bon...
determine the bond type that is formed in the chemical compound containing element tellurium.
toxicology
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'
Question: name chemical elements that form a bond tr001_10_11. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, con...
name chemical elements that form a bond tr001_10_11.
toxicology
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
Question: among all chemical compounds identified in the database, what percent of compounds form a triple-bond. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecul...
among all chemical compounds identified in the database, what percent of compounds form a triple-bond.
toxicology
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'
Question: among all chemical compounds that contain molecule tr047, identify the percent that form a double-bond. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecu...
among all chemical compounds that contain molecule tr047, identify the percent that form a double-bond.
toxicology
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'
Question: identify whether the molecule that contains atom tr001_1 is carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mole...
identify whether the molecule that contains atom tr001_1 is carcinogenic.
toxicology
select t.label from molecule as t where t.molecule_id = 'tr151'
Question: is molecule tr151 carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id = bond...
is molecule tr151 carcinogenic?
toxicology
select distinct t.element from atom as t where t.molecule_id = 'tr151'
Question: which toxic element can be found in the molecule tr151? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, ...
which toxic element can be found in the molecule tr151?
toxicology
select count(t.molecule_id) from molecule as t where t.label = '+'
Question: how many chemical compounds in the database are identified as carcinogenic. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mo...
how many chemical compounds in the database are identified as carcinogenic.
toxicology
select t.atom_id from atom as t where t.molecule_id between 'tr010' and 'tr050' and t.element = 'c'
Question: identify the atoms belong to the molecule with id between tr010 to tr050 that contain the element carbon. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.mole...
identify the atoms belong to the molecule with id between tr010 to tr050 that contain the element carbon.
toxicology
select count(t1.atom_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+'
Question: how many atoms belong to the molecule labeled with carcinogenic compounds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mol...
how many atoms belong to the molecule labeled with carcinogenic compounds?
toxicology
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 = '='
Question: which bond ids are double-bond with carcinogenic compound? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_i...
which bond ids are double-bond with carcinogenic compound?
toxicology
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'
Question: how many atoms belong to the molecule that element is hydrogen and labeled with carcinogenic compound? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecul...
how many atoms belong to the molecule that element is hydrogen and labeled with carcinogenic compound?
toxicology
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'
Question: indicate the molecule id is belonging to the tr00_1_2 bond that has the first atom named tr00_1. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, ...
indicate the molecule id is belonging to the tr00_1_2 bond that has the first atom named tr00_1.
toxicology
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 = '-'
Question: among the atoms that contain element carbon, which one does not contain compound carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bo...
among the atoms that contain element carbon, which one does not contain compound carcinogenic?
toxicology
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 = '+'
Question: calculate the percentage of molecules containing carcinogenic compounds that element is hydrogen. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id,...
calculate the percentage of molecules containing carcinogenic compounds that element is hydrogen.
toxicology
select t.label from molecule as t where t.molecule_id = 'tr124'
Question: is molecule tr124 carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id = bond...
is molecule tr124 carcinogenic?
toxicology
select t.atom_id from atom as t where t.molecule_id = 'tr186'
Question: what atoms comprise tr186? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id = bond.bond...
what atoms comprise tr186?
toxicology
select t.bond_type from bond as t where t.bond_id = 'tr007_4_19'
Question: what is the bond type of tr007_4_19? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond_id =...
what is the bond type of tr007_4_19?
toxicology
select distinct t1.element from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id where t2.bond_id = 'tr001_2_4'
Question: name the elements that comprise the atoms of bond tr001_2_4. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule...
name the elements that comprise the atoms of bond tr001_2_4.
toxicology
select count(t1.bond_id), t2.label from bond as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.bond_type = '=' and t2.molecule_id = 'tr006' group by t2.label
Question: how many double bonds does tr006 have and is it carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecul...
how many double bonds does tr006 have and is it carcinogenic?
toxicology
select distinct t2.molecule_id, t1.element from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+'
Question: list all carcinogenic molecules and their elements. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, conn...
list all carcinogenic molecules and their elements.
toxicology
select t1.bond_id, t2.atom_id, t2.atom_id2 from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t1.bond_type = '-'
Question: name all bonds with single bond types and what atoms are connected to the molecules. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecul...
name all bonds with single bond types and what atoms are connected to the molecules.
toxicology
select distinct t1.molecule_id, t2.element from bond as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id where t1.bond_type = '#'
Question: which molecules have triple bonds and list all the elements they contain. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = mole...
which molecules have triple bonds and list all the elements they contain.
toxicology
select t2.element from connected as t1 inner join atom as t2 on t1.atom_id = t2.atom_id where t1.bond_id = 'tr000_2_3'
Question: name the atoms' elements that form bond tr000_2_3. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, conne...
name the atoms' elements that form bond tr000_2_3.
toxicology
select count(t1.bond_id) from connected as t1 inner join atom as t2 on t1.atom_id = t2.atom_id where t2.element = 'cl'
Question: how many bonds are created by bonding atoms with chlorine element? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mo...
how many bonds are created by bonding atoms with chlorine element?
toxicology
select t1.atom_id, count(distinct t2.bond_type) from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t1.molecule_id = 'tr346' group by t1.atom_id, t2.bond_type
Question: list out the atom id that belongs to the tr346 molecule and how many bond type can be created by this molecule? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecul...
list out the atom id that belongs to the tr346 molecule and how many bond type can be created by this molecule?
toxicology
select count(distinct t2.molecule_id), sum(case when t2.label = '+' then 1 else 0 end) from bond as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.bond_type = '='
Question: how many molecules have a double bond type and among these molecule, how many are labeled as carcinogenic compound? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = mol...
how many molecules have a double bond type and among these molecule, how many are labeled as carcinogenic compound?
toxicology
select count(distinct t1.molecule_id) from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t1.element <> 's' and t2.bond_type <> '='
Question: how many molecules without sulphur element is not having double bond? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule...
how many molecules without sulphur element is not having double bond?
toxicology
select distinct t2.label from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id inner join bond as t3 on t2.molecule_id = t3.molecule_id where t3.bond_id = 'tr001_2_4'
Question: what is the carcinogenic label for bond tr001_2_4? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, conne...
what is the carcinogenic label for bond tr001_2_4?
toxicology
select count(t.atom_id) from atom as t where t.molecule_id = 'tr005'
Question: how many atoms belong to molecule id tr005? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bo...
how many atoms belong to molecule id tr005?
toxicology
select count(t.bond_id) from bond as t where t.bond_type = '-'
Question: how many single bonds are there in the list? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.b...
how many single bonds are there in the list?
toxicology
select distinct t1.molecule_id from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element = 'cl' and t2.label = '+'
Question: among the molecules which contain 'cl' element, which of them are carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id ...
among the molecules which contain 'cl' element, which of them are carcinogenic?
toxicology
select distinct t1.molecule_id from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.element = 'c' and t2.label = '-'
Question: among the molecules which contain 'c' element, which of them are not carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_...
among the molecules which contain 'c' element, which of them are not carcinogenic?
toxicology
select count(case when t2.label = '+' and t1.element = 'cl' then t2.molecule_id else null end) * 100 / count(t2.molecule_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id
Question: calculate the percentage of carcinogenic molecules which contain the chlorine element. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molec...
calculate the percentage of carcinogenic molecules which contain the chlorine element.
toxicology
select distinct t1.molecule_id from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id where t2.bond_id = 'tr001_1_7'
Question: what is the molecule id of bond id tr001_1_7? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected....
what is the molecule id of bond id tr001_1_7?
toxicology
select count(distinct t1.element) from atom as t1 inner join connected as t2 on t1.atom_id = t2.atom_id where t2.bond_id = 'tr001_3_4'
Question: how many elements are contained in bond_id tr001_3_4? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, co...
how many elements are contained in bond_id tr001_3_4?
toxicology
select t1.bond_type from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t2.atom_id = 'tr000_1' and t2.atom_id2 = 'tr000_2'
Question: what is the type of the bond which is presenting the connection between two atoms tr000_1 and tr000_2? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecul...
what is the type of the bond which is presenting the connection between two atoms tr000_1 and tr000_2?
toxicology
select t1.molecule_id from bond as t1 inner join connected as t2 on t1.bond_id = t2.bond_id where t2.atom_id = 'tr000_2' and t2.atom_id2 = 'tr000_4'
Question: what is the molecule of atom id 'tr000_2' and atom id 2 'tr000_4'? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mo...
what is the molecule of atom id 'tr000_2' and atom id 2 'tr000_4'?
toxicology
select t.element from atom as t where t.atom_id = 'tr000_1'
Question: what is the element of toxicology for the atom with the id of tr000_1? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul...
what is the element of toxicology for the atom with the id of tr000_1?
toxicology
select label from molecule as t where t.molecule_id = 'tr000'
Question: is molecule tr000 is carcinogenic or not? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bond...
is molecule tr000 is carcinogenic or not?
toxicology
select cast(count(case when t.bond_type = '-' then t.bond_id else null end) as real) * 100 / count(t.bond_id) from bond t
Question: find the percentage of atoms with single bond. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected...
find the percentage of atoms with single bond.
toxicology
select count(distinct t1.molecule_id) from molecule as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id where t2.element = 'n' and t1.label = '+'
Question: how many carcinogenic molecules that consisted of nitrogen? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_...
how many carcinogenic molecules that consisted of nitrogen?
toxicology
select distinct t1.molecule_id from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t1.element = 's' and t2.bond_type = '='
Question: which molecule consisted of sulphur atom with double bond? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_i...
which molecule consisted of sulphur atom with double bond?
toxicology
select t.molecule_id from ( select t1.molecule_id, count(t2.atom_id) from molecule as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id where t1.label = '-' group by t1.molecule_id having count(t2.atom_id) > 5 ) t
Question: which non-carcinogenic molecules consisted more than 5 atoms? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecul...
which non-carcinogenic molecules consisted more than 5 atoms?
toxicology
select t1.element from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t1.molecule_id = 'tr024' and t2.bond_type = '='
Question: list all the elements with double bond, consisted in molecule tr024. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule....
list all the elements with double bond, consisted in molecule tr024.
toxicology
select t.molecule_id from ( select t2.molecule_id, count(t1.atom_id) from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t2.label = '+' group by t2.molecule_id order by count(t1.atom_id) desc limit 1 ) t
Question: which carcinogenic molecule have the highest number of atoms consisted in it? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = ...
which carcinogenic molecule have the highest number of atoms consisted in it?
toxicology
select cast(sum(case when t1.label = '+' then 1 else 0 end) as real) * 100 / count(distinct t1.molecule_id) from molecule as t1 inner join atom as t2 on t1.molecule_id = t2.molecule_id inner join bond as t3 on t1.molecule_id = t3.molecule_id where t3.bond_type = '#' and t2.element = 'h'
Question: calculate the percentage of carcinogenic molecules with triple bonded hidrogen atoms. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecu...
calculate the percentage of carcinogenic molecules with triple bonded hidrogen atoms.
toxicology
select count(t.molecule_id) from molecule as t where t.label = '+'
Question: how many of the molecules are carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, connected.bo...
how many of the molecules are carcinogenic?
toxicology
select count(distinct t.molecule_id) from bond as t where t.molecule_id between 'tr004' and 'tr010' and t.bond_type = '-'
Question: among the molecules between tr004 to tr010, how many of them has single bonds? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id =...
among the molecules between tr004 to tr010, how many of them has single bonds?
toxicology
select count(t.atom_id) from atom as t where t.molecule_id = 'tr008' and t.element = 'c'
Question: in the molecule tr008, how many carbons are present? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.molecule_id, con...
in the molecule tr008, how many carbons are present?
toxicology
select t1.element from atom as t1 inner join molecule as t2 on t1.molecule_id = t2.molecule_id where t1.atom_id = 'tr004_7' and t2.label = '-'
Question: what is the element with the atom id of tr004_7 in molecule that is not carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecu...
what is the element with the atom id of tr004_7 in molecule that is not carcinogenic?
toxicology
select count(distinct t1.molecule_id) from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t2.bond_type = '=' and t1.element = 'o'
Question: what is the total number of molecules with double bonded oxygen? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecule.mole...
what is the total number of molecules with double bonded oxygen?
toxicology
select count(distinct t1.molecule_id) from molecule as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t2.bond_type = '#' and t1.label = '-'
Question: in molecules with triple bonds, how many of them are not carcinogenic? | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_id = molecul...
in molecules with triple bonds, how many of them are not carcinogenic?
toxicology
select distinct t1.element, t2.bond_type from atom as t1 inner join bond as t2 on t1.molecule_id = t2.molecule_id where t1.molecule_id = 'tr016'
Question: list the element and bond type included in the molecule with molecule id of tr016. | Tables: atom -> atom_id, molecule_id, element. bond -> bond_id, molecule_id, bond_type. connected -> atom_id, atom_id2, bond_id. molecule -> molecule_id, label. | Joins: atom.molecule_id = molecule.molecule_id, bond.molecule_...
list the element and bond type included in the molecule with molecule id of tr016.