dataset_name stringclasses 1
value | split stringclasses 1
value | prompt_raw stringlengths 2.07k 8.21k | messages listlengths 2 2 | question stringlengths 23 286 | sample_id int64 0 1.53k | db_id stringclasses 11
values | groundtruth_sqls listlengths 1 1 |
|---|---|---|---|---|---|---|---|
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Find the triple-bonded molecules which are carcinogenic. | 200 | toxicology | [
"SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '#' AND T2.label = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the percentage of carbon in double-bond molecules? | 201 | toxicology | [
"SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element = 'c' THEN T1.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T1.atom_id) FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.bond_type = '='"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many triple type bonds are there? | 202 | toxicology | [
"SELECT COUNT(T.bond_id) FROM bond AS T WHERE T.bond_type = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | In how many atoms is there no bromine? | 203 | toxicology | [
"SELECT COUNT(DISTINCT T.atom_id) FROM atom AS T WHERE T.element <> 'br'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Of the first 100 molecules in number order, how many are carcinogenic? | 204 | toxicology | [
"SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE molecule_id BETWEEN 'TR000' AND 'TR099' AND T.label = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify by their ID the molecules in which there is carbon. | 205 | toxicology | [
"SELECT T.molecule_id FROM atom AS T WHERE T.element = 'c'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What elements are in the TR004_8_9 bond atoms? | 206 | 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 = 'TR004_8_9'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What elements are in a double type bond? | 207 | toxicology | [
"SELECT DISTINCT T1.element FROM atom AS T1 INNER JOIN bond AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN connected AS T3 ON T1.atom_id = T3.atom_id WHERE T2.bond_type = '='"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which type of label is the most numerous in atoms with hydrogen? | 208 | toxicology | [
"SELECT T.label FROM ( SELECT T2.label, COUNT(T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element = 'h' GROUP BY T2.label ORDER BY COUNT(T2.molecule_id) DESC LIMIT 1 ) t"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Chlorine is in what type of bond? | 209 | toxicology | [
"SELECT DISTINCT T1.bond_type FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id INNER JOIN atom AS T3 ON T2.atom_id = T3.atom_id WHERE T3.element = 'cl'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What atoms are connected in single type bonds? | 210 | 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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Indicate which atoms are connected in non-carcinogenic type molecules. | 211 | toxicology | [
"SELECT DISTINCT T1.atom_id FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN connected AS T3 ON T1.atom_id = T3.atom_id WHERE T2.label = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which element is the least numerous in non-carcinogenic molecules? | 212 | toxicology | [
"SELECT T.element FROM (SELECT T1.element, COUNT(DISTINCT T1.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '-' GROUP BY T1.element ORDER BY COUNT(DISTINCT T1.molecule_id) ASC LIMIT 1) t"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR004_20", "TR004_8"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample val... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What type of bond is there between the atoms TR004_8 and TR004_20? | 213 | 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 = 'TR004_8' AND T2.atom_id2 = 'TR004_20' OR T2.atom_id2 = 'TR004_8' AND T2.atom_id = 'TR004_20'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What type of label is not on molecules with atoms with tin? | 214 | toxicology | [
"SELECT DISTINCT T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.element != 'sn'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many atoms with iodine and with sulfur type elements are there in single bond molecules? | 215 | toxicology | [
"SELECT COUNT(DISTINCT CASE WHEN T1.element = 'i' THEN T1.atom_id ELSE NULL END) AS iodine_nums , COUNT(DISTINCT CASE WHEN T1.element = 's' THEN T1.atom_id ELSE NULL END) AS sulfur_nums FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id INNER JOIN bond AS T3 ON T2.bond_id = T3.bond_id WHERE T3.bo... |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify all connected atoms with a triple bond. | 216 | 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 = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify all the atoms that are connected to the atoms of the TR181 molecule. | 217 | toxicology | [
"SELECT T2.atom_id, T2.atom_id2 FROM atom AS T1 INNER JOIN connected AS T2 ON T2.atom_id = T1.atom_id WHERE T1.molecule_id = 'TR181'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What percentage of carcinogenic-type molecules does not contain fluorine? | 218 | toxicology | [
"SELECT CAST(COUNT(DISTINCT CASE WHEN T1.element <> 'f' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the percentage of carcinogenic molecules in triple type bonds? | 219 | toxicology | [
"SELECT CAST(COUNT(DISTINCT CASE WHEN T2.label = '+' THEN T2.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id INNER JOIN bond AS T3 ON T2.molecule_id = T3.molecule_id WHERE T3.bond_type = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list top three elements of the toxicology of the molecule TR000 in alphabetical order. | 220 | toxicology | [
"SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR000' ORDER BY T.element LIMIT 3"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the atoms that are bonded in the molecule TR001 with the bond ID of TR001_2_6? | 221 | toxicology | [
"SELECT SUBSTR(T.bond_id, 1, 7) AS atom_id1 , T.molecule_id || SUBSTR(T.bond_id, 8, 2) AS atom_id2 FROM bond AS T WHERE T.molecule_id = 'TR001' AND T.bond_id = 'TR001_2_6'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the difference between the number of molecules that are carcinogenic and those that are not? | 222 | toxicology | [
"SELECT COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) - COUNT(CASE WHEN T.label = '-' THEN T.molecule_id ELSE NULL END) AS diff_car_notcar FROM molecule t"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the atom IDs of the bond TR000_2_5? | 223 | toxicology | [
"SELECT T.atom_id FROM connected AS T WHERE T.bond_id = 'TR000_2_5'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_2"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the bond IDs that have the same atom ID 2 of TR000_2? | 224 | toxicology | [
"SELECT T.bond_id FROM connected AS T WHERE T.atom_id2 = 'TR000_2'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list top five molecules that have double bonds in alphabetical order. | 225 | toxicology | [
"SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '=' ORDER BY T.molecule_id LIMIT 5"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the percentage of double bonds in the molecule TR008? Please provide your answer as a percentage with five decimal places. | 226 | toxicology | [
"SELECT ROUND(CAST(COUNT(CASE WHEN T.bond_type = '=' THEN T.bond_id ELSE NULL END) AS REAL) * 100 / COUNT(T.bond_id),5) FROM bond AS T WHERE T.molecule_id = 'TR008'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the percentage of molecules that are carcinogenic? Please provide your answer as a percentage with three decimal places. | 227 | toxicology | [
"SELECT ROUND(CAST(COUNT(CASE WHEN T.label = '+' THEN T.molecule_id ELSE NULL END) AS REAL) * 100 / COUNT(T.molecule_id),3) FROM molecule t"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How much of the hydrogen in molecule TR206 is accounted for? Please provide your answer as a percentage with four decimal places. | 228 | toxicology | [
"SELECT ROUND(CAST(COUNT(CASE WHEN T.element = 'h' THEN T.atom_id ELSE NULL END) AS REAL) * 100 / COUNT(T.atom_id),4) FROM atom AS T WHERE T.molecule_id = 'TR206'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the type of bond that molecule TR000 has when involved in any bonds? | 229 | toxicology | [
"SELECT DISTINCT T.bond_type FROM bond AS T WHERE T.molecule_id = 'TR000'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the elements of the toxicology and label of molecule TR060? | 230 | toxicology | [
"SELECT DISTINCT T1.element, T2.label FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.molecule_id = 'TR060'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which bond type accounted for the majority of the bonds found in molecule TR010 and state whether or not this molecule is carcinogenic? | 231 | toxicology | [
"SELECT T.bond_type FROM ( SELECT T1.bond_type, COUNT(T1.molecule_id) FROM bond AS T1 WHERE T1.molecule_id = 'TR010' GROUP BY T1.bond_type ORDER BY COUNT(T1.molecule_id) DESC LIMIT 1 ) AS T"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list top three molecules that have single bonds between two atoms and are not carcinogenic in alphabetical order. | 232 | toxicology | [
"SELECT DISTINCT T2.molecule_id FROM bond AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.bond_type = '-' AND T2.label = '-' ORDER BY T2.molecule_id LIMIT 3"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Please list top two bonds that happened with the molecule TR006 in alphabetical order. | 233 | toxicology | [
"SELECT DISTINCT T2.bond_id FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T1.molecule_id = 'TR006' ORDER BY T2.bond_id LIMIT 2"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many bonds which involved atom 12 does molecule TR009 have? | 234 | toxicology | [
"SELECT COUNT(T2.bond_id) FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T1.molecule_id = 'TR009' AND T2.atom_id = T1.molecule_id || '_1' AND T2.atom_id2 = T1.molecule_id || '_2'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many molecules are carcinogenic and have the bromine element? | 235 | toxicology | [
"SELECT COUNT(DISTINCT T2.molecule_id) FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T2.label = '+' AND T1.element = 'br'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the bond type and the atoms of the bond ID of TR001_6_9? | 236 | toxicology | [
"SELECT T1.bond_type, T2.atom_id, T2.atom_id2 FROM bond AS T1 INNER JOIN connected AS T2 ON T1.bond_id = T2.bond_id WHERE T2.bond_id = 'TR001_6_9'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR001_10"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR001... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which molecule does the atom TR001_10 belong to? Please state whether this molecule is carcinogenic or not. | 237 | toxicology | [
"SELECT T2.molecule_id , IIF(T2.label = '+', 'YES', 'NO') AS flag_carcinogenic FROM atom AS T1 INNER JOIN molecule AS T2 ON T1.molecule_id = T2.molecule_id WHERE T1.atom_id = 'TR001_10'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many molecules have a triple bond type? | 238 | toxicology | [
"SELECT COUNT(DISTINCT T.molecule_id) FROM bond AS T WHERE T.bond_type = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many connections does the atom 19 have? | 239 | toxicology | [
"SELECT COUNT(T.bond_id) FROM connected AS T WHERE SUBSTR(T.atom_id, -2) = '19'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List all the elements of the toxicology of the molecule "TR004". | 240 | toxicology | [
"SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR004'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many of the molecules are not carcinogenic? | 241 | toxicology | [
"SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among all the atoms from 21 to 25, list all the molecules that are carcinogenic. | 242 | 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 = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the bonds that have phosphorus and nitrogen as their atom elements? | 243 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Is the molecule with the most double bonds carcinogenic? | 244 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the average number of bonds the atoms with the element iodine have? | 245 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List the bond type and the bond ID of the atom 45. | 246 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List all the elements of atoms that can not bond with any other atoms. | 247 | 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 )"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the atoms of the triple bond with the molecule "TR041"? | 248 | 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 = 'TR041'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the elements of the atoms of TR144_8_19? | 249 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Of all the carcinogenic molecules, which one has the most double bonds? | 250 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the least common element of all carcinogenic molecules? | 251 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the atoms that can bond with the atom that has the element lead? | 252 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List the elements of all the triple bonds. | 253 | 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 = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What percentage of bonds have the most common combination of atoms' elements? | 254 | 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 )"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What proportion of single bonds are carcinogenic? Please provide your answer as a percentage with five decimal places. | 255 | toxicology | [
"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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Calculate the total atoms consisting of the element carbon and hydrogen. | 256 | toxicology | [
"SELECT COUNT(T.atom_id) FROM atom AS T WHERE T.element = 'c' OR T.element = 'h'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List down atom id2 for atoms with element sulfur. | 257 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the bond type for atoms with element Tin? | 258 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many elements are there for single bond molecules? | 259 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Calculate the total atoms with triple-bond molecules containing the element phosphorus or bromine. | 260 | 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')"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Write down bond id for molecules that are carcinogenic. | 261 | 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 = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the single bond molecule id, which molecules are not carcinogenic? | 262 | 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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the composition of element chlorine in percentage among the single bond molecules? | 263 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the labels for TR000, TR001 and TR002? | 264 | toxicology | [
"SELECT molecule_id, T.label FROM molecule AS T WHERE T.molecule_id IN ('TR000', 'TR001', 'TR002')"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List down the molecule id for non carcinogenic molecules. | 265 | toxicology | [
"SELECT T.molecule_id FROM molecule AS T WHERE T.label = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Calculate the total carcinogenic molecules for molecule id from TR000 to TR030. | 266 | toxicology | [
"SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.molecule_id BETWEEN 'TR000' AND 'TR030' AND T.label = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List down the bond type for molecules from molecule id TR000 to TR050. | 267 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the elements for bond id TR001_10_11? | 268 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many bond id have element iodine? | 269 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the molecules with element Calcium, are they mostly carcinogenic or non carcinogenic? | 270 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Does bond id TR001_1_8 have both element of chlorine and carbon? | 271 | 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')"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List down two molecule id of triple bond non carcinogenic molecules with element carbon. | 272 | 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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the percentage of element chlorine in carcinogenic molecules? | 273 | 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 = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | List the toxicology elements associated with molecule TR001. | 274 | toxicology | [
"SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR001'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Give me the molecule ID of the double bond type. | 275 | toxicology | [
"SELECT DISTINCT T.molecule_id FROM bond AS T WHERE T.bond_type = '='"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Write down the atom IDs of the first and second atoms of triple bond type molecules. | 276 | 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 = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What are the toxicology elements associated with bond ID TR000_1_2? | 277 | toxicology | [
"SELECT T1.element FROM atom AS T1 INNER JOIN connected AS T2 ON T1.atom_id = T2.atom_id WHERE T2.bond_id = 'TR000_1_2'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many of the single bond type molecules are non-carcinogenic? | 278 | 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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the label for bond ID TR001_10_11? | 279 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Enumerate the bond ID of triple bond type molecules and tell me if they are carcinogenic or not. | 280 | 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 = '#'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Tally the toxicology element of the 4th atom of each molecule that was carcinogenic. | 281 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | What is the ratio of Hydrogen elements in molecule ID TR006? List the ratio with its label. | 282 | toxicology | [
"WITH SubQuery AS (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') SELECT CAST(COUNT(CASE WHEN element = 'h' THEN atom_id ELSE NULL END) AS REAL) / (CASE WHEN COUNT(atom_id) = 0 THEN NULL EL... |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify whether the chemical compound that contains Calcium is carcinogenic. | 283 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Determine the bond type that is formed in the chemical compound containing element Carbon. | 284 | 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 = 'c'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Name chemical elements that form a bond TR001_10_11. | 285 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among all chemical compounds identified in the database, what percent of compounds form a triple-bond. | 286 | 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among all chemical compounds that contain molecule TR047, identify the percent that form a double-bond. | 287 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR001_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR001_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify whether the molecule that contains atom TR001_1 is carcinogenic. | 288 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Is molecule TR151 carcinogenic? | 289 | toxicology | [
"SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR151'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which toxic element can be found in the molecule TR151? | 290 | toxicology | [
"SELECT DISTINCT T.element FROM atom AS T WHERE T.molecule_id = 'TR151'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many chemical compounds in the database are identified as carcinogenic. | 291 | toxicology | [
"SELECT COUNT(T.molecule_id) FROM molecule AS T WHERE T.label = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Identify the atoms belong to the molecule with ID between TR010 to TR050 that contain the element carbon. | 292 | toxicology | [
"SELECT T.atom_id FROM atom AS T WHERE T.molecule_id BETWEEN 'TR010' AND 'TR050' AND T.element = 'c'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many atoms belong to the molecule labeled with carcinogenic compounds? | 293 | 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 = '+'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Which bond ids are double-bond with carcinogenic compound? | 294 | 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 = '='"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | How many atoms belong to the molecule that element is hydrogen and labeled with carcinogenic compound? | 295 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Indicate the molecule id is belonging to the TR000_1_2 bond that has the first atom named TR000_1. | 296 | 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'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Among the atoms that contain element carbon, which one does not contain compound carcinogenic? | 297 | 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 = '-'"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Calculate the percentage of molecules containing carcinogenic compounds that element is hydrogen. | 298 | toxicology | [
"SELECT CAST(COUNT(CASE WHEN T1.element = 'h' AND T2.label = '+' 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"
] |
bird | dev | Database Schema:
Table connected: This table records the connections between pairs of atoms by specifying their atom IDs and the corresponding bond ID linking them.
connected.atom_id: TEXT PRIMARY KEY - atom id
Sample values: "TR000_1"
connected.atom_id2: TEXT PRIMARY KEY - atom id 2
Sample values: "TR000_... | [
{
"content": "\nYou are a meticulous SQL expert. Generate a single, correct SQL query for the user question and the provided database schema.\nFollow this exact response format:\n\nRules:\n- Output exactly one SQL statement.\n- The SQL must be executable on SQLite.\n- Do not include any explanatory text outside... | Is molecule TR124 carcinogenic? | 299 | toxicology | [
"SELECT T.label FROM molecule AS T WHERE T.molecule_id = 'TR124'"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.