| | --- |
| | license: apache-2.0 |
| | --- |
| | |
| | This is dev data with execution results of https://bird-bench.github.io/ |
| |
|
| | Sample |
| |
|
| | ``` |
| | [ |
| | { |
| | "question_id": 250, |
| | "db_id": "toxicology", |
| | "question": "Of all the carcinogenic molecules, which one has the most double bonds?", |
| | "evidence": "label = '+' mean molecules are carcinogenic; double bond refers to bond_type = ' = ';", |
| | "SQL": "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", |
| | "difficulty": "moderate", |
| | "execution_result": { |
| | "status": "success", |
| | "error_message": null, |
| | "execution_time": 0.012759923934936523, |
| | "result": [ |
| | { |
| | "molecule_id": "TR430" |
| | } |
| | ] |
| | } |
| | }, |
| | { |
| | "question_id": 251, |
| | "db_id": "toxicology", |
| | "question": "What is the least common element of all carcinogenic molecules?", |
| | "evidence": "label = '+' mean molecules are carcinogenic", |
| | "SQL": "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", |
| | "difficulty": "moderate", |
| | "execution_result": { |
| | "status": "success", |
| | "error_message": null, |
| | "execution_time": 0.006305217742919922, |
| | "result": [ |
| | { |
| | "element": "cu" |
| | } |
| | ] |
| | } |
| | }, |
| | { |
| | "question_id": 252, |
| | "db_id": "toxicology", |
| | "question": "What are the atoms that can bond with the atom that has the element lead?", |
| | "evidence": "atom that has the element lead refers to atom_id where element = 'pb'", |
| | "SQL": "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'", |
| | "difficulty": "simple", |
| | "execution_result": { |
| | "status": "success", |
| | "error_message": null, |
| | "execution_time": 0.0013871192932128906, |
| | "result": [ |
| | { |
| | "atom_id": "TR151_14", |
| | "atom_id2": "TR151_15" |
| | }, |
| | { |
| | "atom_id": "TR151_14", |
| | "atom_id2": "TR151_16" |
| | }, |
| | { |
| | "atom_id": "TR151_14", |
| | "atom_id2": "TR151_17" |
| | }, |
| | { |
| | "atom_id": "TR151_14", |
| | "atom_id2": "TR151_18" |
| | } |
| | ] |
| | } |
| | }, |
| | ... |
| | ] |
| | ``` |