QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    Which molecule consisted of Sulphur atom with double bond? sulphur refers to element - 's'; double bond refers to bond_type = ' = ';

    【Evidence】
    sulphur refers to element - 's'; double bond refers to bond_type = ' = ';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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 = '='
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    Which non-carcinogenic molecules consisted more than 5 atoms? label = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5

    【Evidence】
    label = '-' means molecules are non-carcinogenic; molecules consisted more than 5 atoms refers to COUNT(molecule_id) > 5

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    List all the elements with double bond, consisted in molecule TR024. double bond refers to bond_type = '='; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium

    【Evidence】
    double bond refers to bond_type = '='; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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 = '='
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    Which carcinogenic molecule have the highest number of atoms consisted in it? label = '+' mean molecules are carcinogenic; molecule that have the highest number of atoms consisted in in refers to MAX(COUNT(atom.molecule_id))

    【Evidence】
    label = '+' mean molecules are carcinogenic; molecule that have the highest number of atoms consisted in in refers to MAX(COUNT(atom.molecule_id))

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    Calculate the percentage of carcinogenic molecules with triple bonded Hidrogen atoms. hydrogen refers to element = 'h'; label = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) * 100.0 where element = 'h' AND bond_type = '#';

    【Evidence】
    hydrogen refers to element = 'h'; label = '+' mean molecules are carcinogenic; triple bond refers to bond_type = '#'; percentage = DIVIDE(SUM(label = '+'), COUNT(molecule_id)) * 100.0 where element = 'h' AND bond_type = '#';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    How many of the molecules are carcinogenic? label = '+' mean molecules are carcinogenic;

    【Evidence】
    label = '+' mean molecules are carcinogenic;

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    Among the molecules between TR004 to TR010, how many of them has single bonds? single bond refers to bond_type = '-'; molecules between TR004 to TR010 refers molecule_id BETWEEN 'TR004' and 'TR010';

    【Evidence】
    single bond refers to bond_type = '-'; molecules between TR004 to TR010 refers molecule_id BETWEEN 'TR004' and 'TR010';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(DISTINCT T.molecule_id) FROM bond AS T WHERE T.molecule_id BETWEEN 'TR004' AND 'TR010' AND T.bond_type = '-'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    In the molecule TR008, how many carbons are present? carbon refers to element = 'c'

    【Evidence】
    carbon refers to element = 'c'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.molecule_id = 'TR008' AND T.element = 'c'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    What is the element with the atom ID of TR004_7 in molecule that is not carcinogenic? label = '-' means molecules are non-carcinogenic; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium

    【Evidence】
    label = '-' means molecules are non-carcinogenic; element = 'cl' means Chlorine; element = 'c' means Carbon; element = 'h' means Hydrogen; element = 'o' means Oxygen, element = 's' means Sulfur; element = 'n' means Nitrogen, element = 'p' means Phosphorus, element = 'na' means Sodium, element = 'br' means Bromine, element = 'f' means Fluorine; element = 'i' means Iodine; element = 'sn' means Tin; element = 'pb' means Lead; element = 'te' means Tellurium; element = 'ca' means Calcium

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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 = '-'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    What is the total number of molecules with double bonded oxygen? oxygen refers to element = 'o'; double bond refers to bond_type = ' = ';

    【Evidence】
    oxygen refers to element = 'o'; double bond refers to bond_type = ' = ';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    in molecules with triple bonds, how many of them are not carcinogenic? triple bond refers to bond_type = '#'; label = '-' means molecules are non-carcinogenic

    【Evidence】
    triple bond refers to bond_type = '#'; label = '-' means molecules are non-carcinogenic

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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 = '-'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    List the element and bond type included in the molecule with molecule ID of TR002. TR002 is the molecule id

    【Evidence】
    TR002 is the molecule id

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: 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 = 'TR002'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    What is the atom ID of double bonded carbon in TR012 molecule? carbon refers to element = 'c'; double bond refers to bond_type = ' = ';

    【Evidence】
    carbon refers to element = 'c'; double bond refers to bond_type = ' = ';

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T2.molecule_id = 'TR012' AND T3.bond_type = '=' AND T1.element = 'c'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 toxicology
【Schema】
# Table: atom
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(element:TEXT, Examples: [cl, c, h])
]
# Table: molecule
[
(molecule_id:TEXT, Primary Key, Examples: [TR000, TR001, TR002]),
(label:TEXT, Examples: [+, -])
]
# Table: bond
[
(bond_id:TEXT, Primary Key, Examples: [TR000_1_2, TR000_2_3, TR000_2_4]),
(molecule_id:TEXT, Examples: [TR000, TR001, TR002]),
(bond_type:TEXT, Examples: [-, =, #])
]
# Table: connected
[
(atom_id:TEXT, Primary Key, Examples: [TR000_1, TR000_2, TR000_3]),
(atom_id2:TEXT, Primary Key, Examples: [TR000_2, TR000_1, TR000_3]),
(bond_id:TEXT, Examples: [TR000_1_2, TR000_2_3, TR000_2_4])
]
【Foreign keys】
atom.molecule_id=molecule.molecule_id
bond.molecule_id=molecule.molecule_id
connected.bond_id=bond.bond_id
connected.atom_id2=atom.atom_id
connected.atom_id=atom.atom_id

    【Question】
    List the atom ID of the carcinogenic molecule that contains oxygen? label = '+' mean molecules are carcinogenic; oxygen refers to element = 'o'

    【Evidence】
    label = '+' mean molecules are carcinogenic; oxygen refers to element = 'o'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'o' AND T2.label = '+'