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】
    What proportion of single bonds are carcinogenic? Please provide your answer as a percentage with five decimal places. single bond refers to bond_type = '-'; label = '+' mean molecules are carcinogenic; proportion = DIVIDE(SUM(label = '+') * 100, COUNT(bond_id)) where bond_type = '-'

    【Evidence】
    single bond refers to bond_type = '-'; label = '+' mean molecules are carcinogenic; proportion = DIVIDE(SUM(label = '+') * 100, COUNT(bond_id)) where 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 ROUND(CAST(COUNT(CASE WHEN T2.label = '+' THEN T1.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T1.bond_id),5) FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.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】
    Calculate the total atoms consisting of the element carbon and hydrogen. consisting of element carbon and hydrogen refers to element in('c', 'h')

    【Evidence】
    consisting of element carbon and hydrogen refers to element in('c', 'h')

    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.element = 'c' OR T.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】
    List down atom id2 for atoms with element sulfur. element sulfur refers to element = 's'

    【Evidence】
    element sulfur refers to element = 's'

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

SQL: 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'
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 are the bond type for atoms with element Tin? element Tin refers to element = 'sn'; double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple bond refers to bond_type = '#'

    【Evidence】
    element Tin refers to element = 'sn'; double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple 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 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'
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 elements are there for single bond molecules? single bond refers to bond_type = '-';

    【Evidence】
    single 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 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
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 total atoms with triple-bond molecules containing the element phosphorus or bromine. triple bond refers to bond_type = '#'; phosphorus refers to element = 'p'; bromine refers to element = 'br'

    【Evidence】
    triple bond refers to bond_type = '#'; phosphorus refers to element = 'p'; bromine refers to element = 'br'

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

SQL: 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')
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】
    Write down bond id for molecules that 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 DISTINCT T1.bond_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE 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】
    Among the single bond molecule id, which molecules are not carcinogenic? label = '-' means molecules are non-carcinogenic; single bond refers to bond_type = '-';

    【Evidence】
    label = '-' means molecules are non-carcinogenic; single 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 bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' AND T1.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】
    What is the composition of element chlorine in percentage among the single bond molecules? element chlorine refers to element = 'cl'; single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(element = 'cl'), COUNT(atom_id)) as percent where bond_type = '-'

    【Evidence】
    element chlorine refers to element = 'cl'; single bond refers to bond_type = '-'; percentage = DIVIDE(SUM(element = 'cl'), COUNT(atom_id)) as percent where 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(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
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 are the labels for TR000, TR001 and TR002? TR000, TR001 and TR002 are molecule id; label = '+' mean molecules are carcinogenic; label = '-' means molecules are non-carcinogenic

    【Evidence】
    TR000, TR001 and TR002 are molecule id; label = '+' mean molecules are carcinogenic; 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 molecule_id, T.label FROM molecule AS T WHERE T.molecule_id IN ('TR000', 'TR001', '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】
    List down the molecule id for non carcinogenic molecules. label = '-' means molecules are non-carcinogenic

    【Evidence】
    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 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】
    Calculate the total carcinogenic molecules for molecule id from TR000 to TR030. 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.molecule_id BETWEEN 'TR000' AND 'TR030' AND 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】
    List down the bond type for molecules from molecule id TR000 to TR050. double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple bond refers to bond_type = '#';

    【Evidence】
    double bond refers to bond_type = ' = '; single bond refers to bond_type = '-'; triple 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 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'
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 are the elements for bond id TR001_10_11? TR001_10_11 is the bond id;

    【Evidence】
    TR001_10_11 is the bond id;

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

SQL: 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'
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 bond id have element iodine? iodine refers to element = 'i'

    【Evidence】
    iodine refers to element = 'i'

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

SQL: 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'