Download this file

1001 lines (1000 with data), 832.8 kB

{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 18, 2, 2060]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2060", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", "<", "\"2060\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2060\"", "question_refine": "count the number of patients whose year of birth is less than 2060?", "key": "8579496fc9a93fcc121b47dfd03cd9a3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "53190"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "53190", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"53190\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"53190\"", "question_refine": "what is the number of patients whose diagnoses icd9 code is 53190?", "key": "8ef884f5ab354b39fa29558e7dbe5606"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "9951"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "9951", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"9951\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"9951\"", "question_refine": "what is the number of patients whose diagnoses icd9 code is 9951?", "key": "a5fd6085c174de907250cf4840601a22"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Crnry athrscl natve vssl"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "crnry", "athrscl", "natve", "vssl", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"crnry", "athrscl", "natve", "vssl\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Crnry athrscl natve vssl\"", "question_refine": "provide the number of patients whose diagnoses short title is crnry athrscl natve vssl?", "key": "a030ada88d94f5f9ef48362a97aa413d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Tobacco use disorder"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "tobacco", "use", "disorder", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"tobacco", "use", "disorder\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Tobacco use disorder\"", "question_refine": "what is the number of patients whose diagnoses short title is tobacco use disorder?", "key": "a56ed1d77f9cf8150b6a9151dabac4bf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Retain plastic fragments"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "retain", "plastic", "fragments", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"retain", "plastic", "fragments\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Retain plastic fragments\"", "question_refine": "what is the number of patients whose diagnoses short title is retain plastic fragments?", "key": "80d30178f68e2492cc13d95f53b2ffaa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Chordae tendinae rupture"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "chordae", "tendinae", "rupture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"chordae", "tendinae", "rupture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Chordae tendinae rupture\"", "question_refine": "how many patients whose diagnoses short title is chordae tendinae rupture?", "key": "80493e9bb6cabefb1d4a01cb9851ea70"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Hemorrhage complicating a procedure"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "hemorrhage", "complicating", "a", "procedure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"hemorrhage", "complicating", "a", "procedure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Hemorrhage complicating a procedure\"", "question_refine": "count the number of patients whose diagnoses long title is hemorrhage complicating a procedure?", "key": "0b323ac6dda39e3588c51d5acb16b4fc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Mitral valve disorders"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "mitral", "valve", "disorders", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"mitral", "valve", "disorders\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Mitral valve disorders\"", "question_refine": "what is the number of patients whose diagnoses long title is mitral valve disorders?", "key": "bb1f244e6a3ef486f168b21b2c86e93d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 5771]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "icd9", "code", "is", "5771", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"5771\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"5771\"", "question_refine": "how many patients whose procedure icd9 code is 5771?", "key": "ac68bab7e7f4cd79ac543b18d76d24d3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 8848]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "8848", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"8848\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"8848\"", "question_refine": "provide the number of patients whose procedure icd9 code is 8848?", "key": "0356aee9e4219b42d469d4adb3bf0729"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Radiotherapeut proc NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "short", "title", "is", "radiotherapeut", "proc", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"radiotherapeut", "proc", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Radiotherapeut proc NEC\"", "question_refine": "how many patients whose procedure short title is radiotherapeut proc nec?", "key": "0a61c544738a373b8324d8335031a7c6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "1 int mam-cor art bypass"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "short", "title", "is", "1", "int", "mam", "-", "cor", "art", "bypass", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"1", "int", "mam-cor", "art", "bypass\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"1 int mam-cor art bypass\"", "question_refine": "count the number of patients whose procedure short title is 1 int mam-cor art bypass?", "key": "adce510d770aef3a1b9e9014e766798c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Zyrtec"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "name", "is", "zyrtec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"zyrtec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Zyrtec\"", "question_refine": "how many patients whose drug name is zyrtec?", "key": "bb120bab7f84d17e1af739be0525fd30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "DiphenhydrAMINE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "drug", "name", "is", "diphenhydramine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"diphenhydramine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"DiphenhydrAMINE\"", "question_refine": "count the number of patients whose drug name is diphenhydramine?", "key": "9599d62908a1ba42d4b04b1abcdbe094"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Oxycodone SR (OxyconTIN)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "name", "is", "oxycodone", "sr", "(", "oxycontin", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"oxycodone", "sr", "(oxycontin)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Oxycodone SR (OxyconTIN)\"", "question_refine": "how many patients whose drug name is oxycodone sr (oxycontin)?", "key": "a923f3ce780d550018dd0df1f1e55570"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Syringe (Neonatal)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "syringe", "(", "neonatal", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"syringe", "(neonatal)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Syringe (Neonatal)\"", "question_refine": "give me the number of patients whose drug name is syringe (neonatal)?", "key": "ba1d361e366b1ec723817cb2a1011859"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Bethanechol"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "name", "is", "bethanechol", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"bethanechol\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Bethanechol\"", "question_refine": "how many patients whose drug name is bethanechol?", "key": "9057aad89e8f66541aadbb45ad8f4747"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Caspofungin"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "caspofungin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"caspofungin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Caspofungin\"", "question_refine": "give me the number of patients whose drug name is caspofungin?", "key": "04e471a143d212d6e201d787eea68d7d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "ERGO400T"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "ergo400", "t", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"ergo400t\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ERGO400T\"", "question_refine": "give me the number of patients whose drug code is ergo400t?", "key": "08e84aa74e5e3adb7969241939f3af64"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "HEPA10SYR"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "hepa10syr", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"hepa10syr\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"HEPA10SYR\"", "question_refine": "provide the number of patients whose drug code is hepa10syr?", "key": "8c6bcade1f9fdf7786a7a64151da5b73"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50817]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50817", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"50817\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50817\"", "question_refine": "give me the number of patients whose item id is 50817?", "key": "0eae72d2c42207e67c86012d0be36650"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50953]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50953", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"50953\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50953\"", "question_refine": "give me the number of patients whose item id is 50953?", "key": "93afecdf36b6ce7b81f6d82625a068fb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 18, 2, 2064]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "year", "of", "birth", "is", "less", "than", "2064", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"dob_year\"", "<", "\"2064\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2064\"", "question_refine": "give me the number of patients whose marital status is married and year of birth is less than 2064?", "key": "0bc7d1325aa939738ec24177f53a0fd4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 19, 4, 2165.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2165", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"dod_year\"", "<=", "\"2165.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2165.0\"", "question_refine": "count the number of patients whose marital status is married and year of death is less than or equal to 2165?", "key": "103c53116811183189bbac6240b1c38e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 4, 0, "Other convulsions"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "married", "and", "diagnoses", "long", "title", "is", "other", "convulsions", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "diagnoses.\"long_title\"", "=", "\"other", "convulsions\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DIAGNOSES.\"LONG_TITLE\" = \"Other convulsions\"", "question_refine": "how many patients whose marital status is married and diagnoses long title is other convulsions?", "key": "87f0df33656ad30a1df51ab8f9d3d7b4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "SINGLE"], [1, 4, 0, "Portal hypertension"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "diagnoses", "long", "title", "is", "portal", "hypertension", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "diagnoses.\"long_title\"", "=", "\"portal", "hypertension\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DIAGNOSES.\"LONG_TITLE\" = \"Portal hypertension\"", "question_refine": "provide the number of patients whose marital status is single and diagnoses long title is portal hypertension?", "key": "0149a04bfc4bbf58198b7cc5bd248ad1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 3, 0, "Radiotherapeut proc NEC"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "short", "title", "is", "radiotherapeut", "proc", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "procedures.\"short_title\"", "=", "\"radiotherapeut", "proc", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND PROCEDURES.\"SHORT_TITLE\" = \"Radiotherapeut proc NEC\"", "question_refine": "give me the number of patients whose marital status is married and procedure short title is radiotherapeut proc nec?", "key": "acc18041b791fa3f2145584de2f52fa2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 3, 0, "Ins drug-elut coronry st"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "short", "title", "is", "ins", "drug", "-", "elut", "coronry", "st", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "procedures.\"short_title\"", "=", "\"ins", "drug-elut", "coronry", "st\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND PROCEDURES.\"SHORT_TITLE\" = \"Ins drug-elut coronry st\"", "question_refine": "how many patients whose marital status is married and procedure short title is ins drug-elut coronry st?", "key": "0ba1f09761ef0b9798676d7a93899e8b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 18, 2, 2197]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "year", "of", "birth", "is", "less", "than", "2197", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"dob_year\"", "<", "\"2197\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2197\"", "question_refine": "count the number of patients whose gender is f and year of birth is less than 2197?", "key": "079fc93fe997ed5c22fbe560d68ebb31"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 2, 0, "25002"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "icd9", "code", "is", "25002", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "diagnoses.\"icd9_code\"", "=", "\"25002\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DIAGNOSES.\"ICD9_CODE\" = \"25002\"", "question_refine": "what is the number of patients whose gender is m and diagnoses icd9 code is 25002?", "key": "09bcb63460706eb5e0799aa702c1c7e3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Bacteremia"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "bacteremia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"short_title\"", "=", "\"bacteremia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Bacteremia\"", "question_refine": "how many patients whose gender is f and diagnoses short title is bacteremia?", "key": "107ad04abc71c4c4fe456c0df5415253"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Lap surg convert to open"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "lap", "surg", "convert", "to", "open", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"short_title\"", "=", "\"lap", "surg", "convert", "to", "open\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Lap surg convert to open\"", "question_refine": "how many patients whose gender is f and diagnoses short title is lap surg convert to open?", "key": "a5cc6a0d4db1e239abdee050cabc3798"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 4, 0, "Constipation, unspecified"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "long", "title", "is", "constipation", ",", "unspecified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"long_title\"", "=", "\"constipation", "unspecified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"LONG_TITLE\" = \"Constipation, unspecified\"", "question_refine": "provide the number of patients whose gender is f and diagnoses long title is constipation, unspecified?", "key": "83ec356d7434ad2b1a3ff520127d3ce8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 2, 0, 3727]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "icd9", "code", "is", "3727", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "procedures.\"icd9_code\"", "=", "\"3727\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PROCEDURES.\"ICD9_CODE\" = \"3727\"", "question_refine": "what is the number of patients whose gender is f and procedure icd9 code is 3727?", "key": "a95ae3ec84a4478fe2ba16078b12904a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 3, 0, "Abdomen artery incision"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "short", "title", "is", "abdomen", "artery", "incision", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "procedures.\"short_title\"", "=", "\"abdomen", "artery", "incision\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PROCEDURES.\"SHORT_TITLE\" = \"Abdomen artery incision\"", "question_refine": "give me the number of patients whose gender is f and procedure short title is abdomen artery incision?", "key": "a81dae5ff42498734e857c5b7dc46deb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "M"], [3, 5, 0, "MEPE50I"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "drug", "code", "is", "mepe50i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"mepe50i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"MEPE50I\"", "question_refine": "count the number of patients whose gender is m and drug code is mepe50i?", "key": "a73aa7de83493b191fbc445d5a71523b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "M"], [3, 5, 0, "LIPID250I"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "drug", "code", "is", "lipid250i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"lipid250i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"LIPID250I\"", "question_refine": "how many patients whose gender is m and drug code is lipid250i?", "key": "85458bc20e32da11c87969332a42276f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 6, 0, "Ferritin"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "lab", "test", "name", "is", "ferritin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"label\"", "=", "\"ferritin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"LABEL\" = \"Ferritin\"", "question_refine": "how many patients whose gender is m and lab test name is ferritin?", "key": "0cc42c38501862128c59ef2444eaea0e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PORT"], [0, 4, 2, 45]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "language", "is", "port", "and", "age", "is", "less", "than", "45", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"port\"", "and", "demographic.\"age\"", "<", "\"45\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PORT\" AND DEMOGRAPHIC.\"AGE\" < \"45\"", "question_refine": "how many patients whose language is port and age is less than 45?", "key": "a819a3814f2f34b5124ec8353cbf07f0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 7, 0, "RUSS"], [1, 3, 0, "Proteus infection NOS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "russ", "and", "diagnoses", "short", "title", "is", "proteus", "infection", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"language\"", "=", "\"russ\"", "and", "diagnoses.\"short_title\"", "=", "\"proteus", "infection", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"RUSS\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Proteus infection NOS\"", "question_refine": "provide the number of patients whose language is russ and diagnoses short title is proteus infection nos?", "key": "9391ab36c2bddfe0cf474a3d26392232"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "JEHOVAH'S WITNESS"], [0, 4, 2, 71]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "religion", "is", "jehovah", "'s", "witness", "and", "age", "is", "less", "than", "71", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"jehovah's", "witness\"", "and", "demographic.\"age\"", "<", "\"71\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"JEHOVAH'S WITNESS\" AND DEMOGRAPHIC.\"AGE\" < \"71\"", "question_refine": "give me the number of patients whose religion is jehovah's witness and age is less than 71?", "key": "0db846be36da67fce1f489804cad086f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 8, 0, "PROTESTANT QUAKER"], [1, 3, 0, "Pressure ulcer, stage I"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "religion", "is", "protestant", "quaker", "and", "diagnoses", "short", "title", "is", "pressure", "ulcer", ",", "stage", "i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"religion\"", "=", "\"protestant", "quaker\"", "and", "diagnoses.\"short_title\"", "=", "\"pressure", "ulcer", "stage", "i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"PROTESTANT QUAKER\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Pressure ulcer, stage I\"", "question_refine": "how many patients whose religion is protestant quaker and diagnoses short title is pressure ulcer, stage i?", "key": "ae1e928c2c207060f138688ce4abb351"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 22, 2, 2135]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "admission", "year", "is", "less", "than", "2135", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"admityear\"", "<", "\"2135\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2135\"", "question_refine": "provide the number of patients whose admission type is elective and admission year is less than 2135?", "key": "035d34423915656ea2221529022d86c5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 22, 2, 2177]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "and", "admission", "year", "is", "less", "than", "2177", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"admityear\"", "<", "\"2177\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2177\"", "question_refine": "count the number of patients whose admission type is newborn and admission year is less than 2177?", "key": "80cf621c35042d6d096cdaeab1b5b902"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 2, 0, "40391"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "icd9", "code", "is", "40391", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "diagnoses.\"icd9_code\"", "=", "\"40391\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DIAGNOSES.\"ICD9_CODE\" = \"40391\"", "question_refine": "give me the number of patients whose admission type is emergency and diagnoses icd9 code is 40391?", "key": "8301ca160becb385bbe5a62015fc5921"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 2, 0, "2763"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "icd9", "code", "is", "2763", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "diagnoses.\"icd9_code\"", "=", "\"2763\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DIAGNOSES.\"ICD9_CODE\" = \"2763\"", "question_refine": "how many patients whose admission type is emergency and diagnoses icd9 code is 2763?", "key": "05ba071627d319e108fbf4c830334200"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 2, 0, "56210"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "icd9", "code", "is", "56210", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "diagnoses.\"icd9_code\"", "=", "\"56210\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DIAGNOSES.\"ICD9_CODE\" = \"56210\"", "question_refine": "how many patients whose admission type is emergency and diagnoses icd9 code is 56210?", "key": "86de234b4ea86613c4fd4865e6be4b05"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "ELECTIVE"], [1, 4, 0, "Drug induced neutropenia"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "diagnoses", "long", "title", "is", "drug", "induced", "neutropenia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "diagnoses.\"long_title\"", "=", "\"drug", "induced", "neutropenia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DIAGNOSES.\"LONG_TITLE\" = \"Drug induced neutropenia\"", "question_refine": "what is the number of patients whose admission type is elective and diagnoses long title is drug induced neutropenia?", "key": "01a951685204b898d99630d8b079ffd9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 2, 0, 252]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "icd9", "code", "is", "252", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "procedures.\"icd9_code\"", "=", "\"252\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PROCEDURES.\"ICD9_CODE\" = \"252\"", "question_refine": "count the number of patients whose admission type is elective and procedure icd9 code is 252?", "key": "a6b131aab0d840f347b9ad994e7744db"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 3, 0, "Unilat rad neck dissect"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "short", "title", "is", "unilat", "rad", "neck", "dissect", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "procedures.\"short_title\"", "=", "\"unilat", "rad", "neck", "dissect\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PROCEDURES.\"SHORT_TITLE\" = \"Unilat rad neck dissect\"", "question_refine": "count the number of patients whose admission type is elective and procedure short title is unilat rad neck dissect?", "key": "04b3c1d2e1694aabd62095b2d46a67f5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 3, 0, "Cont inv mec ven 96+ hrs"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "short", "title", "is", "cont", "inv", "mec", "ven", "96", "+", "hrs", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "procedures.\"short_title\"", "=", "\"cont", "inv", "mec", "ven", "96+", "hrs\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PROCEDURES.\"SHORT_TITLE\" = \"Cont inv mec ven 96+ hrs\"", "question_refine": "provide the number of patients whose admission type is emergency and procedure short title is cont inv mec ven 96+ hrs?", "key": "89878ec7ea816d9b35addf46468da048"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 4, 0, "Timolol Maleate 0.5%"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "name", "is", "timolol", "maleate", "0.5", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "prescriptions.\"drug\"", "=", "\"timolol", "maleate", "0.5%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"DRUG\" = \"Timolol Maleate 0.5%\"", "question_refine": "what is the number of patients whose admission type is emergency and drug name is timolol maleate 0.5%?", "key": "844c051a7fc31f50e5125392d2710bb8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "LD, Body Fluid"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "ld", ",", "body", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "lab.\"label\"", "=", "\"ld", "body", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND LAB.\"LABEL\" = \"LD, Body Fluid\"", "question_refine": "count the number of patients whose admission type is emergency and lab test name is ld, body fluid?", "key": "9193bc2c5d90be4e199fc6a421133f88"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "Reticulocyte Count, Manual"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "reticulocyte", "count", ",", "manual", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "lab.\"label\"", "=", "\"reticulocyte", "count", "manual\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND LAB.\"LABEL\" = \"Reticulocyte Count, Manual\"", "question_refine": "how many patients whose admission type is emergency and lab test name is reticulocyte count, manual?", "key": "9e2bb2a0d86e0e587fb393ad10311fbd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 4, 2, 74]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "age", "is", "less", "than", "74", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"age\"", "<", "\"74\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"AGE\" < \"74\"", "question_refine": "provide the number of patients whose insurance is self pay and age is less than 74?", "key": "0bd77a0aa119fff1491ad47e43c104cb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicare"], [0, 18, 2, 2104]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "year", "of", "birth", "is", "less", "than", "2104", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "demographic.\"dob_year\"", "<", "\"2104\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2104\"", "question_refine": "give me the number of patients whose insurance is medicare and year of birth is less than 2104?", "key": "025ce5d0a492bc418ed5e2d467822479"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicare"], [0, 22, 2, 2187]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "admission", "year", "is", "less", "than", "2187", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "demographic.\"admityear\"", "<", "\"2187\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2187\"", "question_refine": "give me the number of patients whose insurance is medicare and admission year is less than 2187?", "key": "8745cad27000303a093d0dd8dafeeb7b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicare"], [0, 22, 2, 2154]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicare", "and", "admission", "year", "is", "less", "than", "2154", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "demographic.\"admityear\"", "<", "\"2154\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2154\"", "question_refine": "how many patients whose insurance is medicare and admission year is less than 2154?", "key": "0e41987fae64a3292dbb83fe18b6d6eb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 16, 0, "BRADYCARDIA"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "white", "and", "primary", "disease", "is", "bradycardia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"diagnosis\"", "=", "\"bradycardia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRADYCARDIA\"", "question_refine": "how many patients whose ethnicity is white and primary disease is bradycardia?", "key": "936aa04d2d6d3b1065c9100730171751"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 4, 2, 67]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "age", "is", "less", "than", "67", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"age\"", "<", "\"67\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"AGE\" < \"67\"", "question_refine": "count the number of patients whose ethnicity is american indian/alaska native and age is less than 67?", "key": "01443480ca76e4369b245ea13b9f1df1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [0, 4, 2, 68]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "age", "is", "less", "than", "68", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "demographic.\"age\"", "<", "\"68\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND DEMOGRAPHIC.\"AGE\" < \"68\"", "question_refine": "give me the number of patients whose ethnicity is black/haitian and age is less than 68?", "key": "04f28582e0964c9954df581b93f8ecc7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 4, 2, 67]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "age", "is", "less", "than", "67", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"age\"", "<", "\"67\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"AGE\" < \"67\"", "question_refine": "what is the number of patients whose ethnicity is asian and age is less than 67?", "key": "03003e36361d3201de108c4f119f7e70"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 4, 2, 80]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "age", "is", "less", "than", "80", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"age\"", "<", "\"80\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"AGE\" < \"80\"", "question_refine": "give me the number of patients whose ethnicity is asian and age is less than 80?", "key": "090932307c30b9e5035ed9b8e269495a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 18, 2, 2052]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "year", "of", "birth", "is", "less", "than", "2052", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"dob_year\"", "<", "\"2052\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2052\"", "question_refine": "count the number of patients whose ethnicity is white and year of birth is less than 2052?", "key": "0a93280ed4a8b3eeff94a94266661162"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"], [0, 18, 2, 2107]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "and", "year", "of", "birth", "is", "less", "than", "2107", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\"", "and", "demographic.\"dob_year\"", "<", "\"2107\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2107\"", "question_refine": "count the number of patients whose ethnicity is hispanic/latino - puerto rican and year of birth is less than 2107?", "key": "a6b46b322c8929ee2ac3a05ac85f943c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 3, 0, "Hx of GI malignancy NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "short", "title", "is", "hx", "of", "gi", "malignancy", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "diagnoses.\"short_title\"", "=", "\"hx", "of", "gi", "malignancy", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Hx of GI malignancy NEC\"", "question_refine": "how many patients whose ethnicity is white and diagnoses short title is hx of gi malignancy nec?", "key": "0565e307a3edfe84e93e464b872149ad"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   "]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "aortic", "insufficiency\\re", "-", "do", "sternotomy", ";", "aortic", "valve", "replacement", "  ", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"aortic", "insufficiency\\re-do", "sternotomy;", "aortic", "valve", "replacement", "\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   \"", "question_refine": "provide the number of patients whose death status is 0 and primary disease is aortic insufficiency\\re-do sternotomy; aortic valve replacement   ?", "key": "02f5addb91754a1b056140844e000bd5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 4, 2, 43]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "age", "is", "less", "than", "43", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"age\"", "<", "\"43\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"AGE\" < \"43\"", "question_refine": "how many patients whose death status is 1 and age is less than 43?", "key": "048d0ff6b504840d3588dc9a9c25604c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 22, 2, 2123]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "admission", "year", "is", "less", "than", "2123", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"admityear\"", "<", "\"2123\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2123\"", "question_refine": "give me the number of patients whose death status is 1 and admission year is less than 2123?", "key": "90d554b6e10b435fb43351c3105183f3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "Ac diastolic hrt failure"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "ac", "diastolic", "hrt", "failure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"ac", "diastolic", "hrt", "failure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Ac diastolic hrt failure\"", "question_refine": "count the number of patients whose death status is 0 and diagnoses short title is ac diastolic hrt failure?", "key": "abaad794f2c8a34d9d287b6128688cc8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "Epistaxis"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "epistaxis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"epistaxis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Epistaxis\"", "question_refine": "give me the number of patients whose death status is 0 and diagnoses short title is epistaxis?", "key": "a0096afa6e0df0f8dee83cc6ad39b510"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "Hx-rectal & anal malign"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "hx", "-", "rectal", "&", "anal", "malign", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"hx-rectal", "&", "anal", "malign\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Hx-rectal & anal malign\"", "question_refine": "how many patients whose death status is 0 and diagnoses short title is hx-rectal & anal malign?", "key": "93093c6a157686346ac1a429056360d6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "BPH w/o urinary obs/LUTS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "bph", "w/o", "urinary", "obs", "/", "luts", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"bph", "w/o", "urinary", "obs/luts\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"SHORT_TITLE\" = \"BPH w/o urinary obs/LUTS\"", "question_refine": "how many patients whose death status is 0 and diagnoses short title is bph w/o urinary obs/luts?", "key": "099eef47c1de13d69881354a8d6bcf98"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "Metabolic encephalopathy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "metabolic", "encephalopathy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"metabolic", "encephalopathy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Metabolic encephalopathy\"", "question_refine": "count the number of patients whose death status is 0 and diagnoses short title is metabolic encephalopathy?", "key": "03ea6a2d85bb58573fed1557472bfa36"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\"", "question_refine": "what is the number of patients whose admission location is emergency room admit and discharge location is disch-tran to psych hosp?", "key": "8277ad242f4a67242afb6df8fa62a4b1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [0, 4, 2, 59]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "age", "is", "less", "than", "59", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "demographic.\"age\"", "<", "\"59\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DEMOGRAPHIC.\"AGE\" < \"59\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and age is less than 59?", "key": "0a1cd1f71bf51049de78aa0501e9fa78"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 4, 2, 59]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "age", "is", "less", "than", "59", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"age\"", "<", "\"59\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"AGE\" < \"59\"", "question_refine": "how many patients whose admission location is trsf within this facility and age is less than 59?", "key": "927bcc5acfc5a7c2f5b2ebf99de1cd47"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 18, 2, 2071]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "year", "of", "birth", "is", "less", "than", "2071", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"dob_year\"", "<", "\"2071\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2071\"", "question_refine": "give me the number of patients whose admission location is emergency room admit and year of birth is less than 2071?", "key": "a85f7ee77ab7acd707cc19c80b4acf63"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [0, 22, 2, 2131]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "admission", "year", "is", "less", "than", "2131", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "demographic.\"admityear\"", "<", "\"2131\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2131\"", "question_refine": "provide the number of patients whose admission location is transfer from hosp/extram and admission year is less than 2131?", "key": "ba3064e8b2f13a2448df23529f31de36"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"], [0, 4, 2, 77]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "and", "age", "is", "less", "than", "77", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\"", "and", "demographic.\"age\"", "<", "\"77\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\" AND DEMOGRAPHIC.\"AGE\" < \"77\"", "question_refine": "how many patients whose discharge location is disch-tran to psych hosp and age is less than 77?", "key": "04221395dc9c6a9e5c880d1dc78a5031"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [0, 22, 2, 2182]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "admission", "year", "is", "less", "than", "2182", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "demographic.\"admityear\"", "<", "\"2182\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2182\"", "question_refine": "provide the number of patients whose discharge location is short term hospital and admission year is less than 2182?", "key": "bba6972bfb39756cdb923e4518ec3895"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ABDOMINAL PAIN"], [0, 4, 2, 68]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "abdominal", "pain", "and", "age", "is", "less", "than", "68", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"abdominal", "pain\"", "and", "demographic.\"age\"", "<", "\"68\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL PAIN\" AND DEMOGRAPHIC.\"AGE\" < \"68\"", "question_refine": "count the number of patients whose primary disease is abdominal pain and age is less than 68?", "key": "0d2d4b9ce812c7d9805538e58b0de30e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ABDOMINAL ABSCESS"], [0, 4, 2, 68]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "abdominal", "abscess", "and", "age", "is", "less", "than", "68", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"abdominal", "abscess\"", "and", "demographic.\"age\"", "<", "\"68\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL ABSCESS\" AND DEMOGRAPHIC.\"AGE\" < \"68\"", "question_refine": "how many patients whose primary disease is abdominal abscess and age is less than 68?", "key": "074e5b4530d549289801849ce3cdde02"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "BOWEL OBSTRUCTION"], [0, 10, 1, 10]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bowel", "obstruction", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "10", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bowel", "obstruction\"", "and", "demographic.\"days_stay\"", ">", "\"10\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BOWEL OBSTRUCTION\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"10\"", "question_refine": "count the number of patients whose primary disease is bowel obstruction and days of hospital stay is greater than 10?", "key": "8757aa09f5f4b407395c6608aecb69e0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "UPPER GI BLEED"], [0, 18, 2, 2112]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "upper", "gi", "bleed", "and", "year", "of", "birth", "is", "less", "than", "2112", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"upper", "gi", "bleed\"", "and", "demographic.\"dob_year\"", "<", "\"2112\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"UPPER GI BLEED\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2112\"", "question_refine": "how many patients whose primary disease is upper gi bleed and year of birth is less than 2112?", "key": "9ff64e587978e15c158f7b6b80563161"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "GUILLAIN BARRE SYNDROME"], [0, 18, 2, 2109]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "guillain", "barre", "syndrome", "and", "year", "of", "birth", "is", "less", "than", "2109", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"guillain", "barre", "syndrome\"", "and", "demographic.\"dob_year\"", "<", "\"2109\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GUILLAIN BARRE SYNDROME\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2109\"", "question_refine": "provide the number of patients whose primary disease is guillain barre syndrome and year of birth is less than 2109?", "key": "bb83ddfb2b58462bada823ae66a5bd95"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SEPSIS"], [0, 22, 2, 2203]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "sepsis", "and", "admission", "year", "is", "less", "than", "2203", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"sepsis\"", "and", "demographic.\"admityear\"", "<", "\"2203\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SEPSIS\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2203\"", "question_refine": "how many patients whose primary disease is sepsis and admission year is less than 2203?", "key": "9fa63394a37b2f80110759367790716a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "GASTROINTESTINAL BLEED"], [3, 6, 0, "TP"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "gastrointestinal", "bleed", "and", "drug", "route", "is", "tp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"gastrointestinal", "bleed\"", "and", "prescriptions.\"route\"", "=", "\"tp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GASTROINTESTINAL BLEED\" AND PRESCRIPTIONS.\"ROUTE\" = \"TP\"", "question_refine": "count the number of patients whose primary disease is gastrointestinal bleed and drug route is tp?", "key": "a5b6345934da2a50fd6dd880ba5fb59a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 83], [0, 10, 1, 6]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "83", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"83\"", "and", "demographic.\"days_stay\"", ">", "\"6\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"83\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"6\"", "question_refine": "count the number of patients whose age is less than 83 and days of hospital stay is greater than 6?", "key": "0047b985a745f591fd904a526f46c5ec"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 72], [0, 19, 4, 2132.0]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "72", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2132", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"72\"", "and", "demographic.\"dod_year\"", "<=", "\"2132.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"72\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2132.0\"", "question_refine": "provide the number of patients whose age is less than 72 and year of death is less than or equal to 2132?", "key": "0efb1f3ea07563c82ed22210954a7e05"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 83], [1, 3, 0, "Pneumococcal pneumonia"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "83", "and", "diagnoses", "short", "title", "is", "pneumococcal", "pneumonia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"83\"", "and", "diagnoses.\"short_title\"", "=", "\"pneumococcal", "pneumonia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"83\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Pneumococcal pneumonia\"", "question_refine": "count the number of patients whose age is less than 83 and diagnoses short title is pneumococcal pneumonia?", "key": "aa3651ed4202392f2f09a7769737f61b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 51], [1, 3, 0, "Preterm NEC 2500+g"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "51", "and", "diagnoses", "short", "title", "is", "preterm", "nec", "2500+g", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"51\"", "and", "diagnoses.\"short_title\"", "=", "\"preterm", "nec", "2500+g\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"51\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Preterm NEC 2500+g\"", "question_refine": "provide the number of patients whose age is less than 51 and diagnoses short title is preterm nec 2500+g?", "key": "0039685df6e3097e7f1e2742a86d106a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 81], [1, 4, 0, "Unspecified septicemia"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "81", "and", "diagnoses", "long", "title", "is", "unspecified", "septicemia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"81\"", "and", "diagnoses.\"long_title\"", "=", "\"unspecified", "septicemia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"81\" AND DIAGNOSES.\"LONG_TITLE\" = \"Unspecified septicemia\"", "question_refine": "give me the number of patients whose age is less than 81 and diagnoses long title is unspecified septicemia?", "key": "0640f668a6444cfc4761651f76cfad7b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 44], [2, 3, 0, "Oth uni salpingo-oophor"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "44", "and", "procedure", "short", "title", "is", "oth", "uni", "salpingo", "-", "oophor", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"44\"", "and", "procedures.\"short_title\"", "=", "\"oth", "uni", "salpingo-oophor\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"44\" AND PROCEDURES.\"SHORT_TITLE\" = \"Oth uni salpingo-oophor\"", "question_refine": "what is the number of patients whose age is less than 44 and procedure short title is oth uni salpingo-oophor?", "key": "0ebff2e801d7f07f735ed115ff6846e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 30], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "30", "and", "lab", "test", "abnormal", "status", "is", "abnormal", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"30\"", "and", "lab.\"flag\"", "=", "\"abnormal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"30\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "what is the number of patients whose age is less than 30 and lab test abnormal status is abnormal?", "key": "870bc97deb5038b9b33dc9a92d1b7a84"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 41], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "41", "and", "lab", "test", "abnormal", "status", "is", "delta", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"41\"", "and", "lab.\"flag\"", "=", "\"delta\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"41\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "how many patients whose age is less than 41 and lab test abnormal status is delta?", "key": "8182d5043bd51f337b846751434757f1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 85], [4, 6, 0, "Heparin, LMW"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "85", "and", "lab", "test", "name", "is", "heparin", ",", "lmw", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"85\"", "and", "lab.\"label\"", "=", "\"heparin", "lmw\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"85\" AND LAB.\"LABEL\" = \"Heparin, LMW\"", "question_refine": "count the number of patients whose age is less than 85 and lab test name is heparin, lmw?", "key": "aa0feba409fddd516dabb88f3e4e1131"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 56], [4, 6, 0, "Sodium, Whole Blood"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "56", "and", "lab", "test", "name", "is", "sodium", ",", "whole", "blood", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"56\"", "and", "lab.\"label\"", "=", "\"sodium", "whole", "blood\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"56\" AND LAB.\"LABEL\" = \"Sodium, Whole Blood\"", "question_refine": "how many patients whose age is less than 56 and lab test name is sodium, whole blood?", "key": "9b6dfdf4c90e8cacd7a41b3d04f7e83e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 7], [1, 3, 0, "Single lb in-hosp w cs"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "7", "and", "diagnoses", "short", "title", "is", "single", "lb", "in", "-", "hosp", "w", "cs", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"7\"", "and", "diagnoses.\"short_title\"", "=", "\"single", "lb", "in-hosp", "w", "cs\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"7\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Single lb in-hosp w cs\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 7 and diagnoses short title is single lb in-hosp w cs?", "key": "0332dda726da118eaa7ca1bd76d407df"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 26], [1, 3, 0, "Joint replaced knee"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "and", "diagnoses", "short", "title", "is", "joint", "replaced", "knee", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"26\"", "and", "diagnoses.\"short_title\"", "=", "\"joint", "replaced", "knee\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"26\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Joint replaced knee\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 26 and diagnoses short title is joint replaced knee?", "key": "08fc7705c2b867f49f66d8f30eeba98e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 7], [1, 3, 0, "Acidosis"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "7", "and", "diagnoses", "short", "title", "is", "acidosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"7\"", "and", "diagnoses.\"short_title\"", "=", "\"acidosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"7\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Acidosis\"", "question_refine": "how many patients whose days of hospital stay is greater than 7 and diagnoses short title is acidosis?", "key": "0c72214ea0e062654437473e15068aa3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 7], [1, 3, 0, "Alzheimer's disease"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "7", "and", "diagnoses", "short", "title", "is", "alzheimer", "'s", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"7\"", "and", "diagnoses.\"short_title\"", "=", "\"alzheimer's", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"7\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Alzheimer's disease\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 7 and diagnoses short title is alzheimer's disease?", "key": "9199807b13cd1e04881141d5212e9079"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 26], [3, 4, 0, "Lorazepam"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "and", "drug", "name", "is", "lorazepam", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"26\"", "and", "prescriptions.\"drug\"", "=", "\"lorazepam\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"26\" AND PRESCRIPTIONS.\"DRUG\" = \"Lorazepam\"", "question_refine": "how many patients whose days of hospital stay is greater than 26 and drug name is lorazepam?", "key": "9414e815191f08f8729bdad33e6d48be"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 16], [3, 4, 0, "SW"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "16", "and", "drug", "name", "is", "sw", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"16\"", "and", "prescriptions.\"drug\"", "=", "\"sw\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"16\" AND PRESCRIPTIONS.\"DRUG\" = \"SW\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 16 and drug name is sw?", "key": "87cb983ef7e62ae3398a8fd6ef8c6b16"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 8], [3, 4, 0, "Acetylcysteine 20%"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "8", "and", "drug", "name", "is", "acetylcysteine", "20", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"8\"", "and", "prescriptions.\"drug\"", "=", "\"acetylcysteine", "20%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"8\" AND PRESCRIPTIONS.\"DRUG\" = \"Acetylcysteine 20%\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 8 and drug name is acetylcysteine 20%?", "key": "8e7a52d33c8a0a9838c49596461d2ca3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2148], [1, 3, 0, "Obesity NOS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2148", "and", "diagnoses", "short", "title", "is", "obesity", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2148\"", "and", "diagnoses.\"short_title\"", "=", "\"obesity", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2148\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Obesity NOS\"", "question_refine": "count the number of patients whose admission year is less than 2148 and diagnoses short title is obesity nos?", "key": "9192083f15618c3944fab5819282ce1f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2175], [1, 3, 0, "Long-term use steroids"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2175", "and", "diagnoses", "short", "title", "is", "long", "-", "term", "use", "steroids", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2175\"", "and", "diagnoses.\"short_title\"", "=", "\"long-term", "use", "steroids\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2175\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Long-term use steroids\"", "question_refine": "give me the number of patients whose admission year is less than 2175 and diagnoses short title is long-term use steroids?", "key": "05c34fdbc7ab6c2cd547aa61e361051c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2187], [1, 3, 0, "Other lung disease NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2187", "and", "diagnoses", "short", "title", "is", "other", "lung", "disease", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2187\"", "and", "diagnoses.\"short_title\"", "=", "\"other", "lung", "disease", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2187\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Other lung disease NEC\"", "question_refine": "provide the number of patients whose admission year is less than 2187 and diagnoses short title is other lung disease nec?", "key": "8c88f561e27ab905c51f995f000f9920"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2172], [1, 4, 0, "Contact dermatitis and other eczema, unspecified cause"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2172", "and", "diagnoses", "long", "title", "is", "contact", "dermatitis", "and", "other", "eczema", ",", "unspecified", "cause", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2172\"", "and", "diagnoses.\"long_title\"", "=", "\"contact", "dermatitis", "and", "other", "eczema", "unspecified", "cause\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2172\" AND DIAGNOSES.\"LONG_TITLE\" = \"Contact dermatitis and other eczema, unspecified cause\"", "question_refine": "give me the number of patients whose admission year is less than 2172 and diagnoses long title is contact dermatitis and other eczema, unspecified cause?", "key": "80d0e73a185289625d60921e65b0f2d8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2179], [1, 4, 0, "Pressure ulcer, stage II"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2179", "and", "diagnoses", "long", "title", "is", "pressure", "ulcer", ",", "stage", "ii", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2179\"", "and", "diagnoses.\"long_title\"", "=", "\"pressure", "ulcer", "stage", "ii\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2179\" AND DIAGNOSES.\"LONG_TITLE\" = \"Pressure ulcer, stage II\"", "question_refine": "give me the number of patients whose admission year is less than 2179 and diagnoses long title is pressure ulcer, stage ii?", "key": "9fcbd4ae3ba6806cdd14afc747ca9ca3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2174], [1, 4, 0, "Sepsis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2174", "and", "diagnoses", "long", "title", "is", "sepsis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2174\"", "and", "diagnoses.\"long_title\"", "=", "\"sepsis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2174\" AND DIAGNOSES.\"LONG_TITLE\" = \"Sepsis\"", "question_refine": "what is the number of patients whose admission year is less than 2174 and diagnoses long title is sepsis?", "key": "a653e009b44f6b042361642164f758e9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2155], [2, 3, 0, "Dx ultrasound-heart"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2155", "and", "procedure", "short", "title", "is", "dx", "ultrasound", "-", "heart", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2155\"", "and", "procedures.\"short_title\"", "=", "\"dx", "ultrasound-heart\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2155\" AND PROCEDURES.\"SHORT_TITLE\" = \"Dx ultrasound-heart\"", "question_refine": "count the number of patients whose admission year is less than 2155 and procedure short title is dx ultrasound-heart?", "key": "0eb32f428a68a982f36ee3562f936b6e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2146], [2, 3, 0, "Cardiopulm resuscita NOS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2146", "and", "procedure", "short", "title", "is", "cardiopulm", "resuscita", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2146\"", "and", "procedures.\"short_title\"", "=", "\"cardiopulm", "resuscita", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2146\" AND PROCEDURES.\"SHORT_TITLE\" = \"Cardiopulm resuscita NOS\"", "question_refine": "how many patients whose admission year is less than 2146 and procedure short title is cardiopulm resuscita nos?", "key": "a77d67ccd0a105807ef5c3fb6cb2c019"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2150], [2, 4, 0, "Hemodialysis"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2150", "and", "procedure", "long", "title", "is", "hemodialysis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2150\"", "and", "procedures.\"long_title\"", "=", "\"hemodialysis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2150\" AND PROCEDURES.\"LONG_TITLE\" = \"Hemodialysis\"", "question_refine": "give me the number of patients whose admission year is less than 2150 and procedure long title is hemodialysis?", "key": "a8e264d96300a69aa8dea07d6d507559"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2187], [2, 4, 0, "(Aorto)coronary bypass of one coronary artery"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2187", "and", "procedure", "long", "title", "is", "(", "aorto)coronary", "bypass", "of", "one", "coronary", "artery", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2187\"", "and", "procedures.\"long_title\"", "=", "\"(aorto)coronary", "bypass", "of", "one", "coronary", "artery\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2187\" AND PROCEDURES.\"LONG_TITLE\" = \"(Aorto)coronary bypass of one coronary artery\"", "question_refine": "count the number of patients whose admission year is less than 2187 and procedure long title is (aorto)coronary bypass of one coronary artery?", "key": "9fbf9e43a2cf665e8cf12a1fddb6f556"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2162], [2, 4, 0, "Percutaneous [endoscopic] gastrojejunostomy"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2162", "and", "procedure", "long", "title", "is", "percutaneous", "[", "endoscopic", "]", "gastrojejunostomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2162\"", "and", "procedures.\"long_title\"", "=", "\"percutaneous", "[endoscopic]", "gastrojejunostomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2162\" AND PROCEDURES.\"LONG_TITLE\" = \"Percutaneous [endoscopic] gastrojejunostomy\"", "question_refine": "what is the number of patients whose admission year is less than 2162 and procedure long title is percutaneous [endoscopic] gastrojejunostomy?", "key": "025c24d1e68c126598c7046e63752ab8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2174], [3, 4, 0, "Cefpodoxime Proxetil"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2174", "and", "drug", "name", "is", "cefpodoxime", "proxetil", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2174\"", "and", "prescriptions.\"drug\"", "=", "\"cefpodoxime", "proxetil\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2174\" AND PRESCRIPTIONS.\"DRUG\" = \"Cefpodoxime Proxetil\"", "question_refine": "how many patients whose admission year is less than 2174 and drug name is cefpodoxime proxetil?", "key": "aa7c9f0f083c93b10c5c1410673a02c2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Atriovent block complete"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "atriovent", "block", "complete", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"atriovent", "block", "complete\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Atriovent block complete\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "how many patients whose diagnoses short title is atriovent block complete and drug type is base?", "key": "aac4912698c7b291c95cb3f2419634a6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Physical restrain status"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "physical", "restrain", "status", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"physical", "restrain", "status\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Physical restrain status\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose diagnoses short title is physical restrain status and drug type is base?", "key": "0c29bb8002f39c1b47df9dd0077c7ef2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Bleed esoph var oth dis"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "bleed", "esoph", "var", "oth", "dis", "and", "drug", "type", "is", "main", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"bleed", "esoph", "var", "oth", "dis\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Bleed esoph var oth dis\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose diagnoses short title is bleed esoph var oth dis and drug type is main?", "key": "968b80474dc7adef444d9996b1f46a94"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Diaphragmatic hernia"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "diaphragmatic", "hernia", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"diaphragmatic", "hernia\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Diaphragmatic hernia\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "give me the number of patients whose diagnoses short title is diaphragmatic hernia and drug type is base?", "key": "a9d92fdd4552de6119472381096c41d5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Rec depr psych-psychotic"], [3, 6, 0, "PO/NG"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "rec", "depr", "psych", "-", "psychotic", "and", "drug", "route", "is", "po", "/", "ng", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"rec", "depr", "psych-psychotic\"", "and", "prescriptions.\"route\"", "=", "\"po/ng\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Rec depr psych-psychotic\" AND PRESCRIPTIONS.\"ROUTE\" = \"PO/NG\"", "question_refine": "how many patients whose diagnoses short title is rec depr psych-psychotic and drug route is po/ng?", "key": "b9e81a7036c0f844cb0892ae06fa0c72"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Dysphagia NOS"], [4, 6, 0, "Ketone"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "dysphagia", "nos", "and", "lab", "test", "name", "is", "ketone", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"dysphagia", "nos\"", "and", "lab.\"label\"", "=", "\"ketone\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Dysphagia NOS\" AND LAB.\"LABEL\" = \"Ketone\"", "question_refine": "provide the number of patients whose diagnoses short title is dysphagia nos and lab test name is ketone?", "key": "a71d8a20f3c1c0d0fc6a9372df547def"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Personal history of colonic polyps"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "personal", "history", "of", "colonic", "polyps", "and", "lab", "test", "abnormal", "status", "is", "abnormal", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"personal", "history", "of", "colonic", "polyps\"", "and", "lab.\"flag\"", "=", "\"abnormal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Personal history of colonic polyps\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses long title is personal history of colonic polyps and lab test abnormal status is abnormal?", "key": "0d8e3bc0c9b32c93056a71cbc2e7882e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Seroma complicating a procedure"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "seroma", "complicating", "a", "procedure", "and", "lab", "test", "category", "is", "hematology", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"seroma", "complicating", "a", "procedure\"", "and", "lab.\"category\"", "=", "\"hematology\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Seroma complicating a procedure\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "count the number of patients whose diagnoses long title is seroma complicating a procedure and lab test category is hematology?", "key": "979b37be2f3e1e3afc9d8298e975b5a1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "MAIN"], [4, 6, 0, "Sodium, Urine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "type", "is", "main", "and", "lab", "test", "name", "is", "sodium", ",", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "prescriptions.\"drug_type\"", "=", "\"main\"", "and", "lab.\"label\"", "=", "\"sodium", "urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\" AND LAB.\"LABEL\" = \"Sodium, Urine\"", "question_refine": "provide the number of patients whose drug type is main and lab test name is sodium, urine?", "key": "9ce3e6d4028ec80eb96214edc77b6496"}
{"format": {"agg_col": [[0, 3], [0, 7]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "language", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is marital status and language of subject id 2560?", "key": "900aceb61a32bfdb6cf3e6ece9597284"}
{"format": {"agg_col": [[0, 11], [0, 16]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "primary", "disease", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is insurance and primary disease of subject id 2560?", "key": "0f8c99adf2a5dc590120e3fc5f613dbc"}
{"format": {"agg_col": [[0, 3], [0, 20]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "admission", "time", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is marital status and admission time of subject id 6983?", "key": "0baa58e5517b4fcb7f72da30a3aac78f"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 0, 0, 81923]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "i", "d", "81923", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"81923\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"81923\"", "question_refine": "what is insurance of subject id 81923?", "key": "a67c695125c7528403160bb8cda092c5"}
{"format": {"agg_col": [[0, 5], [2, 4]], "table": [0, 2], "cond": [[0, 0, 0, 81923]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "procedure", "long", "title", "of", "subject", "i", "d", "81923", "?"], "sql_tok": ["select", "demographic.\"dob\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"81923\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"81923\"", "question_refine": "what is date of birth and procedure long title of subject id 81923?", "key": "9bfdaf5eab2c02d8ca8b4d3868f647de"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 0, 0, 29961]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "i", "d", "29961", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"29961\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"29961\"", "question_refine": "what is admission type of subject id 29961?", "key": "0de72540235585ad871c25fec25eb251"}
{"format": {"agg_col": [[0, 7], [0, 16]], "table": [0], "cond": [[0, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "and", "primary", "disease", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "demographic.\"language\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is language and primary disease of subject id 3343?", "key": "975158013a0614796649501c4458a198"}
{"format": {"agg_col": [[0, 9], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 62296]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "62296", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"62296\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"62296\"", "question_refine": "what is admission type and diagnoses icd9 code of subject id 62296?", "key": "9dd44561bfa5bd9f73dfe4899716bc2f"}
{"format": {"agg_col": [[0, 11], [0, 17]], "table": [0], "cond": [[0, 0, 0, 62296]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "date", "of", "death", "of", "subject", "i", "d", "62296", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"62296\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"62296\"", "question_refine": "what is insurance and date of death of subject id 62296?", "key": "a56ec4b79f7a126662d66143bb58778c"}
{"format": {"agg_col": [[0, 3], [0, 14]], "table": [0], "cond": [[0, 0, 0, 15898]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "admission", "location", "of", "subject", "i", "d", "15898", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15898\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15898\"", "question_refine": "what is marital status and admission location of subject id 15898?", "key": "9dd26663715f8b95ce884e287fa2cf46"}
{"format": {"agg_col": [[0, 6], [0, 11]], "table": [0], "cond": [[0, 0, 0, 15898]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "insurance", "of", "subject", "i", "d", "15898", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15898\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15898\"", "question_refine": "what is gender and insurance of subject id 15898?", "key": "a54ae2601c44ed2b62c5ebb49a3e2bc1"}
{"format": {"agg_col": [[0, 9], [0, 21]], "table": [0], "cond": [[0, 0, 0, 15898]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "discharge", "time", "of", "subject", "i", "d", "15898", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15898\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15898\"", "question_refine": "what is admission type and discharge time of subject id 15898?", "key": "9443e783a3381f9fb38fb35508104e41"}
{"format": {"agg_col": [[0, 11], [0, 15]], "table": [0], "cond": [[0, 0, 0, 15898]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "discharge", "location", "of", "subject", "i", "d", "15898", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15898\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15898\"", "question_refine": "what is insurance and discharge location of subject id 15898?", "key": "a694708e8c8e1e881b4f7f3ba9eb3515"}
{"format": {"agg_col": [[0, 9], [4, 4]], "table": [0, 4], "cond": [[0, 0, 0, 7273]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "7273", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "lab.\"flag\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"7273\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",LAB.\"FLAG\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"7273\"", "question_refine": "what is admission type and lab test abnormal status of subject id 7273?", "key": "bb0ca9729b899a9e0d95157686fd1e6d"}
{"format": {"agg_col": [[0, 11], [0, 16]], "table": [0], "cond": [[0, 0, 0, 8990]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "primary", "disease", "of", "subject", "i", "d", "8990", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"8990\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"8990\"", "question_refine": "what is insurance and primary disease of subject id 8990?", "key": "0a1214e9a3a0b594551a1bfd09e5ab34"}
{"format": {"agg_col": [[0, 3], [0, 8]], "table": [0], "cond": [[0, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "religion", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is marital status and religion of subject id 74032?", "key": "83e3314b9aa82aaf732ff1c45a51d195"}
{"format": {"agg_col": [[0, 8], [0, 17]], "table": [0], "cond": [[0, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "and", "date", "of", "death", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "demographic.\"religion\"", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\",DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is religion and date of death of subject id 74032?", "key": "0ffc8a41b8b94e7bc01da17aac9180bf"}
{"format": {"agg_col": [[0, 9], [1, 4]], "table": [0, 1], "cond": [[0, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "diagnoses", "long", "title", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is admission type and diagnoses long title of subject id 74032?", "key": "96eb14b8712f7434b707c60b571e1fab"}
{"format": {"agg_col": [[1, 3], [3, 3]], "table": [1, 3], "cond": [[1, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "drug", "type", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "prescriptions.\"drug_type\"", "from", "diagnoses", "inner", "join", "prescriptions", "on", "diagnoses.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",PRESCRIPTIONS.\"DRUG_TYPE\" FROM DIAGNOSES INNER JOIN PRESCRIPTIONS on DIAGNOSES.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is diagnoses short title and drug type of subject id 74032?", "key": "8a5fa1893e263b7824be6154da85bc46"}
{"format": {"agg_col": [[0, 3], [0, 5]], "table": [0], "cond": [[0, 0, 0, 21796]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "date", "of", "birth", "of", "subject", "i", "d", "21796", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"21796\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"21796\"", "question_refine": "what is marital status and date of birth of subject id 21796?", "key": "8eb82af011a6e0a42adfe3d93215d014"}
{"format": {"agg_col": [[0, 3], [0, 12]], "table": [0], "cond": [[0, 0, 0, 21796]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "ethnicity", "of", "subject", "i", "d", "21796", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"21796\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"21796\"", "question_refine": "what is marital status and ethnicity of subject id 21796?", "key": "9cfe1f468ae3569a8653122b46b2dce5"}
{"format": {"agg_col": [[0, 9], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 21796]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "21796", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"21796\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"21796\"", "question_refine": "what is admission type and procedure icd9 code of subject id 21796?", "key": "8afc8483734580cedaa6752df314019b"}
{"format": {"agg_col": [[0, 11], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 21796]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "21796", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"21796\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"21796\"", "question_refine": "what is insurance and diagnoses icd9 code of subject id 21796?", "key": "a6a732ecc77a93f6fac9453d69cce42b"}
{"format": {"agg_col": [[0, 7], [0, 13]], "table": [0], "cond": [[0, 0, 0, 3623]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "and", "death", "status", "of", "subject", "i", "d", "3623", "?"], "sql_tok": ["select", "demographic.\"language\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3623\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3623\"", "question_refine": "what is language and death status of subject id 3623?", "key": "a76a171c5f287a62a48890fd64927138"}
{"format": {"agg_col": [[0, 12], [0, 16]], "table": [0], "cond": [[0, 0, 0, 3623]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "and", "primary", "disease", "of", "subject", "i", "d", "3623", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3623\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3623\"", "question_refine": "what is ethnicity and primary disease of subject id 3623?", "key": "83d32631dfda27dba407f6d734b73fa0"}
{"format": {"agg_col": [[0, 13], [2, 3]], "table": [0, 2], "cond": [[0, 0, 0, 3623]], "sel": 0}, "question_refine_tok": ["what", "is", "death", "status", "and", "procedure", "short", "title", "of", "subject", "i", "d", "3623", "?"], "sql_tok": ["select", "demographic.\"expire_flag\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"3623\""], "sql": "SELECT DEMOGRAPHIC.\"EXPIRE_FLAG\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3623\"", "question_refine": "what is death status and procedure short title of subject id 3623?", "key": "0d961118addaebaa19d6836fa18f8533"}
{"format": {"agg_col": [[0, 17], [0, 20]], "table": [0], "cond": [[0, 0, 0, 94762]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "death", "and", "admission", "time", "of", "subject", "i", "d", "94762", "?"], "sql_tok": ["select", "demographic.\"dod\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"94762\""], "sql": "SELECT DEMOGRAPHIC.\"DOD\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"94762\"", "question_refine": "what is date of death and admission time of subject id 94762?", "key": "0937cf4727c2462f5e8abdd61cd9d4ae"}
{"format": {"agg_col": [[2, 2], [3, 3]], "table": [2, 3], "cond": [[2, 0, 0, 52012]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "and", "drug", "type", "of", "subject", "i", "d", "52012", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "prescriptions.\"drug_type\"", "from", "procedures", "inner", "join", "prescriptions", "on", "procedures.hadm_id", "=", "prescriptions.hadm_id", "where", "procedures.\"subject_id\"", "=", "\"52012\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\",PRESCRIPTIONS.\"DRUG_TYPE\" FROM PROCEDURES INNER JOIN PRESCRIPTIONS on PROCEDURES.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PROCEDURES.\"SUBJECT_ID\" = \"52012\"", "question_refine": "what is procedure icd9 code and drug type of subject id 52012?", "key": "b9aa179b2e1b13244a6c6d611d1c568b"}
{"format": {"agg_col": [[0, 16], [0, 20]], "table": [0], "cond": [[0, 0, 0, 813]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "admission", "time", "of", "subject", "i", "d", "813", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"813\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"813\"", "question_refine": "what is primary disease and admission time of subject id 813?", "key": "02c34ef8864566dbd0a9c9ad006c1b21"}
{"format": {"agg_col": [[0, 3]], "table": [0], "cond": [[0, 0, 0, 18480]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "of", "subject", "i", "d", "18480", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"18480\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18480\"", "question_refine": "what is marital status of subject id 18480?", "key": "9caa2cf0a890f946d83543002a038823"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 0, 0, 18480]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "i", "d", "18480", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"18480\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"18480\"", "question_refine": "what is procedure short title of subject id 18480?", "key": "8df86af35155206db971854cf41e6139"}
{"format": {"agg_col": [[0, 9], [4, 6]], "table": [0, 4], "cond": [[0, 0, 0, 18480]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "lab", "test", "name", "of", "subject", "i", "d", "18480", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18480\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18480\"", "question_refine": "what is admission type and lab test name of subject id 18480?", "key": "96c7391dfa5656e7563b51eacaee15a7"}
{"format": {"agg_col": [[0, 16], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 18480]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "18480", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18480\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18480\"", "question_refine": "what is primary disease and procedure icd9 code of subject id 18480?", "key": "0d831e485ec42f39a9ea116cfdbc75d8"}
{"format": {"agg_col": [[0, 4], [0, 10]], "table": [0], "cond": [[0, 0, 0, 23602]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "23602", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"23602\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"23602\"", "question_refine": "what is age and days of hospital stay of subject id 23602?", "key": "9eb795c180ef3542b20bf25bf1068a44"}
{"format": {"agg_col": [[0, 6], [0, 10]], "table": [0], "cond": [[0, 0, 0, 990]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "990", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"990\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"990\"", "question_refine": "what is gender and days of hospital stay of subject id 990?", "key": "8238d13af1c7221b7d779d9fef77afac"}
{"format": {"agg_col": [[0, 12]], "table": [0], "cond": [[0, 0, 0, 16438]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "of", "subject", "i", "d", "16438", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"16438\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"16438\"", "question_refine": "what is ethnicity of subject id 16438?", "key": "85e956546e153bf735b2920719b34d1a"}
{"format": {"agg_col": [[0, 5], [0, 9]], "table": [0], "cond": [[0, 0, 0, 16438]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "type", "of", "subject", "i", "d", "16438", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"16438\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"16438\"", "question_refine": "what is date of birth and admission type of subject id 16438?", "key": "8b62448995e510e40daf7f3d776d9ce3"}
{"format": {"agg_col": [[0, 11], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 9271]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "9271", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"9271\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"9271\"", "question_refine": "what is insurance and diagnoses short title of subject id 9271?", "key": "9261992dc4b198991f00da4ec688e081"}
{"format": {"agg_col": [[0, 2]], "table": [0], "cond": [[0, 0, 0, 2110]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "of", "subject", "i", "d", "2110", "?"], "sql_tok": ["select", "demographic.\"name\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2110\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2110\"", "question_refine": "what is subject name of subject id 2110?", "key": "8298e685eb1bddee9cd3852aeeac2591"}
{"format": {"agg_col": [[0, 2], [4, 8]], "table": [0, 4], "cond": [[0, 0, 0, 2110]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "lab", "test", "category", "of", "subject", "i", "d", "2110", "?"], "sql_tok": ["select", "demographic.\"name\"", "lab.\"category\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2110\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",LAB.\"CATEGORY\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2110\"", "question_refine": "what is subject name and lab test category of subject id 2110?", "key": "ae0a0d761414ab17b03de7bb99fefdf0"}
{"format": {"agg_col": [[0, 6], [0, 11]], "table": [0], "cond": [[0, 0, 0, 2110]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "insurance", "of", "subject", "i", "d", "2110", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2110\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2110\"", "question_refine": "what is gender and insurance of subject id 2110?", "key": "911a7e18c4158df6d085cde9accd23fa"}
{"format": {"agg_col": [[0, 16], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 2110]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "2110", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2110\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2110\"", "question_refine": "what is primary disease and diagnoses icd9 code of subject id 2110?", "key": "870d86f73c268c7bc4250688a84e6019"}
{"format": {"agg_col": [[0, 6], [0, 13]], "table": [0], "cond": [[0, 0, 0, 42820]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "death", "status", "of", "subject", "i", "d", "42820", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"42820\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42820\"", "question_refine": "what is gender and death status of subject id 42820?", "key": "858020d1729895a7067c676d9f0fb0cd"}
{"format": {"agg_col": [[0, 15], [3, 2]], "table": [0, 3], "cond": [[0, 0, 0, 42820]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "and", "icu", "stay", "i", "d", "of", "subject", "i", "d", "42820", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"42820\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\",PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42820\"", "question_refine": "what is discharge location and icu stay id of subject id 42820?", "key": "94b7c34d08a1a683e0a44fc75d03d1ed"}
{"format": {"agg_col": [[0, 6], [0, 21]], "table": [0], "cond": [[0, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "discharge", "time", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is gender and discharge time of subject id 55094?", "key": "960022d3a73ef1ab54324b4e160c949f"}
{"format": {"agg_col": [[0, 7], [0, 20]], "table": [0], "cond": [[0, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "and", "admission", "time", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "demographic.\"language\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is language and admission time of subject id 55094?", "key": "1065d3da85adb5db505b96073e508383"}
{"format": {"agg_col": [[1, 2], [1, 3]], "table": [1], "cond": [[1, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "icd9", "code", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "diagnoses.\"icd9_code\"", "diagnoses.\"short_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DIAGNOSES.\"ICD9_CODE\",DIAGNOSES.\"SHORT_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is diagnoses icd9 code and diagnoses short title of subject id 55094?", "key": "970e9b038620185bfb8a00422ddfefa7"}
{"format": {"agg_col": [[0, 3], [0, 20]], "table": [0], "cond": [[0, 0, 0, 29767]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "admission", "time", "of", "subject", "i", "d", "29767", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"29767\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"29767\"", "question_refine": "what is marital status and admission time of subject id 29767?", "key": "84036ecc9eb02b475645146cd8e64bca"}
{"format": {"agg_col": [[3, 4]], "table": [3], "cond": [[3, 0, 0, 74345]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "of", "subject", "i", "d", "74345", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"74345\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"74345\"", "question_refine": "what is drug name of subject id 74345?", "key": "0ec6a8fdb77b6d9be68aa50953e66199"}
{"format": {"agg_col": [[2, 2]], "table": [2], "cond": [[2, 0, 0, 10317]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "of", "subject", "i", "d", "10317", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"10317\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"10317\"", "question_refine": "what is procedure icd9 code of subject id 10317?", "key": "049e61dadb202251580c94f778bee0d5"}
{"format": {"agg_col": [[0, 9], [0, 13]], "table": [0], "cond": [[0, 0, 0, 10317]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "death", "status", "of", "subject", "i", "d", "10317", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"10317\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"10317\"", "question_refine": "what is admission type and death status of subject id 10317?", "key": "acc06fbcc04ac4f4e727cebaf4062a9f"}
{"format": {"agg_col": [[1, 3], [2, 3]], "table": [1, 2], "cond": [[1, 0, 0, 25167]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "procedure", "short", "title", "of", "subject", "i", "d", "25167", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "procedures.\"short_title\"", "from", "diagnoses", "inner", "join", "procedures", "on", "diagnoses.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"25167\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",PROCEDURES.\"SHORT_TITLE\" FROM DIAGNOSES INNER JOIN PROCEDURES on DIAGNOSES.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"25167\"", "question_refine": "what is diagnoses short title and procedure short title of subject id 25167?", "key": "9c68aaf881646e162da53a41904bb65c"}
{"format": {"agg_col": [[0, 3], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 42067]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "42067", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"42067\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42067\"", "question_refine": "what is marital status and diagnoses short title of subject id 42067?", "key": "0ad552d2835d64ccd539c3214e2b6d7a"}
{"format": {"agg_col": [[0, 9], [0, 14]], "table": [0], "cond": [[0, 0, 0, 42067]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "location", "of", "subject", "i", "d", "42067", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"42067\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42067\"", "question_refine": "what is admission type and admission location of subject id 42067?", "key": "86e4d08413e5636824dff09159204fb6"}
{"format": {"agg_col": [[0, 4], [0, 6]], "table": [0], "cond": [[0, 0, 0, 31066]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "gender", "of", "subject", "i", "d", "31066", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"31066\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"31066\"", "question_refine": "what is age and gender of subject id 31066?", "key": "0973408eb98d40424801e271ad64b414"}
{"format": {"agg_col": [[0, 14], [0, 20]], "table": [0], "cond": [[0, 0, 0, 31066]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "admission", "time", "of", "subject", "i", "d", "31066", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"31066\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"31066\"", "question_refine": "what is admission location and admission time of subject id 31066?", "key": "852b7afdced4dc86dc87fd466e175e75"}
{"format": {"agg_col": [[0, 10], [0, 20]], "table": [0], "cond": [[0, 0, 0, 99936]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "time", "of", "subject", "i", "d", "99936", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"99936\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"99936\"", "question_refine": "what is days of hospital stay and admission time of subject id 99936?", "key": "9541bf65cdb398401106f5777b89c091"}
{"format": {"agg_col": [[0, 9], [0, 13]], "table": [0], "cond": [[0, 0, 0, 1121]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "death", "status", "of", "subject", "i", "d", "1121", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"1121\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"1121\"", "question_refine": "what is admission type and death status of subject id 1121?", "key": "8356929e7065d7dfd4d5e6dace1ea0ea"}
{"format": {"agg_col": [[0, 3], [0, 12]], "table": [0], "cond": [[0, 0, 0, 30011]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "ethnicity", "of", "subject", "i", "d", "30011", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"30011\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"30011\"", "question_refine": "what is marital status and ethnicity of subject id 30011?", "key": "95f8a3f0cc5f6486ee39cf3575176b39"}
{"format": {"agg_col": [[1, 4], [2, 4]], "table": [1, 2], "cond": [[1, 0, 0, 30011]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "and", "procedure", "long", "title", "of", "subject", "i", "d", "30011", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "procedures.\"long_title\"", "from", "diagnoses", "inner", "join", "procedures", "on", "diagnoses.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"30011\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\",PROCEDURES.\"LONG_TITLE\" FROM DIAGNOSES INNER JOIN PROCEDURES on DIAGNOSES.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"30011\"", "question_refine": "what is diagnoses long title and procedure long title of subject id 30011?", "key": "8e3b5d9cb36613efab2204fe93749087"}
{"format": {"agg_col": [[0, 15]], "table": [0], "cond": [[0, 0, 0, 29541]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "of", "subject", "i", "d", "29541", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"29541\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"29541\"", "question_refine": "what is discharge location of subject id 29541?", "key": "8921336d23bf3a3ede96a68bc5d3734d"}
{"format": {"agg_col": [[0, 10], [3, 2]], "table": [0, 3], "cond": [[0, 0, 0, 81254]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "icu", "stay", "i", "d", "of", "subject", "i", "d", "81254", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"81254\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"81254\"", "question_refine": "what is days of hospital stay and icu stay id of subject id 81254?", "key": "a87a6ac4913e7104cfdc88d987607f7a"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 9575]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "9575", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"9575\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"9575\"", "question_refine": "what is primary disease and diagnoses short title of subject id 9575?", "key": "86e3e3a08a930e116dd8720746f1458a"}
{"format": {"agg_col": [[0, 4], [0, 9]], "table": [0], "cond": [[0, 0, 0, 93033]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "admission", "type", "of", "subject", "i", "d", "93033", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"93033\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"93033\"", "question_refine": "what is age and admission type of subject id 93033?", "key": "9c56b4c2897b0d7575a947df9de27348"}
{"format": {"agg_col": [[0, 14], [0, 20]], "table": [0], "cond": [[0, 0, 0, 17519]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "admission", "time", "of", "subject", "i", "d", "17519", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17519\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17519\"", "question_refine": "what is admission location and admission time of subject id 17519?", "key": "9aa3166df35ac8dd6c2128b208797557"}
{"format": {"agg_col": [[0, 4], [0, 16]], "table": [0], "cond": [[0, 0, 0, 65652]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "primary", "disease", "of", "subject", "i", "d", "65652", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"65652\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"65652\"", "question_refine": "what is age and primary disease of subject id 65652?", "key": "059ccad9787c25c4d0b649ce90a7089a"}
{"format": {"agg_col": [[0, 10], [2, 4]], "table": [0, 2], "cond": [[0, 0, 0, 71798]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "procedure", "long", "title", "of", "subject", "i", "d", "71798", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"71798\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"71798\"", "question_refine": "what is days of hospital stay and procedure long title of subject id 71798?", "key": "8318a358e23fc3e43d9c6c3cb70e75af"}
{"format": {"agg_col": [[0, 17]], "table": [0], "cond": [[0, 0, 0, 24425]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "death", "of", "subject", "i", "d", "24425", "?"], "sql_tok": ["select", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"24425\""], "sql": "SELECT DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"24425\"", "question_refine": "what is date of death of subject id 24425?", "key": "0d0a62ed7c9bd62e584c9f5b260d9ea0"}
{"format": {"agg_col": [[2, 3], [3, 5]], "table": [2, 3], "cond": [[2, 0, 0, 24425]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "and", "drug", "code", "of", "subject", "i", "d", "24425", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "prescriptions.\"formulary_drug_cd\"", "from", "procedures", "inner", "join", "prescriptions", "on", "procedures.hadm_id", "=", "prescriptions.hadm_id", "where", "procedures.\"subject_id\"", "=", "\"24425\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\",PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PROCEDURES INNER JOIN PRESCRIPTIONS on PROCEDURES.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PROCEDURES.\"SUBJECT_ID\" = \"24425\"", "question_refine": "what is procedure short title and drug code of subject id 24425?", "key": "920c86ed33b3bf35707a12f566236c34"}
{"format": {"agg_col": [[4, 6], [4, 8]], "table": [4], "cond": [[4, 0, 0, 17787]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "name", "and", "lab", "test", "category", "of", "subject", "i", "d", "17787", "?"], "sql_tok": ["select", "lab.\"label\"", "lab.\"category\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"17787\""], "sql": "SELECT LAB.\"LABEL\",LAB.\"CATEGORY\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"17787\"", "question_refine": "what is lab test name and lab test category of subject id 17787?", "key": "8f5493ee584c51f03ef9579a071809eb"}
{"format": {"agg_col": [[0, 3], [0, 16]], "table": [0], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "primary", "disease", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is marital status and primary disease of subject id 4589?", "key": "0c07221b2c2484620093c9a79cee3a13"}
{"format": {"agg_col": [[0, 4], [0, 13]], "table": [0], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "death", "status", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is age and death status of subject id 4589?", "key": "07f0e3c655d09ea2d3886a5d981798d9"}
{"format": {"agg_col": [[0, 8], [0, 13]], "table": [0], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "and", "death", "status", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"religion\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is religion and death status of subject id 4589?", "key": "0d9c835c74f82a7ac15ff2fd3e62ff33"}
{"format": {"agg_col": [[0, 10], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is days of hospital stay and diagnoses icd9 code of subject id 4589?", "key": "0efacb3835583867e1d4ae5ef2e93a42"}
{"format": {"agg_col": [[0, 16], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is primary disease and procedure icd9 code of subject id 4589?", "key": "005e995d08f73daf175a5dc01609b2c4"}
{"format": {"agg_col": [[0, 9], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 91588]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "91588", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"91588\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"91588\"", "question_refine": "what is admission type and diagnoses short title of subject id 91588?", "key": "92fb353d2314296f863997a8c3222e89"}
{"format": {"agg_col": [[0, 21], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 91588]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "91588", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"91588\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"91588\"", "question_refine": "what is discharge time and procedure icd9 code of subject id 91588?", "key": "0d3ca391f292a21d141383a2c31b76eb"}
{"format": {"agg_col": [[0, 6], [2, 3]], "table": [0, 2], "cond": [[0, 0, 0, 7578]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "procedure", "short", "title", "of", "subject", "i", "d", "7578", "?"], "sql_tok": ["select", "demographic.\"gender\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"7578\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"7578\"", "question_refine": "what is gender and procedure short title of subject id 7578?", "key": "a8548cc3da3f7647e4b65fbcb65de4f3"}
{"format": {"agg_col": [[0, 3], [0, 12]], "table": [0], "cond": [[0, 0, 0, 76446]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "ethnicity", "of", "subject", "i", "d", "76446", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"76446\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"76446\"", "question_refine": "what is marital status and ethnicity of subject id 76446?", "key": "900f55c158193f37d975c8fdc34ff9ea"}
{"format": {"agg_col": [[0, 4], [0, 6]], "table": [0], "cond": [[0, 0, 0, 84129]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "gender", "of", "subject", "i", "d", "84129", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"84129\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"84129\"", "question_refine": "what is age and gender of subject id 84129?", "key": "9c874fe6e6c7f98ee202077204a7da76"}
{"format": {"agg_col": [[0, 6], [0, 20]], "table": [0], "cond": [[0, 0, 0, 84129]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "admission", "time", "of", "subject", "i", "d", "84129", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"84129\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"84129\"", "question_refine": "what is gender and admission time of subject id 84129?", "key": "84b0290e9818cc962a5314dbfa000d95"}
{"format": {"agg_col": [[0, 9], [0, 15]], "table": [0], "cond": [[0, 0, 0, 17570]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "discharge", "location", "of", "subject", "i", "d", "17570", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17570\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17570\"", "question_refine": "what is admission type and discharge location of subject id 17570?", "key": "0acae8b8eed1e67cb616c7a2daa79ff9"}
{"format": {"agg_col": [[0, 13], [0, 20]], "table": [0], "cond": [[0, 0, 0, 17570]], "sel": 0}, "question_refine_tok": ["what", "is", "death", "status", "and", "admission", "time", "of", "subject", "i", "d", "17570", "?"], "sql_tok": ["select", "demographic.\"expire_flag\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17570\""], "sql": "SELECT DEMOGRAPHIC.\"EXPIRE_FLAG\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17570\"", "question_refine": "what is death status and admission time of subject id 17570?", "key": "9bc647942515a09bbe2ff57ebcd61548"}
{"format": {"agg_col": [[2, 4]], "table": [2], "cond": [[2, 0, 0, 14755]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "subject", "i", "d", "14755", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"14755\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"14755\"", "question_refine": "what is procedure long title of subject id 14755?", "key": "0c27eb4d99b5a50b55dcea73a2a9f54f"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 14755]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "14755", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"14755\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"14755\"", "question_refine": "what is primary disease and diagnoses short title of subject id 14755?", "key": "b9ab5cd512dc4b1ef951bf1b2ae7c4b4"}
{"format": {"agg_col": [[0, 14], [0, 20]], "table": [0], "cond": [[0, 0, 0, 85673]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "admission", "time", "of", "subject", "i", "d", "85673", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"85673\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"85673\"", "question_refine": "what is admission location and admission time of subject id 85673?", "key": "0db15c35e6c41cf480f6713995234237"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 85673]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "85673", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"85673\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"85673\"", "question_refine": "what is primary disease and diagnoses short title of subject id 85673?", "key": "a57641d52d641c6d2ad66a4940f1907d"}
{"format": {"agg_col": [[0, 9], [0, 14]], "table": [0], "cond": [[0, 0, 0, 25543]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "location", "of", "subject", "i", "d", "25543", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"25543\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"25543\"", "question_refine": "what is admission type and admission location of subject id 25543?", "key": "883cbf3acbf8e13c98474bd9646d166c"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 0, 0, 26285]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "i", "d", "26285", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"26285\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"26285\"", "question_refine": "what is insurance of subject id 26285?", "key": "92413ed17c3ba949012342e10ea2d3eb"}
{"format": {"agg_col": [[0, 15], [0, 16]], "table": [0], "cond": [[0, 0, 0, 26285]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "and", "primary", "disease", "of", "subject", "i", "d", "26285", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"26285\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"26285\"", "question_refine": "what is discharge location and primary disease of subject id 26285?", "key": "9fc8f707889402c55fd06f0f86b6dae0"}
{"format": {"agg_col": [[0, 10], [0, 15]], "table": [0], "cond": [[0, 0, 0, 18351]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "discharge", "location", "of", "subject", "i", "d", "18351", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"18351\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18351\"", "question_refine": "what is days of hospital stay and discharge location of subject id 18351?", "key": "08dc87e4a9287db3def0945eeed8fee6"}
{"format": {"agg_col": [[1, 2], [1, 4]], "table": [1], "cond": [[1, 0, 0, 18351]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "icd9", "code", "and", "diagnoses", "long", "title", "of", "subject", "i", "d", "18351", "?"], "sql_tok": ["select", "diagnoses.\"icd9_code\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"18351\""], "sql": "SELECT DIAGNOSES.\"ICD9_CODE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"18351\"", "question_refine": "what is diagnoses icd9 code and diagnoses long title of subject id 18351?", "key": "9fb423ffd840af9eb8e6369bfd236cbd"}
{"format": {"agg_col": [[1, 3], [1, 4]], "table": [1], "cond": [[1, 0, 0, 18351]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "diagnoses", "long", "title", "of", "subject", "i", "d", "18351", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"18351\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"18351\"", "question_refine": "what is diagnoses short title and diagnoses long title of subject id 18351?", "key": "84d8e114a207be5d52e10d970eb77b2d"}
{"format": {"agg_col": [[0, 9], [0, 20]], "table": [0], "cond": [[0, 0, 0, 17595]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "time", "of", "subject", "i", "d", "17595", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17595\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17595\"", "question_refine": "what is admission type and admission time of subject id 17595?", "key": "03eedd461511a1af0baa8f05815fca31"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 0, 0, 18372]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "i", "d", "18372", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"18372\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18372\"", "question_refine": "what is insurance of subject id 18372?", "key": "a488c5129d8241bbe3dd4224e84a6966"}
{"format": {"agg_col": [[0, 9], [2, 3]], "table": [0, 2], "cond": [[0, 0, 0, 18372]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "procedure", "short", "title", "of", "subject", "i", "d", "18372", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18372\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18372\"", "question_refine": "what is admission type and procedure short title of subject id 18372?", "key": "02f8dd7774d30589e41d84979f58ce9e"}
{"format": {"agg_col": [[0, 10], [4, 8]], "table": [0, 4], "cond": [[0, 0, 0, 18372]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "lab", "test", "category", "of", "subject", "i", "d", "18372", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "lab.\"category\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18372\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",LAB.\"CATEGORY\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18372\"", "question_refine": "what is days of hospital stay and lab test category of subject id 18372?", "key": "ac54a82fadd7f1ed60b5f097dcccc668"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 0, 0, 43220]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "i", "d", "43220", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"43220\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"43220\"", "question_refine": "what is admission type of subject id 43220?", "key": "ac525e56df0431370a3602e15ee25b9b"}
{"format": {"agg_col": [[0, 6]], "table": [0], "cond": [[0, 0, 0, 15061]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "of", "subject", "i", "d", "15061", "?"], "sql_tok": ["select", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15061\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15061\"", "question_refine": "what is gender of subject id 15061?", "key": "057a0a3ac122c6beeb2e96672cd199bb"}
{"format": {"agg_col": [[0, 5]], "table": [0], "cond": [[0, 0, 0, 74463]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "of", "subject", "i", "d", "74463", "?"], "sql_tok": ["select", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"74463\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74463\"", "question_refine": "what is date of birth of subject id 74463?", "key": "0544e73e214a56960c9f5b987528deae"}
{"format": {"agg_col": [[4, 2], [4, 4]], "table": [4], "cond": [[4, 0, 0, 22377]], "sel": 0}, "question_refine_tok": ["what", "is", "item", "i", "d", "and", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "22377", "?"], "sql_tok": ["select", "lab.\"itemid\"", "lab.\"flag\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"22377\""], "sql": "SELECT LAB.\"ITEMID\",LAB.\"FLAG\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"22377\"", "question_refine": "what is item id and lab test abnormal status of subject id 22377?", "key": "a54b66567c23a6ca8e774a4507f148c5"}
{"format": {"agg_col": [[2, 2]], "table": [2], "cond": [[2, 0, 0, 1875]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "of", "subject", "i", "d", "1875", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"1875\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"1875\"", "question_refine": "what is procedure icd9 code of subject id 1875?", "key": "05a7c3b6372bf41e57ed975badd14080"}
{"format": {"agg_col": [[0, 20], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 1875]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "1875", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"1875\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"1875\"", "question_refine": "what is admission time and diagnoses icd9 code of subject id 1875?", "key": "8a0ddd453e433d0189e15fe7e1259821"}
{"format": {"agg_col": [[0, 21], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 1875]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "1875", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"1875\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"1875\"", "question_refine": "what is discharge time and diagnoses short title of subject id 1875?", "key": "0b8b878c3c9bf9cfc59e3c2528341dfa"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 8440]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "8440", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"8440\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"8440\"", "question_refine": "what is primary disease and diagnoses short title of subject id 8440?", "key": "07f753a76f9e4833bde8ba792b3b14c9"}
{"format": {"agg_col": [[0, 10], [0, 15]], "table": [0], "cond": [[0, 0, 0, 11221]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "discharge", "location", "of", "subject", "i", "d", "11221", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"11221\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"11221\"", "question_refine": "what is days of hospital stay and discharge location of subject id 11221?", "key": "8e805d4d6cc73e525091b4a6fab529c6"}
{"format": {"agg_col": [[0, 5]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is date of birth of subject name stephanie suchan?", "key": "097b18ee7c4e8dd38cc66dd22ba9274a"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 2, 0, "Edward Castillo"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "name", "edward", "castillo", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"edward", "castillo\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Edward Castillo\"", "question_refine": "what is admission type of subject name edward castillo?", "key": "0f58d7c3462afbaf1092a9aaca163031"}
{"format": {"agg_col": [[0, 16], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Bessie Giordano"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "admission", "time", "of", "subject", "name", "bessie", "giordano", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"bessie", "giordano\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Bessie Giordano\"", "question_refine": "what is primary disease and admission time of subject name bessie giordano?", "key": "0709ceb7a5a37d731d4c3fb50129fc8b"}
{"format": {"agg_col": [[4, 2], [4, 6]], "table": [0, 4], "cond": [[0, 2, 0, "Chandra Schulman"]], "sel": 0}, "question_refine_tok": ["what", "is", "item", "i", "d", "and", "lab", "test", "name", "of", "subject", "name", "chandra", "schulman", "?"], "sql_tok": ["select", "lab.\"itemid\"", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"chandra", "schulman\""], "sql": "SELECT LAB.\"ITEMID\",LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Chandra Schulman\"", "question_refine": "what is item id and lab test name of subject name chandra schulman?", "key": "0b3cc42f4f1d52225bcdb7f071c2b474"}
{"format": {"agg_col": [[0, 9], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Jonathan Wiggins"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "primary", "disease", "of", "subject", "name", "jonathan", "wiggins", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jonathan", "wiggins\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jonathan Wiggins\"", "question_refine": "what is admission type and primary disease of subject name jonathan wiggins?", "key": "9b4df08cff80e56aef9dc4d37513e33e"}
{"format": {"agg_col": [[0, 14], [0, 15]], "table": [0], "cond": [[0, 2, 0, "Elizabeth Bateman"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "discharge", "location", "of", "subject", "name", "elizabeth", "bateman", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"elizabeth", "bateman\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Elizabeth Bateman\"", "question_refine": "what is admission location and discharge location of subject name elizabeth bateman?", "key": "08dbe3cffc1c334b730854b6454b0bb9"}
{"format": {"agg_col": [[0, 5], [0, 20]], "table": [0], "cond": [[0, 2, 0, "John Gartman"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "time", "of", "subject", "name", "john", "gartman", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"john", "gartman\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"John Gartman\"", "question_refine": "what is date of birth and admission time of subject name john gartman?", "key": "0d8668ce9bb2d5b309822a5b89240277"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 2, 0, "Charles Deshay"]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "name", "charles", "deshay", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"charles", "deshay\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Charles Deshay\"", "question_refine": "what is language of subject name charles deshay?", "key": "85d8a21277604d575ed70aa8589ef037"}
{"format": {"agg_col": [[0, 5], [0, 6]], "table": [0], "cond": [[0, 2, 0, "Lue White"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "gender", "of", "subject", "name", "lue", "white", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"lue", "white\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Lue White\"", "question_refine": "what is date of birth and gender of subject name lue white?", "key": "918aed487b54ba746f5dca74673a1e95"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 2, 0, "Cynthia Gomez"]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "name", "cynthia", "gomez", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"cynthia", "gomez\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Cynthia Gomez\"", "question_refine": "what is language of subject name cynthia gomez?", "key": "956004d9684063facaa523ae15a86fed"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 2, 0, "Alice Nixon"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "name", "alice", "nixon", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"alice", "nixon\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Alice Nixon\"", "question_refine": "what is admission location of subject name alice nixon?", "key": "8b107fae68ba2796d3985f4bf3a26324"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 2, 0, "Ida Cook"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "name", "ida", "cook", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"ida", "cook\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Ida Cook\"", "question_refine": "what is admission type of subject name ida cook?", "key": "0cdaeea27c2f1e7de2ef4c3f9622d5cb"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Troy Friedman"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "troy", "friedman", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"troy", "friedman\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Troy Friedman\"", "question_refine": "what is days of hospital stay of subject name troy friedman?", "key": "a630f58e3b1231385d4ebbb1edbb136d"}
{"format": {"agg_col": [[0, 10], [0, 14]], "table": [0], "cond": [[0, 2, 0, "Troy Friedman"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "location", "of", "subject", "name", "troy", "friedman", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"troy", "friedman\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Troy Friedman\"", "question_refine": "what is days of hospital stay and admission location of subject name troy friedman?", "key": "871b48c28ceee54f43ba16f2a5d5dd15"}
{"format": {"agg_col": [[0, 16], [1, 2]], "table": [0, 1], "cond": [[0, 2, 0, "Bruce Harris"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "icd9", "code", "of", "subject", "name", "bruce", "harris", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"bruce", "harris\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Bruce Harris\"", "question_refine": "what is primary disease and diagnoses icd9 code of subject name bruce harris?", "key": "9e02c9f4d586d088bda7a218471308b9"}
{"format": {"agg_col": [[0, 14], [0, 15]], "table": [0], "cond": [[0, 2, 0, "Thomas Jeanbaptiste"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "discharge", "location", "of", "subject", "name", "thomas", "jeanbaptiste", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"thomas", "jeanbaptiste\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Thomas Jeanbaptiste\"", "question_refine": "what is admission location and discharge location of subject name thomas jeanbaptiste?", "key": "01274bda0990333efe5fa68ca23a1718"}
{"format": {"agg_col": [[2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Lawrence Wibbens"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "name", "lawrence", "wibbens", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"lawrence", "wibbens\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Lawrence Wibbens\"", "question_refine": "what is procedure short title of subject name lawrence wibbens?", "key": "bb3c00803833e41059a3bff677c51b73"}
{"format": {"agg_col": [[1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Tracy Farmer"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "of", "subject", "name", "tracy", "farmer", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"tracy", "farmer\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Tracy Farmer\"", "question_refine": "what is diagnoses short title of subject name tracy farmer?", "key": "977ecca508723a7bb321e261d6c47f72"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 2, 0, "Jane Dillard"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "name", "jane", "dillard", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jane", "dillard\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jane Dillard\"", "question_refine": "what is admission type of subject name jane dillard?", "key": "8523810ad3d2b35ea44fef5080962db1"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 2, 0, "Anna Johnson"]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "name", "anna", "johnson", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"anna", "johnson\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Anna Johnson\"", "question_refine": "what is language of subject name anna johnson?", "key": "86d07eae693396f6aead63e691ef2627"}
{"format": {"agg_col": [[0, 13], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Walter Locher"]], "sel": 0}, "question_refine_tok": ["what", "is", "death", "status", "and", "primary", "disease", "of", "subject", "name", "walter", "locher", "?"], "sql_tok": ["select", "demographic.\"expire_flag\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"walter", "locher\""], "sql": "SELECT DEMOGRAPHIC.\"EXPIRE_FLAG\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Walter Locher\"", "question_refine": "what is death status and primary disease of subject name walter locher?", "key": "8c1239d9e940eb0ebcff0e32c2c18d7b"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Hector Blair"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "hector", "blair", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"hector", "blair\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Hector Blair\"", "question_refine": "what is primary disease of subject name hector blair?", "key": "0521be1733cdf14bfb3164d5bc911bbf"}
{"format": {"agg_col": [[0, 13], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Joseph Dillman"]], "sel": 0}, "question_refine_tok": ["what", "is", "death", "status", "and", "primary", "disease", "of", "subject", "name", "joseph", "dillman", "?"], "sql_tok": ["select", "demographic.\"expire_flag\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"joseph", "dillman\""], "sql": "SELECT DEMOGRAPHIC.\"EXPIRE_FLAG\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Joseph Dillman\"", "question_refine": "what is death status and primary disease of subject name joseph dillman?", "key": "8434959e3330dc710ffe491da1f8652a"}
{"format": {"agg_col": [[0, 3]], "table": [0], "cond": [[0, 2, 0, "Brian Brock"]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "of", "subject", "name", "brian", "brock", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"brian", "brock\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Brian Brock\"", "question_refine": "what is marital status of subject name brian brock?", "key": "854f86a9a79899086eb022b3f0a6fb37"}
{"format": {"agg_col": [[0, 16], [2, 2]], "table": [0, 2], "cond": [[0, 2, 0, "Brian Brock"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "icd9", "code", "of", "subject", "name", "brian", "brock", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"brian", "brock\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Brian Brock\"", "question_refine": "what is primary disease and procedure icd9 code of subject name brian brock?", "key": "0be089824bb2caf402523cf69d0356a8"}
{"format": {"agg_col": [[0, 21]], "table": [0], "cond": [[0, 2, 0, "Dawn Cooper"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "of", "subject", "name", "dawn", "cooper", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"dawn", "cooper\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Dawn Cooper\"", "question_refine": "what is discharge time of subject name dawn cooper?", "key": "a41111f8a4127aa5b8e8d59c2162e99d"}
{"format": {"agg_col": [[0, 10], [2, 2]], "table": [0, 2], "cond": [[0, 2, 0, "Jeff Jarvis"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "procedure", "icd9", "code", "of", "subject", "name", "jeff", "jarvis", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"jeff", "jarvis\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jeff Jarvis\"", "question_refine": "what is days of hospital stay and procedure icd9 code of subject name jeff jarvis?", "key": "826d5098068860a440ae7a843a7e90df"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 2, 0, "Michael Witt"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "name", "michael", "witt", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"michael", "witt\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Michael Witt\"", "question_refine": "what is admission location of subject name michael witt?", "key": "930137d96be60c455240dc71e1aff79b"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Michael Witt"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "michael", "witt", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"michael", "witt\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Michael Witt\"", "question_refine": "what is primary disease of subject name michael witt?", "key": "9e90f00cc0c6d266800eea37d3d08242"}
{"format": {"agg_col": [[0, 4], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Steven Sepulveda"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "primary", "disease", "of", "subject", "name", "steven", "sepulveda", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"steven", "sepulveda\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Steven Sepulveda\"", "question_refine": "what is age and primary disease of subject name steven sepulveda?", "key": "ae3c7627e3ba7750105510476460e8e4"}
{"format": {"agg_col": [[0, 16], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Steven Sepulveda"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "short", "title", "of", "subject", "name", "steven", "sepulveda", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"steven", "sepulveda\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Steven Sepulveda\"", "question_refine": "what is primary disease and procedure short title of subject name steven sepulveda?", "key": "8992cac76fa0ec727f4a010671a5ce78"}
{"format": {"agg_col": [[0, 15], [1, 4]], "table": [0, 1], "cond": [[0, 2, 0, "James Sloan"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "and", "diagnoses", "long", "title", "of", "subject", "name", "james", "sloan", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"james", "sloan\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"James Sloan\"", "question_refine": "what is discharge location and diagnoses long title of subject name james sloan?", "key": "87f5b4b9f0dde37c48f8c9c18eeff623"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "55221"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "55221", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"55221\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"55221\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code 55221?", "key": "9b805afb13a94b6007d685fa0474e38f"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "V202"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "v202", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"v202\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"V202\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code v202?", "key": "9f47c8570c1f03b0c2ced60a72ab7677"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 2, 0, 540]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "procedure", "icd9", "code", "540", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"540\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"540\"", "question_refine": "what is procedure short title of procedure icd9 code 540?", "key": "a94595edf4ac21c5e9a133c27d329a9c"}
{"format": {"agg_col": [[2, 4]], "table": [2], "cond": [[2, 2, 0, 9955]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "procedure", "icd9", "code", "9955", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"9955\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"9955\"", "question_refine": "what is procedure long title of procedure icd9 code 9955?", "key": "8a69b24d8c7e69c40ff4414c274c3334"}
{"format": {"agg_col": [[2, 4]], "table": [2], "cond": [[2, 2, 0, 5187]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "procedure", "icd9", "code", "5187", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"5187\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"5187\"", "question_refine": "what is procedure long title of procedure icd9 code 5187?", "key": "8a0a842d1334dfa7180ee679318ee712"}
{"format": {"agg_col": [[2, 4]], "table": [2], "cond": [[2, 2, 0, 331]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "procedure", "icd9", "code", "331", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"331\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"331\"", "question_refine": "what is procedure long title of procedure icd9 code 331?", "key": "9d22d5180be72d9ae37019d4cc5355aa"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Nitroglycerin SL"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "nitroglycerin", "sl", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"nitroglycerin", "sl\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Nitroglycerin SL\"", "question_refine": "what is drug route of drug name nitroglycerin sl?", "key": "a41467630e807935e79cb022a27386f1"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Voriconazole"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "voriconazole", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"voriconazole\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Voriconazole\"", "question_refine": "what is drug route of drug name voriconazole?", "key": "909ad924fee93b6c35acb207ab2c0aa6"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Pantoprazole Sodium"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "pantoprazole", "sodium", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"pantoprazole", "sodium\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Pantoprazole Sodium\"", "question_refine": "what is drug type of drug name pantoprazole sodium?", "key": "0368765dff658003bb0615f3d9a2cc15"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Influenza Virus Vaccine"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "name", "influenza", "virus", "vaccine", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"influenza", "virus", "vaccine\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Influenza Virus Vaccine\"", "question_refine": "what is drug type and drug route of drug name influenza virus vaccine?", "key": "0bf9d7f3a5120ea9a6a3ca724295956f"}
{"format": {"agg_col": [[3, 3], [3, 5]], "table": [3], "cond": [[3, 4, 0, "BusPIRone"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "code", "of", "drug", "name", "buspirone", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"buspirone\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"BusPIRone\"", "question_refine": "what is drug type and drug code of drug name buspirone?", "key": "9672299032071a605af23175e0e6462a"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Propafenone HCl"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "propafenone", "hcl", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"propafenone", "hcl\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Propafenone HCl\"", "question_refine": "what is drug code and drug route of drug name propafenone hcl?", "key": "041461cfd563e6b139f3910205ec8e31"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Syringe (Neonatal) *NS*"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "syringe", "(", "neonatal", ")", "*", "ns", "*", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"syringe", "(neonatal)", "*ns*\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Syringe (Neonatal) *NS*\"", "question_refine": "what is drug type of drug name syringe (neonatal) *ns*?", "key": "9e3cfd2e5e89645062b52d0d1689bdf8"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Aloe Vesta 2-n-1 Skin Cond"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "aloe", "vesta", "2-n-1", "skin", "cond", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"aloe", "vesta", "2-n-1", "skin", "cond\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Aloe Vesta 2-n-1 Skin Cond\"", "question_refine": "what is drug type of drug name aloe vesta 2-n-1 skin cond?", "key": "883d0c58235fc68431a9f70aebbcfef0"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Doxazosin"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "doxazosin", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"doxazosin\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Doxazosin\"", "question_refine": "what is drug code and drug route of drug name doxazosin?", "key": "9d1a610fdeca814a481fcfd2f4cfa096"}
{"format": {"agg_col": [[3, 3], [3, 7]], "table": [3], "cond": [[3, 4, 0, "Sulfameth/Trimethoprim SS"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "dose", "of", "drug", "name", "sulfameth", "/", "trimethoprim", "ss", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"drug_dose\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"sulfameth/trimethoprim", "ss\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"DRUG_DOSE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Sulfameth/Trimethoprim SS\"", "question_refine": "what is drug type and drug dose of drug name sulfameth/trimethoprim ss?", "key": "883ecfb800b0c4b36ebd64104466e0f6"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Verapamil"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "verapamil", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"verapamil\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Verapamil\"", "question_refine": "what is drug type of drug name verapamil?", "key": "ad9639c2db4c65c6915b2a114ae57120"}
{"format": {"agg_col": [[3, 7]], "table": [3], "cond": [[3, 4, 0, "Ciprofloxacin HCl"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "dose", "of", "drug", "name", "ciprofloxacin", "hcl", "?"], "sql_tok": ["select", "prescriptions.\"drug_dose\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"ciprofloxacin", "hcl\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_DOSE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Ciprofloxacin HCl\"", "question_refine": "what is drug dose of drug name ciprofloxacin hcl?", "key": "8bc1ba8beae9d3ce8225bd222807b6e1"}
{"format": {"agg_col": [[3, 7]], "table": [3], "cond": [[3, 4, 0, "Phenytoin"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "dose", "of", "drug", "name", "phenytoin", "?"], "sql_tok": ["select", "prescriptions.\"drug_dose\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"phenytoin\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_DOSE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Phenytoin\"", "question_refine": "what is drug dose of drug name phenytoin?", "key": "85671350a5e7d5eabae7a7db6d354c3e"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 5, 0, "SIMV10"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "code", "simv10", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"simv10\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"SIMV10\"", "question_refine": "what is drug type of drug code simv10?", "key": "9c1c35eddfb5255336f3f65345362e25"}
{"format": {"agg_col": [[3, 4], [3, 6]], "table": [3], "cond": [[3, 5, 0, "AMID200"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "and", "drug", "route", "of", "drug", "code", "amid200", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"amid200\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"AMID200\"", "question_refine": "what is drug name and drug route of drug code amid200?", "key": "09686154a6c5de8615e367108e4e631d"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 5, 0, "NABC50S"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "code", "nabc50s", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"nabc50s\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"NABC50S\"", "question_refine": "what is drug route of drug code nabc50s?", "key": "93071743563d2991581ad4f1a614e467"}
{"format": {"agg_col": [[3, 4], [3, 6]], "table": [3], "cond": [[3, 5, 0, "ASA325"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "and", "drug", "route", "of", "drug", "code", "asa325", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"asa325\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ASA325\"", "question_refine": "what is drug name and drug route of drug code asa325?", "key": "a6ee3501998234967c1043a5887f7a1b"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 5, 0, "SW100MLG"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "code", "sw100mlg", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"sw100mlg\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"SW100MLG\"", "question_refine": "what is drug type of drug code sw100mlg?", "key": "95b0e70cd8bee14bf017dc8fe3fef244"}
{"format": {"agg_col": [[3, 4], [3, 6]], "table": [3], "cond": [[3, 5, 0, "NYST500T"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "and", "drug", "route", "of", "drug", "code", "nyst500", "t", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"nyst500t\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"NYST500T\"", "question_refine": "what is drug name and drug route of drug code nyst500t?", "key": "0a0f24160b5c1caf4686cf54d67538fe"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 5, 0, "KPHO45I"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "code", "kpho45i", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"kpho45i\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"KPHO45I\"", "question_refine": "what is drug type and drug route of drug code kpho45i?", "key": "ad62d9f1b61bd4c0afaf821ea25bb809"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "SINGLE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\"", "question_refine": "what is the number of patients whose marital status is single?", "key": "884a573f35d019b3bb0fe434ad5a2d78"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "URGENT"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\"", "question_refine": "provide the number of patients whose admission type is urgent?", "key": "9bd46aa88780c8ffc2597327bfa6d9bd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 18, 2, 2146]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2146", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", "<", "\"2146\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2146\"", "question_refine": "give me the number of patients whose year of birth is less than 2146?", "key": "0184df207ef06907df1fb65797ab9b69"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "42842"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "42842", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"42842\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"42842\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 42842?", "key": "9e2e39278d691cbd1bca1da3cfca362f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "2920"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "2920", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"2920\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"2920\"", "question_refine": "what is the number of patients whose diagnoses icd9 code is 2920?", "key": "97d303ec02cd44af836860b5bbec1d68"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Hx traumatic fracture"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "hx", "traumatic", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"hx", "traumatic", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Hx traumatic fracture\"", "question_refine": "count the number of patients whose diagnoses short title is hx traumatic fracture?", "key": "04531e28c38575a4a2bdca04faa8c77b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 41]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "41", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"41\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"41\"", "question_refine": "count the number of patients whose procedure icd9 code is 41?", "key": "aaaa09cf4ad17119ae748e7b44f1d7c6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 4, 0, "Arthrocentesis"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "arthrocentesis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"long_title\"", "=", "\"arthrocentesis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Arthrocentesis\"", "question_refine": "count the number of patients whose procedure long title is arthrocentesis?", "key": "88f2ae995e293195ccf9d017638d422c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Potassium Chloride (Powder)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "potassium", "chloride", "(", "powder", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"potassium", "chloride", "(powder)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Potassium Chloride (Powder)\"", "question_refine": "give me the number of patients whose drug name is potassium chloride (powder)?", "key": "87d3070d03de888cbc5b8b08d0b7a471"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "RIS1L"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "drug", "code", "is", "ris1l", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"ris1l\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"RIS1L\"", "question_refine": "what is the number of patients whose drug code is ris1l?", "key": "9aaae00ca767b3d793f63b3cf50e3542"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "ZOSY4FPB"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "zosy4fpb", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"zosy4fpb\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ZOSY4FPB\"", "question_refine": "provide the number of patients whose drug code is zosy4fpb?", "key": "9e44eba73424833811971163b94d92f3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "OXYM15"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "drug", "code", "is", "oxym15", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"oxym15\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"OXYM15\"", "question_refine": "count the number of patients whose drug code is oxym15?", "key": "8ed7381131391075a911f31c05c9e3ed"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "VORI200"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "vori200", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"vori200\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"VORI200\"", "question_refine": "how many patients whose drug code is vori200?", "key": "8ee267d3ebb2638adb49055bf5643383"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50802]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50802", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"50802\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50802\"", "question_refine": "what is the number of patients whose item id is 50802?", "key": "aa660f69986b6a3c7a9f71b58ef849d6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50922]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50922", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"50922\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50922\"", "question_refine": "give me the number of patients whose item id is 50922?", "key": "008452ec0d8e3074023da5b599850454"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Magnesium, Urine"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "magnesium", ",", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"magnesium", "urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Magnesium, Urine\"", "question_refine": "count the number of patients whose lab test name is magnesium, urine?", "key": "0a1dcb8cb5d013e3feb7229a7b8ac869"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Glucose, CSF"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "glucose", ",", "csf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"glucose", "csf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Glucose, CSF\"", "question_refine": "give me the number of patients whose lab test name is glucose, csf?", "key": "a848894f5b91889403e955cc65b906b8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr", ";", "?", "maze", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr;", "?", "maze\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE\"", "question_refine": "count the number of patients whose marital status is married and primary disease is coronary artery disease\\coronary artery bypass graft with mvr; ? maze?", "key": "9fd1f00aa01bc66079062d70eff0e854"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 16, 0, "GUILLAIN BARRE SYNDROME"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "primary", "disease", "is", "guillain", "barre", "syndrome", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"diagnosis\"", "=", "\"guillain", "barre", "syndrome\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"GUILLAIN BARRE SYNDROME\"", "question_refine": "give me the number of patients whose gender is m and primary disease is guillain barre syndrome?", "key": "0feb6c94275dae4ee5dc08799c8e771b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 2, 89]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "less", "than", "89", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", "<", "\"89\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" < \"89\"", "question_refine": "give me the number of patients whose gender is f and age is less than 89?", "key": "9784119760b70ee84b43a5775f019e0c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 2, 0, "5119"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "icd9", "code", "is", "5119", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "diagnoses.\"icd9_code\"", "=", "\"5119\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DIAGNOSES.\"ICD9_CODE\" = \"5119\"", "question_refine": "how many patients whose gender is m and diagnoses icd9 code is 5119?", "key": "8c655677cdaca2684d688418d197aed1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Constipation NOS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "constipation", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"short_title\"", "=", "\"constipation", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Constipation NOS\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is constipation nos?", "key": "8206c4526c7bf28ff92cc711d5e4eb9e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 18, 2, 2168]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "and", "year", "of", "birth", "is", "less", "than", "2168", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"dob_year\"", "<", "\"2168\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2168\"", "question_refine": "what is the number of patients whose admission type is newborn and year of birth is less than 2168?", "key": "ac6c964a4c0b2e2ccf71af7ff7e02fac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 6, 0, "Lactate"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "lab", "test", "name", "is", "lactate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "lab.\"label\"", "=", "\"lactate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND LAB.\"LABEL\" = \"Lactate\"", "question_refine": "what is the number of patients whose admission type is elective and lab test name is lactate?", "key": "808ab7ccfd71b1f2114350a202cbae90"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "Ferritin"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "ferritin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "lab.\"label\"", "=", "\"ferritin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND LAB.\"LABEL\" = \"Ferritin\"", "question_refine": "count the number of patients whose admission type is emergency and lab test name is ferritin?", "key": "96c68e89c04906418748aa32f756ecae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 3, 0, "Portal hypertension"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "short", "title", "is", "portal", "hypertension", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "diagnoses.\"short_title\"", "=", "\"portal", "hypertension\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Portal hypertension\"", "question_refine": "what is the number of patients whose ethnicity is white and diagnoses short title is portal hypertension?", "key": "9dc64d2612463b12a1c7a0fff2cb8a79"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 3, 0, "Pleural effusion NOS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "short", "title", "is", "pleural", "effusion", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "diagnoses.\"short_title\"", "=", "\"pleural", "effusion", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Pleural effusion NOS\"", "question_refine": "what is the number of patients whose ethnicity is white and diagnoses short title is pleural effusion nos?", "key": "07495e00ef62b05d9783f9928d656d1f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA"], [0, 10, 1, 26]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sigmoid", "diverticulitis", ",", "colovestical", "fistula", "/", "sda", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"sigmoid", "diverticulitis", "colovestical", "fistula/sda\"", "and", "demographic.\"days_stay\"", ">", "\"26\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"26\"", "question_refine": "what is the number of patients whose primary disease is sigmoid diverticulitis, colovestical fistula/sda and days of hospital stay is greater than 26?", "key": "0e8272658be25dcd6baac667cfc23de8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "GUILLAIN BARRE SYNDROME"], [0, 10, 1, 10]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "guillain", "barre", "syndrome", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "10", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"guillain", "barre", "syndrome\"", "and", "demographic.\"days_stay\"", ">", "\"10\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GUILLAIN BARRE SYNDROME\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"10\"", "question_refine": "how many patients whose primary disease is guillain barre syndrome and days of hospital stay is greater than 10?", "key": "ba4ce0085b3d0896060058362147c7a4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "VENTRICULAR TACHYCARDIA"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "ventricular", "tachycardia", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"ventricular", "tachycardia\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"VENTRICULAR TACHYCARDIA\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "how many patients whose primary disease is ventricular tachycardia and drug type is base?", "key": "89a0044a0f95cc0d7cc6757f5a6c4d6f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "ABDOMINAL ABSCESS"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "abdominal", "abscess", "and", "drug", "type", "is", "main", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"abdominal", "abscess\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL ABSCESS\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "provide the number of patients whose primary disease is abdominal abscess and drug type is main?", "key": "034ba91dc253e7717c3102b2a97d2f49"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "BRADYCARDIA"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bradycardia", "and", "lab", "test", "abnormal", "status", "is", "abnormal", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"bradycardia\"", "and", "lab.\"flag\"", "=", "\"abnormal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRADYCARDIA\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "give me the number of patients whose primary disease is bradycardia and lab test abnormal status is abnormal?", "key": "979a734ab882143afcde05bf1b13cbd9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 27], [0, 10, 1, 16]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "27", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "16", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"27\"", "and", "demographic.\"days_stay\"", ">", "\"16\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"27\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"16\"", "question_refine": "provide the number of patients whose age is less than 27 and days of hospital stay is greater than 16?", "key": "84ba1a3f8200ea0590903ea10ecc011c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 81], [1, 2, 0, "28522"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "81", "and", "diagnoses", "icd9", "code", "is", "28522", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"81\"", "and", "diagnoses.\"icd9_code\"", "=", "\"28522\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"81\" AND DIAGNOSES.\"ICD9_CODE\" = \"28522\"", "question_refine": "what is the number of patients whose age is less than 81 and diagnoses icd9 code is 28522?", "key": "06013ea409dea85892342d222c94f3dd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 56], [3, 4, 0, "Insulin Human Regular"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "56", "and", "drug", "name", "is", "insulin", "human", "regular", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"56\"", "and", "prescriptions.\"drug\"", "=", "\"insulin", "human", "regular\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"56\" AND PRESCRIPTIONS.\"DRUG\" = \"Insulin Human Regular\"", "question_refine": "provide the number of patients whose age is less than 56 and drug name is insulin human regular?", "key": "072bad6b44992233a722bf1135799e59"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 83], [3, 5, 0, "NTGBASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "83", "and", "drug", "code", "is", "ntgbase", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"83\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"ntgbase\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"83\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"NTGBASE\"", "question_refine": "what is the number of patients whose age is less than 83 and drug code is ntgbase?", "key": "8e7cd8188de5a262b484f55dbfdfb16a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 6], [1, 2, 0, "60000"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "diagnoses", "icd9", "code", "is", "60000", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"6\"", "and", "diagnoses.\"icd9_code\"", "=", "\"60000\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\" AND DIAGNOSES.\"ICD9_CODE\" = \"60000\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 6 and diagnoses icd9 code is 60000?", "key": "0765275a7a13477bb0464fab046ee5a0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2200], [2, 4, 0, "Endoscopic removal of stone(s) from biliary tract"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2200", "and", "procedure", "long", "title", "is", "endoscopic", "removal", "of", "stone(s", ")", "from", "biliary", "tract", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2200\"", "and", "procedures.\"long_title\"", "=", "\"endoscopic", "removal", "of", "stone(s)", "from", "biliary", "tract\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2200\" AND PROCEDURES.\"LONG_TITLE\" = \"Endoscopic removal of stone(s) from biliary tract\"", "question_refine": "provide the number of patients whose admission year is less than 2200 and procedure long title is endoscopic removal of stone(s) from biliary tract?", "key": "089c48c2efaae378b3bf7ee0d9fa4894"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Fx surg nck humerus-clos"], [3, 6, 0, "IV"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "fx", "surg", "nck", "humerus", "-", "clos", "and", "drug", "route", "is", "iv", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"fx", "surg", "nck", "humerus-clos\"", "and", "prescriptions.\"route\"", "=", "\"iv\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Fx surg nck humerus-clos\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV\"", "question_refine": "how many patients whose diagnoses short title is fx surg nck humerus-clos and drug route is iv?", "key": "8447e58e57394384f3f325e732cdd313"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Acute kidney failure NOS"], [3, 6, 0, "TP"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "acute", "kidney", "failure", "nos", "and", "drug", "route", "is", "tp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"acute", "kidney", "failure", "nos\"", "and", "prescriptions.\"route\"", "=", "\"tp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Acute kidney failure NOS\" AND PRESCRIPTIONS.\"ROUTE\" = \"TP\"", "question_refine": "how many patients whose diagnoses short title is acute kidney failure nos and drug route is tp?", "key": "93e86557c8c38990642ec50166303b6b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "DMI keto nt st uncntrld"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "dmi", "keto", "nt", "st", "uncntrld", "and", "lab", "test", "category", "is", "blood", "gas", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"dmi", "keto", "nt", "st", "uncntrld\"", "and", "lab.\"category\"", "=", "\"blood", "gas\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"DMI keto nt st uncntrld\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "provide the number of patients whose diagnoses short title is dmi keto nt st uncntrld and lab test category is blood gas?", "key": "06309c2f77f11d404ae955cf4e39d47b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Other Staphylococcus pneumonia"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "other", "staphylococcus", "pneumonia", "and", "lab", "test", "category", "is", "blood", "gas", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"other", "staphylococcus", "pneumonia\"", "and", "lab.\"category\"", "=", "\"blood", "gas\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Other Staphylococcus pneumonia\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "what is the number of patients whose diagnoses long title is other staphylococcus pneumonia and lab test category is blood gas?", "key": "870f5b622617243df5706ef4fa1a51da"}
{"format": {"agg_col": [[4, 2], [4, 5]], "table": [4], "cond": [[4, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "item", "i", "d", "and", "lab", "test", "value", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "lab.\"itemid\"", "lab.\"value_unit\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT LAB.\"ITEMID\",LAB.\"VALUE_UNIT\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is item id and lab test value of subject id 3343?", "key": "811e1ba5eb77fdade7bbd13a6f350757"}
{"format": {"agg_col": [[0, 16], [0, 20]], "table": [0], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "admission", "time", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is primary disease and admission time of subject id 4589?", "key": "0b265651dd99d7806feaa26008b010e8"}
{"format": {"agg_col": [[0, 5]], "table": [0], "cond": [[0, 0, 0, 18351]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "of", "subject", "i", "d", "18351", "?"], "sql_tok": ["select", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"18351\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18351\"", "question_refine": "what is date of birth of subject id 18351?", "key": "ad6a9c9720c5a63538b4bfe468e3cafa"}
{"format": {"agg_col": [[4, 6]], "table": [4], "cond": [[4, 0, 0, 19187]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "name", "of", "subject", "i", "d", "19187", "?"], "sql_tok": ["select", "lab.\"label\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"19187\""], "sql": "SELECT LAB.\"LABEL\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"19187\"", "question_refine": "what is lab test name of subject id 19187?", "key": "807ed8b40c34e53869ce863c6ed2489a"}
{"format": {"agg_col": [[0, 6], [0, 13]], "table": [0], "cond": [[0, 0, 0, 32418]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "death", "status", "of", "subject", "i", "d", "32418", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"32418\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"32418\"", "question_refine": "what is gender and death status of subject id 32418?", "key": "93b51307495b8a4c78161d7b0c6b6aaf"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 0, 0, 64208]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "64208", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"64208\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"64208\"", "question_refine": "what is days of hospital stay of subject id 64208?", "key": "90cfc504183abdca82e353ac2a4eca19"}
{"format": {"agg_col": [[0, 6], [0, 20]], "table": [0], "cond": [[0, 0, 0, 5027]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "admission", "time", "of", "subject", "i", "d", "5027", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"5027\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"5027\"", "question_refine": "what is gender and admission time of subject id 5027?", "key": "079611ace011a01f44e1b3128b020e0c"}
{"format": {"agg_col": [[0, 10], [0, 20]], "table": [0], "cond": [[0, 0, 0, 15061]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "time", "of", "subject", "i", "d", "15061", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"15061\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"15061\"", "question_refine": "what is days of hospital stay and admission time of subject id 15061?", "key": "06d97dfc2dbf8ef1b61c77f6450b09e2"}
{"format": {"agg_col": [[0, 10], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 74463]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "74463", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"74463\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74463\"", "question_refine": "what is days of hospital stay and diagnoses short title of subject id 74463?", "key": "0b70acfbd0281aad4f480933ffe64361"}
{"format": {"agg_col": [[1, 3], [2, 3]], "table": [1, 2], "cond": [[1, 0, 0, 74463]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "procedure", "short", "title", "of", "subject", "i", "d", "74463", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "procedures.\"short_title\"", "from", "diagnoses", "inner", "join", "procedures", "on", "diagnoses.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"74463\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",PROCEDURES.\"SHORT_TITLE\" FROM DIAGNOSES INNER JOIN PROCEDURES on DIAGNOSES.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"74463\"", "question_refine": "what is diagnoses short title and procedure short title of subject id 74463?", "key": "8404915c4b01e35617f74cf4e165a482"}
{"format": {"agg_col": [[0, 20], [3, 4]], "table": [0, 3], "cond": [[0, 0, 0, 42963]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "drug", "name", "of", "subject", "i", "d", "42963", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"42963\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42963\"", "question_refine": "what is admission time and drug name of subject id 42963?", "key": "0c634bd307fe322fe7635e7c501216fb"}
{"format": {"agg_col": [[0, 9], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Michelle Medina"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "primary", "disease", "of", "subject", "name", "michelle", "medina", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"michelle", "medina\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Michelle Medina\"", "question_refine": "what is admission type and primary disease of subject name michelle medina?", "key": "978abea4b2ca331bf1fe71cf4ef8e76b"}
{"format": {"agg_col": [[0, 4], [2, 2]], "table": [0, 2], "cond": [[0, 2, 0, "Estrella Carroll"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "procedure", "icd9", "code", "of", "subject", "name", "estrella", "carroll", "?"], "sql_tok": ["select", "demographic.\"age\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"estrella", "carroll\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Estrella Carroll\"", "question_refine": "what is age and procedure icd9 code of subject name estrella carroll?", "key": "967b4b86e33d04af0fe19b4704bc0947"}
{"format": {"agg_col": [[1, 2], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "John Gartman"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "icd9", "code", "and", "diagnoses", "short", "title", "of", "subject", "name", "john", "gartman", "?"], "sql_tok": ["select", "diagnoses.\"icd9_code\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"john", "gartman\""], "sql": "SELECT DIAGNOSES.\"ICD9_CODE\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"John Gartman\"", "question_refine": "what is diagnoses icd9 code and diagnoses short title of subject name john gartman?", "key": "84b5072282573a272fdb50327c7708c2"}
{"format": {"agg_col": [[0, 6], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Erik Dickerson"]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "admission", "time", "of", "subject", "name", "erik", "dickerson", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"erik", "dickerson\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Erik Dickerson\"", "question_refine": "what is gender and admission time of subject name erik dickerson?", "key": "8950462c2c058b210b4f8bf9ebd7df52"}
{"format": {"agg_col": [[0, 4], [0, 13]], "table": [0], "cond": [[0, 2, 0, "Lue White"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "death", "status", "of", "subject", "name", "lue", "white", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"lue", "white\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Lue White\"", "question_refine": "what is age and death status of subject name lue white?", "key": "88cafcb9bcbf8a5b2e3f0e23b9239292"}
{"format": {"agg_col": [[0, 5], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Lue White"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "time", "of", "subject", "name", "lue", "white", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"lue", "white\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Lue White\"", "question_refine": "what is date of birth and admission time of subject name lue white?", "key": "a91662962db8e07e736ab98af1360c0e"}
{"format": {"agg_col": [[0, 5], [0, 16]], "table": [0], "cond": [[0, 2, 0, "David Trammell"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "primary", "disease", "of", "subject", "name", "david", "trammell", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"david", "trammell\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"David Trammell\"", "question_refine": "what is date of birth and primary disease of subject name david trammell?", "key": "028b981e8d52156a2146d57c9afa795c"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 2, 0, "Herlinda Thomson"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "name", "herlinda", "thomson", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"herlinda", "thomson\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Herlinda Thomson\"", "question_refine": "what is admission time of subject name herlinda thomson?", "key": "a06c700768efa107c977fbd8f2d95989"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Sheila Riley"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "sheila", "riley", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"sheila", "riley\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Sheila Riley\"", "question_refine": "what is days of hospital stay of subject name sheila riley?", "key": "aa3c4803c0aca1c991037d46ab8891a2"}
{"format": {"agg_col": [[2, 2], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Alice Nixon"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "and", "procedure", "short", "title", "of", "subject", "name", "alice", "nixon", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"alice", "nixon\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Alice Nixon\"", "question_refine": "what is procedure icd9 code and procedure short title of subject name alice nixon?", "key": "09e03098584e026254e4f3b57ab3f524"}
{"format": {"agg_col": [[0, 15], [3, 2]], "table": [0, 3], "cond": [[0, 2, 0, "Dona Cole"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "and", "icu", "stay", "i", "d", "of", "subject", "name", "dona", "cole", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"dona", "cole\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\",PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Dona Cole\"", "question_refine": "what is discharge location and icu stay id of subject name dona cole?", "key": "ab0da7d05a345b85c091b469d2dc2d98"}
{"format": {"agg_col": [[0, 3], [0, 4]], "table": [0], "cond": [[0, 2, 0, "Orville Ford"]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "age", "of", "subject", "name", "orville", "ford", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"age\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"orville", "ford\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"AGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Orville Ford\"", "question_refine": "what is marital status and age of subject name orville ford?", "key": "a42b052cc593a90aed642a74ae195507"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Theresa Vedovelli"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "theresa", "vedovelli", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"theresa", "vedovelli\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Theresa Vedovelli\"", "question_refine": "what is primary disease of subject name theresa vedovelli?", "key": "0709550ec8aeff15ee0fd6fe36ed4c0f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 2, 0, "Bruce Harris"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "of", "subject", "name", "bruce", "harris", "?"], "sql_tok": ["select", "demographic.\"age\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"bruce", "harris\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Bruce Harris\"", "question_refine": "what is age of subject name bruce harris?", "key": "85a026e0c7b74858f0f566d3bbf499e0"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Bruce Harris"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "bruce", "harris", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"bruce", "harris\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Bruce Harris\"", "question_refine": "what is days of hospital stay of subject name bruce harris?", "key": "0138ed4f1a039573afe3d860e12c2de9"}
{"format": {"agg_col": [[0, 16], [3, 4]], "table": [0, 3], "cond": [[0, 2, 0, "Wilbur Braatz"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "drug", "name", "of", "subject", "name", "wilbur", "braatz", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"wilbur", "braatz\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Wilbur Braatz\"", "question_refine": "what is primary disease and drug name of subject name wilbur braatz?", "key": "90d3424a81b4bfd9018d96003eb18bd8"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Betty Campbell"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "name", "betty", "campbell", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"betty", "campbell\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Betty Campbell\"", "question_refine": "what is primary disease and diagnoses short title of subject name betty campbell?", "key": "9aed3ef959f024e0ffaf5f92500bda5a"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 2, 0, "Thomas Nazario"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "name", "thomas", "nazario", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"thomas", "nazario\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Thomas Nazario\"", "question_refine": "what is admission location of subject name thomas nazario?", "key": "90a66ad09f084e315532cba91f3c36e6"}
{"format": {"agg_col": [[2, 2], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Thomas Nazario"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "and", "procedure", "short", "title", "of", "subject", "name", "thomas", "nazario", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"thomas", "nazario\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Thomas Nazario\"", "question_refine": "what is procedure icd9 code and procedure short title of subject name thomas nazario?", "key": "0ef6faed83eede01bf4c9bb3f186fe66"}
{"format": {"agg_col": [[0, 14], [0, 16]], "table": [0], "cond": [[0, 2, 0, "James Cepeda"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "primary", "disease", "of", "subject", "name", "james", "cepeda", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"james", "cepeda\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"James Cepeda\"", "question_refine": "what is admission location and primary disease of subject name james cepeda?", "key": "a41c0a71e44265cf13545eae050408e0"}
{"format": {"agg_col": [[3, 2], [3, 4]], "table": [0, 3], "cond": [[0, 2, 0, "Anna Johnson"]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "and", "drug", "name", "of", "subject", "name", "anna", "johnson", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"anna", "johnson\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Anna Johnson\"", "question_refine": "what is icu stay id and drug name of subject name anna johnson?", "key": "a8b30455030b0d504a6f7baf7a42414b"}
{"format": {"agg_col": [[3, 5], [3, 7]], "table": [0, 3], "cond": [[0, 2, 0, "Anna Johnson"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "dose", "of", "subject", "name", "anna", "johnson", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"drug_dose\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"anna", "johnson\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"DRUG_DOSE\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Anna Johnson\"", "question_refine": "what is drug code and drug dose of subject name anna johnson?", "key": "037db39747b876ad48d9d833698b4487"}
{"format": {"agg_col": [[0, 5], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Fernando Wontor"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "diagnoses", "short", "title", "of", "subject", "name", "fernando", "wontor", "?"], "sql_tok": ["select", "demographic.\"dob\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"fernando", "wontor\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Fernando Wontor\"", "question_refine": "what is date of birth and diagnoses short title of subject name fernando wontor?", "key": "02f1240111fceb0677dbe6db60180e46"}
{"format": {"agg_col": [[0, 15]], "table": [0], "cond": [[0, 2, 0, "Annette Harris"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "of", "subject", "name", "annette", "harris", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"annette", "harris\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Annette Harris\"", "question_refine": "what is discharge location of subject name annette harris?", "key": "05892334ccb408737d46670f428672c0"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Robert Clayton"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "robert", "clayton", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"robert", "clayton\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Robert Clayton\"", "question_refine": "what is primary disease of subject name robert clayton?", "key": "0a7ebbf361bf96cd1fcfb073368908b5"}
{"format": {"agg_col": [[0, 10], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Kurt Buczek"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "short", "title", "of", "subject", "name", "kurt", "buczek", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"kurt", "buczek\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Kurt Buczek\"", "question_refine": "what is days of hospital stay and diagnoses short title of subject name kurt buczek?", "key": "a8e521fe75222082e06f1a643ea9daca"}
{"format": {"agg_col": [[1, 2], [1, 4]], "table": [0, 1], "cond": [[0, 2, 0, "Francis Baseler"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "icd9", "code", "and", "diagnoses", "long", "title", "of", "subject", "name", "francis", "baseler", "?"], "sql_tok": ["select", "diagnoses.\"icd9_code\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"francis", "baseler\""], "sql": "SELECT DIAGNOSES.\"ICD9_CODE\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Francis Baseler\"", "question_refine": "what is diagnoses icd9 code and diagnoses long title of subject name francis baseler?", "key": "95832f8e506136d97ce571b7c5bd4e10"}
{"format": {"agg_col": [[0, 9], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Travis Hofman"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "primary", "disease", "of", "subject", "name", "travis", "hofman", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"travis", "hofman\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Travis Hofman\"", "question_refine": "what is admission type and primary disease of subject name travis hofman?", "key": "1017466aa786d9466aa74af6bd0700ec"}
{"format": {"agg_col": [[0, 9], [0, 10]], "table": [0], "cond": [[0, 2, 0, "Glen Tanner"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "days", "of", "hospital", "stay", "of", "subject", "name", "glen", "tanner", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"glen", "tanner\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Glen Tanner\"", "question_refine": "what is admission type and days of hospital stay of subject name glen tanner?", "key": "0526387ed551a149d6f3ef5ed44debd7"}
{"format": {"agg_col": [[0, 10], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Michael Witt"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "time", "of", "subject", "name", "michael", "witt", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"michael", "witt\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Michael Witt\"", "question_refine": "what is days of hospital stay and admission time of subject name michael witt?", "key": "93392d4f42172fe72a713de4056a2022"}
{"format": {"agg_col": [[0, 5], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Caren Obrien"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "primary", "disease", "of", "subject", "name", "caren", "obrien", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"caren", "obrien\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Caren Obrien\"", "question_refine": "what is date of birth and primary disease of subject name caren obrien?", "key": "a557a27486342d06e45decaab91aeed8"}
{"format": {"agg_col": [[0, 5], [0, 17]], "table": [0], "cond": [[0, 2, 0, "Caren Obrien"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "date", "of", "death", "of", "subject", "name", "caren", "obrien", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"caren", "obrien\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Caren Obrien\"", "question_refine": "what is date of birth and date of death of subject name caren obrien?", "key": "9cea5cf9416c2b932de255262ed701f1"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Steven Sepulveda"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "steven", "sepulveda", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"steven", "sepulveda\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Steven Sepulveda\"", "question_refine": "what is days of hospital stay of subject name steven sepulveda?", "key": "0dfbdefe2efe9810a0ad327a0d448a71"}
{"format": {"agg_col": [[0, 5], [0, 9]], "table": [0], "cond": [[0, 2, 0, "James Sloan"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "type", "of", "subject", "name", "james", "sloan", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"james", "sloan\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"James Sloan\"", "question_refine": "what is date of birth and admission type of subject name james sloan?", "key": "a86dc1e19d6244f13305f53792c665ce"}
{"format": {"agg_col": [[0, 11], [0, 16]], "table": [0], "cond": [[0, 2, 0, "James Sloan"]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "and", "primary", "disease", "of", "subject", "name", "james", "sloan", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"james", "sloan\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"James Sloan\"", "question_refine": "what is insurance and primary disease of subject name james sloan?", "key": "8bec95e32428f06d6b8734cae16910d0"}
{"format": {"agg_col": [[0, 9], [0, 10]], "table": [0], "cond": [[0, 2, 0, "Charley Pescatore"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "days", "of", "hospital", "stay", "of", "subject", "name", "charley", "pescatore", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"charley", "pescatore\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Charley Pescatore\"", "question_refine": "what is admission type and days of hospital stay of subject name charley pescatore?", "key": "0463b36bc02d774cc36b466eb3d32c4d"}
{"format": {"agg_col": [[2, 4]], "table": [0, 2], "cond": [[0, 2, 0, "Dominga Garvin"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "subject", "name", "dominga", "garvin", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"dominga", "garvin\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Dominga Garvin\"", "question_refine": "what is procedure long title of subject name dominga garvin?", "key": "9b6bb1dbb4f307b37a8895086eafcd38"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Miguel Hodges"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "name", "miguel", "hodges", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"miguel", "hodges\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Miguel Hodges\"", "question_refine": "what is primary disease and diagnoses short title of subject name miguel hodges?", "key": "81e9f164c2850387ea449c4ba9ca050c"}
{"format": {"agg_col": [[1, 3], [1, 4]], "table": [1], "cond": [[1, 2, 0, "78630"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "78630", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"78630\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"78630\"", "question_refine": "what is diagnoses short title and diagnoses long title of diagnoses icd9 code 78630?", "key": "a52b3652548d36c5e3f3bafc284608e4"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "E8786"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "e8786", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"e8786\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"E8786\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code e8786?", "key": "8e472c2e5d903307b93d43dc9467159e"}
{"format": {"agg_col": [[1, 3], [1, 4]], "table": [1], "cond": [[1, 2, 0, "42823"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "42823", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"42823\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"42823\"", "question_refine": "what is diagnoses short title and diagnoses long title of diagnoses icd9 code 42823?", "key": "aa19597bca0018f872dd2eeb8774d993"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "42833"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "42833", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"42833\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"42833\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code 42833?", "key": "977bc9261b04291c69b98ea4056c1554"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "7756"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "7756", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"7756\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"7756\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code 7756?", "key": "bb111642a21315b380f245d80996b88a"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 2, 0, 9744]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "procedure", "icd9", "code", "9744", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"9744\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"9744\"", "question_refine": "what is procedure short title of procedure icd9 code 9744?", "key": "8f3d8dae93b4add45472e2ef34e06826"}
{"format": {"agg_col": [[2, 4]], "table": [2], "cond": [[2, 2, 0, 3726]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "procedure", "icd9", "code", "3726", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"3726\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"3726\"", "question_refine": "what is procedure long title of procedure icd9 code 3726?", "key": "019e78abb55f24f850aee87e473bc363"}
{"format": {"agg_col": [[2, 3], [2, 4]], "table": [2], "cond": [[2, 2, 0, 5361]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "and", "procedure", "long", "title", "of", "procedure", "icd9", "code", "5361", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"5361\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\",PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"5361\"", "question_refine": "what is procedure short title and procedure long title of procedure icd9 code 5361?", "key": "a5b799b623ab816af8a3d7263bd882cb"}
{"format": {"agg_col": [[2, 3], [2, 4]], "table": [2], "cond": [[2, 2, 0, 4591]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "and", "procedure", "long", "title", "of", "procedure", "icd9", "code", "4591", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"4591\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\",PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"4591\"", "question_refine": "what is procedure short title and procedure long title of procedure icd9 code 4591?", "key": "895ca1f9dc05114c51436d4c28f1dbaa"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Nitroglycerin SL"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "nitroglycerin", "sl", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"nitroglycerin", "sl\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Nitroglycerin SL\"", "question_refine": "what is drug code of drug name nitroglycerin sl?", "key": "ba004a3e4242e9bae1c49388678321ec"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Posaconazole Suspension"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "posaconazole", "suspension", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"posaconazole", "suspension\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Posaconazole Suspension\"", "question_refine": "what is drug route of drug name posaconazole suspension?", "key": "074e704855d20a2abc5a310eb1ebec93"}
{"format": {"agg_col": [[3, 3], [3, 5]], "table": [3], "cond": [[3, 4, 0, "Vial"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "code", "of", "drug", "name", "vial", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"vial\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Vial\"", "question_refine": "what is drug type and drug code of drug name vial?", "key": "8251effd621925f9a6e2018b080f31a2"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Oxazepam"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "oxazepam", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"oxazepam\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Oxazepam\"", "question_refine": "what is drug code of drug name oxazepam?", "key": "030c5a0cf294a2d2eef8857caf3a05ad"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Caphosol"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "caphosol", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"caphosol\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Caphosol\"", "question_refine": "what is drug code of drug name caphosol?", "key": "106626c091163300a6b170e953ed257a"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Calcium Acetate"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "name", "calcium", "acetate", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"calcium", "acetate\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Calcium Acetate\"", "question_refine": "what is drug type and drug route of drug name calcium acetate?", "key": "971904b128e63d08737fafac8e370573"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Nephrocaps"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "nephrocaps", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"nephrocaps\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Nephrocaps\"", "question_refine": "what is drug route of drug name nephrocaps?", "key": "9def53e41cfa8377020155513a28ab2c"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Gentamicin Sulfate"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "gentamicin", "sulfate", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"gentamicin", "sulfate\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Gentamicin Sulfate\"", "question_refine": "what is drug code of drug name gentamicin sulfate?", "key": "a849e3b0fa3d130cb8ca5b98be0abed6"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Rituximab"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "rituximab", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"rituximab\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Rituximab\"", "question_refine": "what is drug code and drug route of drug name rituximab?", "key": "0f578e70a67d77b59d073a0d6ddf2f52"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Midazolam HCl"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "midazolam", "hcl", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"midazolam", "hcl\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Midazolam HCl\"", "question_refine": "what is drug code of drug name midazolam hcl?", "key": "952343ad7bc01827ae39783f6285e3d6"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Succinylcholine"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "succinylcholine", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"succinylcholine\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Succinylcholine\"", "question_refine": "what is drug code and drug route of drug name succinylcholine?", "key": "9b7f5c51ee9fdcfbba316fb48e8e6722"}
{"format": {"agg_col": [[3, 5], [3, 7]], "table": [3], "cond": [[3, 4, 0, "Acetaminophen IV"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "dose", "of", "drug", "name", "acetaminophen", "iv", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"drug_dose\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"acetaminophen", "iv\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"DRUG_DOSE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Acetaminophen IV\"", "question_refine": "what is drug code and drug dose of drug name acetaminophen iv?", "key": "92b1c7ad9fe0af5c4ec35a3b48791815"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Topiramate (Topamax)"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "topiramate", "(", "topamax", ")", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"topiramate", "(topamax)\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Topiramate (Topamax)\"", "question_refine": "what is drug code of drug name topiramate (topamax)?", "key": "a61ac4f658e87123f6f32e8d02272ab4"}
{"format": {"agg_col": [[3, 3], [3, 5]], "table": [3], "cond": [[3, 4, 0, "Lactated Ringers"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "code", "of", "drug", "name", "lactated", "ringers", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"lactated", "ringers\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Lactated Ringers\"", "question_refine": "what is drug type and drug code of drug name lactated ringers?", "key": "85f8ab8ab78984d2f52458c474eaf19f"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Ascorbic Acid"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "ascorbic", "acid", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"ascorbic", "acid\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Ascorbic Acid\"", "question_refine": "what is drug route of drug name ascorbic acid?", "key": "8e72236c9b6a09cbcea0029a69a799d3"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Lidocaine Jelly 2% (Urojet)"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "lidocaine", "jelly", "2", "%", "(", "urojet", ")", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"lidocaine", "jelly", "2%", "(urojet)\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Lidocaine Jelly 2% (Urojet)\"", "question_refine": "what is drug code and drug route of drug name lidocaine jelly 2% (urojet)?", "key": "855cf4c4ba2b077fb516522ce28ed18b"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Mult"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "mult", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"mult\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Mult\"", "question_refine": "what is drug code and drug route of drug name mult?", "key": "0b16196f4e751d63a9b5173e01b93d36"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 5, 0, "MOR10L"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "code", "mor10l", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"mor10l\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"MOR10L\"", "question_refine": "what is drug type and drug route of drug code mor10l?", "key": "8e58c53ed2c7d9da3e3d7bb4d73cfdbe"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 5, 0, "GELCLAIR"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "code", "gelclair", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"gelclair\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"GELCLAIR\"", "question_refine": "what is drug route of drug code gelclair?", "key": "0f9526ebc28311b2cb77b73a7d165756"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 5, 0, "NALO4I"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "code", "nalo4i", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"nalo4i\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"NALO4I\"", "question_refine": "what is drug type of drug code nalo4i?", "key": "b9dd5d4f1f391878283e984c90e29065"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\"", "question_refine": "count the number of patients whose gender is m?", "key": "87728d8251e916027eaacb64dac36ccb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "GREEK ORTHODOX"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "religion", "is", "greek", "orthodox", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"greek", "orthodox\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"GREEK ORTHODOX\"", "question_refine": "how many patients whose religion is greek orthodox?", "key": "024563b12e10d2bfbba3b9049fdb34cd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\"", "question_refine": "give me the number of patients whose admission type is emergency?", "key": "054cab8f7975c46d400a46a17beb5a13"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Private"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "private", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\"", "question_refine": "how many patients whose insurance is private?", "key": "8383881fa94d0f2f2f6fb0926ad61d32"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\"", "question_refine": "count the number of patients whose ethnicity is black/cape verdean?", "key": "a93baacae2d538d21878b556201cec87"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\"", "question_refine": "what is the number of patients whose ethnicity is asian?", "key": "03ed80dd509832cdb2d2e7d7fd0e39f1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\"", "question_refine": "how many patients whose death status is 0?", "key": "06e0f15a5f27b3648bf3f5ebf230eb3d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\"", "question_refine": "what is the number of patients whose admission location is clinic referral/premature?", "key": "9c3b0945adc7bb0056a72123f8627678"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\"", "question_refine": "provide the number of patients whose admission location is trsf within this facility?", "key": "00904139a2ed10eebae557a135321017"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\"", "question_refine": "how many patients whose discharge location is home?", "key": "02df0bf53f302df39ca66c8e45f609c3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "DEAD/EXPIRED"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "dead", "/", "expired", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"dead/expired\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\"", "question_refine": "count the number of patients whose discharge location is dead/expired?", "key": "825152ca77b3c046ea92f81d47a817eb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "LEFT AGAINST MEDICAL ADVI"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "left", "against", "medical", "advi", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"left", "against", "medical", "advi\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LEFT AGAINST MEDICAL ADVI\"", "question_refine": "what is the number of patients whose discharge location is left against medical advi?", "key": "9c0511b4b79fb45a8f646934b25ee1f1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "T5 FRACTURE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "t5", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"t5", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"T5 FRACTURE\"", "question_refine": "give me the number of patients whose primary disease is t5 fracture?", "key": "04e257060d814171a01a4a75a258d385"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "RUQ PAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "ruq", "pain", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\"", "question_refine": "how many patients whose primary disease is ruq pain?", "key": "0de053e6336b792bbab0dbed98a160b9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "NEWBORN"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"newborn\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\"", "question_refine": "what is the number of patients whose primary disease is newborn?", "key": "8e5b3b23c0faa725dddd16452c1d83cd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "PNEUMONIA"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pneumonia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pneumonia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\"", "question_refine": "count the number of patients whose primary disease is pneumonia?", "key": "9ead4702111aae4baa6cdeb38d1d16c9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "TRANSIENT ISCHEMIC ATTACK"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "transient", "ischemic", "attack", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"transient", "ischemic", "attack\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"TRANSIENT ISCHEMIC ATTACK\"", "question_refine": "how many patients whose primary disease is transient ischemic attack?", "key": "03ad1ed58197cc476c639d7af7c662a3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "BLADDER CANCER/SDA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bladder", "cancer", "/", "sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bladder", "cancer/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BLADDER CANCER/SDA\"", "question_refine": "provide the number of patients whose primary disease is bladder cancer/sda?", "key": "94e979800c12fea24b8722c512dd7405"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "BOWEL OBSTRUCTION"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bowel", "obstruction", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bowel", "obstruction\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BOWEL OBSTRUCTION\"", "question_refine": "count the number of patients whose primary disease is bowel obstruction?", "key": "9af2ac2fa84ad307ea5249d5fb48b41b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "GANGRENE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "gangrene", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"gangrene\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GANGRENE\"", "question_refine": "how many patients whose primary disease is gangrene?", "key": "84f60321f795ad3a40988a8e42b9ff0c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "PITUITARY BLEED"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pituitary", "bleed", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pituitary", "bleed\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PITUITARY BLEED\"", "question_refine": "give me the number of patients whose primary disease is pituitary bleed?", "key": "004cf3d0d60da7389659caadbfb4a825"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CORONARY ARTERY DISEASE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "coronary", "artery", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\"", "question_refine": "give me the number of patients whose primary disease is coronary artery disease?", "key": "9268ab37a2d7fdb001795bef1e30dbe2"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "HYPERGLYCEMIA"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "hyperglycemia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\"", "question_refine": "how many patients whose primary disease is hyperglycemia?", "key": "0cb83c2bc10e573ed3e25a658d8318e4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 64]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "64", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"64\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"64\"", "question_refine": "count the number of patients whose age is less than 64?", "key": "971fc7bf3f897252845c4ebd01de0302"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 27]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"27\"", "question_refine": "how many patients whose age is less than 27?", "key": "82de3dcebd85dfb2141910f538b7fe07"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 18, 2, 2182]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2182", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", "<", "\"2182\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2182\"", "question_refine": "give me the number of patients whose year of birth is less than 2182?", "key": "0ebb2c6d344b9709c6c88b5ea686c13e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 19, 4, 2180.0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2180", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<=", "\"2180.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2180.0\"", "question_refine": "how many patients whose year of death is less than or equal to 2180?", "key": "0c553b22210b5ad96a9a01680ef22091"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 19, 4, 2132.0]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2132", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<=", "\"2132.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2132.0\"", "question_refine": "what is the number of patients whose year of death is less than or equal to 2132?", "key": "8232941afbee51d5e20e7dcf879ee83f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 19, 4, 2111.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2111", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<=", "\"2111.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2111.0\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2111?", "key": "bb19be85af3e917061a124154ac4818b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "V4364"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "v4364", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"v4364\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"V4364\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is v4364?", "key": "0d326c2914714602a81cd8d61f8e9ac6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 2, 0, "2875"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "2875", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"2875\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"2875\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is 2875?", "key": "101713b242bbc2a546b1dcc3dea29920"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Pseudomonas infect NOS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "pseudomonas", "infect", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"pseudomonas", "infect", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Pseudomonas infect NOS\"", "question_refine": "give me the number of patients whose diagnoses short title is pseudomonas infect nos?", "key": "9c185af46be35cab5c7f0bc760c202b5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Subarachnoid hemorrhage"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "subarachnoid", "hemorrhage", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"subarachnoid", "hemorrhage\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Subarachnoid hemorrhage\"", "question_refine": "what is the number of patients whose diagnoses short title is subarachnoid hemorrhage?", "key": "93b1013135b3f8b94446490eb23a4ccc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Urinary incontinence NOS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "urinary", "incontinence", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"urinary", "incontinence", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Urinary incontinence NOS\"", "question_refine": "give me the number of patients whose diagnoses short title is urinary incontinence nos?", "key": "9e33f7987cb3bdf5b47e8b870d28d06e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Crbl art ocl NOS w infrc"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "crbl", "art", "ocl", "nos", "w", "infrc", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"crbl", "art", "ocl", "nos", "w", "infrc\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Crbl art ocl NOS w infrc\"", "question_refine": "count the number of patients whose diagnoses short title is crbl art ocl nos w infrc?", "key": "ab3f3d61bd231c11a4f22dce7af58d02"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Secundum atrial sept def"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "secundum", "atrial", "sept", "def", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"secundum", "atrial", "sept", "def\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Secundum atrial sept def\"", "question_refine": "count the number of patients whose diagnoses short title is secundum atrial sept def?", "key": "86700c0eae00722e324e12c3ebb72980"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Other shock without mention of trauma"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "other", "shock", "without", "mention", "of", "trauma", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"other", "shock", "without", "mention", "of", "trauma\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Other shock without mention of trauma\"", "question_refine": "provide the number of patients whose diagnoses long title is other shock without mention of trauma?", "key": "0d3a0c773b794768a307800f42bed3ae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Hemochromatosis due to repeated red blood cell transfusions"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "hemochromatosis", "due", "to", "repeated", "red", "blood", "cell", "transfusions", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"hemochromatosis", "due", "to", "repeated", "red", "blood", "cell", "transfusions\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Hemochromatosis due to repeated red blood cell transfusions\"", "question_refine": "count the number of patients whose diagnoses long title is hemochromatosis due to repeated red blood cell transfusions?", "key": "870f671294fda99c32cc17f92aad78a8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 4105]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "4105", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"4105\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"4105\"", "question_refine": "count the number of patients whose procedure icd9 code is 4105?", "key": "809481545e7a77fa4c823f05ba51741b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 4601]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "4601", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"4601\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"4601\"", "question_refine": "give me the number of patients whose procedure icd9 code is 4601?", "key": "05c5dbad2999a021a98bc80262a523d1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 3804]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "3804", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"3804\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"3804\"", "question_refine": "give me the number of patients whose procedure icd9 code is 3804?", "key": "931575a48b183cfef6810a7748886f1c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Cardiac rhythm conv NEC"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "procedure", "short", "title", "is", "cardiac", "rhythm", "conv", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"cardiac", "rhythm", "conv", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Cardiac rhythm conv NEC\"", "question_refine": "give me the number of patients whose procedure short title is cardiac rhythm conv nec?", "key": "a601dcef90267006aea6385d22fd36d3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Abdomen artery incision"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "short", "title", "is", "abdomen", "artery", "incision", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"abdomen", "artery", "incision\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Abdomen artery incision\"", "question_refine": "count the number of patients whose procedure short title is abdomen artery incision?", "key": "0d4c35f952b8d4ff9c7b0b736d1556f1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Radical cystectomy"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "short", "title", "is", "radical", "cystectomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"radical", "cystectomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Radical cystectomy\"", "question_refine": "how many patients whose procedure short title is radical cystectomy?", "key": "90c61fa47e6f3ee70f1d5a5262acea5b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Opn lft hemicolectmy NEC"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "procedure", "short", "title", "is", "opn", "lft", "hemicolectmy", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"opn", "lft", "hemicolectmy", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Opn lft hemicolectmy NEC\"", "question_refine": "give me the number of patients whose procedure short title is opn lft hemicolectmy nec?", "key": "a74c0d773d66fce959ed3490677faac0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 4, 0, "Creation of conduit between left ventricle and aorta"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "creation", "of", "conduit", "between", "left", "ventricle", "and", "aorta", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"long_title\"", "=", "\"creation", "of", "conduit", "between", "left", "ventricle", "and", "aorta\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Creation of conduit between left ventricle and aorta\"", "question_refine": "count the number of patients whose procedure long title is creation of conduit between left ventricle and aorta?", "key": "9ce7d4ba8e33f5a9bb87ec0199c5fcd2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 4, 0, "Drug detoxification"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "drug", "detoxification", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"long_title\"", "=", "\"drug", "detoxification\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Drug detoxification\"", "question_refine": "count the number of patients whose procedure long title is drug detoxification?", "key": "8a2e0e54555d64dde3f63958cea24cc7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Diltiazem"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "diltiazem", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"diltiazem\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Diltiazem\"", "question_refine": "give me the number of patients whose drug name is diltiazem?", "key": "86f305efdfde01b908615d3b271a35ad"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Hydrocortisone Oint 0.5%"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "hydrocortisone", "oint", "0.5", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"hydrocortisone", "oint", "0.5%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Hydrocortisone Oint 0.5%\"", "question_refine": "give me the number of patients whose drug name is hydrocortisone oint 0.5%?", "key": "abba3e287b6c32380cd3174ef6088b7f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Spironolactone"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "name", "is", "spironolactone", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"spironolactone\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Spironolactone\"", "question_refine": "how many patients whose drug name is spironolactone?", "key": "02984008762913113973753bce29760d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Nitroglycerin Ointment  2%"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "nitroglycerin", "ointment", " ", "2", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"nitroglycerin", "ointment", "2%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Nitroglycerin Ointment  2%\"", "question_refine": "give me the number of patients whose drug name is nitroglycerin ointment  2%?", "key": "82d3695ec5d890238e93c72e3a314ced"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Tizanidine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "name", "is", "tizanidine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"tizanidine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Tizanidine\"", "question_refine": "how many patients whose drug name is tizanidine?", "key": "04e11bc1fccec154a83252f26868c437"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Ferrous Gluconate"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "ferrous", "gluconate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"ferrous", "gluconate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Ferrous Gluconate\"", "question_refine": "give me the number of patients whose drug name is ferrous gluconate?", "key": "07e8317bfc6823eb329bd116ced86994"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "PRED1"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "pred1", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"pred1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"PRED1\"", "question_refine": "give me the number of patients whose drug code is pred1?", "key": "909508f96947421e68d99c31bd253ef0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "BACTSS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "bactss", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"bactss\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"BACTSS\"", "question_refine": "provide the number of patients whose drug code is bactss?", "key": "a5d9467737164f47007345c4893d763f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "ATRO1I"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "atro1i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"atro1i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ATRO1I\"", "question_refine": "give me the number of patients whose drug code is atro1i?", "key": "a8dc0bd5c32a5391be47e8cfd979667e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "PANT40I"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "pant40i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"pant40i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"PANT40I\"", "question_refine": "give me the number of patients whose drug code is pant40i?", "key": "06221a83812b03cacce79b7404bb3785"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "REPLACE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "route", "is", "replace", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"replace\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"REPLACE\"", "question_refine": "how many patients whose drug route is replace?", "key": "9e98c86301154d7baf44b1654b51c1f0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "BUCCAL"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "drug", "route", "is", "buccal", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"buccal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"BUCCAL\"", "question_refine": "what is the number of patients whose drug route is buccal?", "key": "9dc0838fea8ceebde01fd608c434210c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "IV DRIP"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "route", "is", "iv", "drip", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"iv", "drip\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"IV DRIP\"", "question_refine": "provide the number of patients whose drug route is iv drip?", "key": "ab6f89b00da40c7ecc26b6864d460588"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "TP"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "route", "is", "tp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"tp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"TP\"", "question_refine": "provide the number of patients whose drug route is tp?", "key": "9638fb767e2ce81c243568cce6a0d6fe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "DWELL"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "route", "is", "dwell", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"dwell\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"DWELL\"", "question_refine": "provide the number of patients whose drug route is dwell?", "key": "971abf094f9ae07758205567a0bcc5f1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51200]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51200", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51200\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51200\"", "question_refine": "give me the number of patients whose item id is 51200?", "key": "9374426f7a7a5514195f42d67b10ae3a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51214]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51214", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51214\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51214\"", "question_refine": "give me the number of patients whose item id is 51214?", "key": "860df604232ec2b6f7612f44a1acd583"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51218]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51218", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51218\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51218\"", "question_refine": "give me the number of patients whose item id is 51218?", "key": "0ce185e197a73df5c7d1d28e8b208096"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51229]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51229", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51229\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51229\"", "question_refine": "provide the number of patients whose item id is 51229?", "key": "96160962e5c4e848fcc6d8436019e9a1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51245]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51245", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51245\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51245\"", "question_refine": "what is the number of patients whose item id is 51245?", "key": "a6efda66101f5ee356834b8d407f433a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51256]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51256", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51256\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51256\"", "question_refine": "count the number of patients whose item id is 51256?", "key": "934102ea4b2c1a74fa970bf8adf637c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Triiodothyronine (T3)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "triiodothyronine", "(", "t3", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"triiodothyronine", "(t3)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Triiodothyronine (T3)\"", "question_refine": "provide the number of patients whose lab test name is triiodothyronine (t3)?", "key": "a042f037d40f6ca5ddaa6b3b1cd2d4fb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "RBC, CSF"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "rbc", ",", "csf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"rbc", "csf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"RBC, CSF\"", "question_refine": "what is the number of patients whose lab test name is rbc, csf?", "key": "80d9900f94b580302de4a0266ed25d48"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Alanine Aminotransferase (ALT)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "alanine", "aminotransferase", "(", "alt", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"alanine", "aminotransferase", "(alt)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Alanine Aminotransferase (ALT)\"", "question_refine": "provide the number of patients whose lab test name is alanine aminotransferase (alt)?", "key": "060151fe7a66f01cf5811b6efdc73538"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Mesothelial cells"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "mesothelial", "cells", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"mesothelial", "cells\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Mesothelial cells\"", "question_refine": "provide the number of patients whose lab test name is mesothelial cells?", "key": "8ee312bcaee5fe43732e1d6afd1f8e50"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "what is the number of patients whose lab test fluid is cerebrospinal fluid (csf)?", "key": "a0900dc344330df7b6a46d5c347d108d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 12, 0, "WHITE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "ethnicity", "is", "white", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"ethnicity\"", "=", "\"white\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\"", "question_refine": "count the number of patients whose marital status is single and ethnicity is white?", "key": "00648dbdd1cf6863da5597366c79a6f0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 12, 0, "BLACK/AFRICAN AMERICAN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "ethnicity", "is", "black", "/", "african", "american", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"ethnicity\"", "=", "\"black/african", "american\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/AFRICAN AMERICAN\"", "question_refine": "count the number of patients whose marital status is divorced and ethnicity is black/african american?", "key": "81732889ea775ce54e8a3a2ba1d6ddcf"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 12, 0, "ASIAN"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "ethnicity", "is", "asian", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"ethnicity\"", "=", "\"asian\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\"", "question_refine": "give me the number of patients whose marital status is married and ethnicity is asian?", "key": "a7dfb5cb643686fde165b81208a5780f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 22, 2, 2120]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "admission", "year", "is", "less", "than", "2120", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"admityear\"", "<", "\"2120\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2120\"", "question_refine": "count the number of patients whose marital status is divorced and admission year is less than 2120?", "key": "885d89607152d4e994c2d3ea430b4cde"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 22, 2, 2198]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "admission", "year", "is", "less", "than", "2198", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"admityear\"", "<", "\"2198\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2198\"", "question_refine": "what is the number of patients whose marital status is married and admission year is less than 2198?", "key": "9126eb002106d4c790c7ca9f1745106d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "DIVORCED"], [1, 2, 0, "25541"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "diagnoses", "icd9", "code", "is", "25541", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "diagnoses.\"icd9_code\"", "=", "\"25541\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DIAGNOSES.\"ICD9_CODE\" = \"25541\"", "question_refine": "what is the number of patients whose marital status is divorced and diagnoses icd9 code is 25541?", "key": "00ef3ee46331250704baf2033dad4b10"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "DIVORCED"], [1, 3, 0, "Ocl crtd art wo infrct"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "diagnoses", "short", "title", "is", "ocl", "crtd", "art", "wo", "infrct", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "diagnoses.\"short_title\"", "=", "\"ocl", "crtd", "art", "wo", "infrct\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Ocl crtd art wo infrct\"", "question_refine": "count the number of patients whose marital status is divorced and diagnoses short title is ocl crtd art wo infrct?", "key": "003f53e7bc7442b9768eadd55de1419d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 3, 0, "AMI inferolateral, init"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "married", "and", "diagnoses", "short", "title", "is", "ami", "inferolateral", ",", "init", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "diagnoses.\"short_title\"", "=", "\"ami", "inferolateral", "init\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DIAGNOSES.\"SHORT_TITLE\" = \"AMI inferolateral, init\"", "question_refine": "how many patients whose marital status is married and diagnoses short title is ami inferolateral, init?", "key": "ade0c7463c725d9219e5712adb45de85"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 4, 0, "Pyelonephritis, unspecified"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "married", "and", "diagnoses", "long", "title", "is", "pyelonephritis", ",", "unspecified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "diagnoses.\"long_title\"", "=", "\"pyelonephritis", "unspecified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DIAGNOSES.\"LONG_TITLE\" = \"Pyelonephritis, unspecified\"", "question_refine": "how many patients whose marital status is married and diagnoses long title is pyelonephritis, unspecified?", "key": "a90ecf2fa6bc7c4af1d8fc44eb09a881"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 2, 0, 4523]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "procedure", "icd9", "code", "is", "4523", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "procedures.\"icd9_code\"", "=", "\"4523\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND PROCEDURES.\"ICD9_CODE\" = \"4523\"", "question_refine": "give me the number of patients whose marital status is single and procedure icd9 code is 4523?", "key": "01f05a65bd07aa9348e2de5f77103144"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 2, 0, 8968]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "procedure", "icd9", "code", "is", "8968", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "procedures.\"icd9_code\"", "=", "\"8968\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND PROCEDURES.\"ICD9_CODE\" = \"8968\"", "question_refine": "give me the number of patients whose marital status is single and procedure icd9 code is 8968?", "key": "0ce126ae4e9cb93b9ebe1d771b4b4026"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 3, 0, "Tonsil&adenoid biopsy"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "procedure", "short", "title", "is", "tonsil&adenoid", "biopsy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "procedures.\"short_title\"", "=", "\"tonsil&adenoid", "biopsy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND PROCEDURES.\"SHORT_TITLE\" = \"Tonsil&adenoid biopsy\"", "question_refine": "give me the number of patients whose marital status is single and procedure short title is tonsil&adenoid biopsy?", "key": "0ef1bd0f34de8289d8b8043c9600dbb9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 3, 0, "Opn mitral valvuloplasty"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "short", "title", "is", "opn", "mitral", "valvuloplasty", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "procedures.\"short_title\"", "=", "\"opn", "mitral", "valvuloplasty\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND PROCEDURES.\"SHORT_TITLE\" = \"Opn mitral valvuloplasty\"", "question_refine": "provide the number of patients whose marital status is married and procedure short title is opn mitral valvuloplasty?", "key": "a91aca91e611cc00d88e4830e527aef7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "SINGLE"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "single", "and", "lab", "test", "category", "is", "hematology", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "lab.\"category\"", "=", "\"hematology\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "how many patients whose marital status is single and lab test category is hematology?", "key": "a03591944cbd372c579f85a8601246d7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 9, 0, "ELECTIVE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "admission", "type", "is", "elective", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"admission_type\"", "=", "\"elective\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\"", "question_refine": "count the number of patients whose gender is f and admission type is elective?", "key": "9d2768cf17e0425da16f63997f9008fe"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 9, 0, "EMERGENCY"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "admission", "type", "is", "emergency", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"admission_type\"", "=", "\"emergency\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\"", "question_refine": "count the number of patients whose gender is f and admission type is emergency?", "key": "085ccd570886bbdcecbbfb4b9f8b8644"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 9, 0, "URGENT"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "admission", "type", "is", "urgent", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"admission_type\"", "=", "\"urgent\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\"", "question_refine": "what is the number of patients whose gender is m and admission type is urgent?", "key": "a0340437a3e0b41ee288ee4688e73caf"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 11, 0, "Self Pay"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "insurance", "is", "self", "pay", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"insurance\"", "=", "\"self", "pay\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\"", "question_refine": "give me the number of patients whose gender is f and insurance is self pay?", "key": "891114d2fc4e33a1bf1fb2afb806f51a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 11, 0, "Medicare"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "insurance", "is", "medicare", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"insurance\"", "=", "\"medicare\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\"", "question_refine": "give me the number of patients whose gender is m and insurance is medicare?", "key": "bb9cac96e684f7a261332a1fadbed50c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 12, 0, "WHITE - RUSSIAN"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "ethnicity", "is", "white", "-", "russian", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\"", "question_refine": "what is the number of patients whose gender is f and ethnicity is white - russian?", "key": "8c4094b14f138bbe58b72af518b7ad1c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 12, 0, "WHITE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "ethnicity", "is", "white", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"ethnicity\"", "=", "\"white\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\"", "question_refine": "how many patients whose gender is f and ethnicity is white?", "key": "830f85be4c94fd358f0fdaf278230176"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 14, 0, "CLINIC REFERRAL/PREMATURE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "admission", "location", "is", "clinic", "referral", "/", "premature", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\"", "question_refine": "count the number of patients whose gender is m and admission location is clinic referral/premature?", "key": "a580e307f344b684c0ce9e8900d41c72"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 15, 0, "DEAD/EXPIRED"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "discharge", "location", "is", "dead", "/", "expired", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"discharge_location\"", "=", "\"dead/expired\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\"", "question_refine": "count the number of patients whose gender is f and discharge location is dead/expired?", "key": "87ad79f94d27a4728ad5359025e0f862"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "VENTRICULAR TACHYCARDIA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "ventricular", "tachycardia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"ventricular", "tachycardia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"VENTRICULAR TACHYCARDIA\"", "question_refine": "give me the number of patients whose gender is f and primary disease is ventricular tachycardia?", "key": "a49ba67979f1038a46a665478bcb7a0c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "TRANSIENT ISCHEMIC ATTACK"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "transient", "ischemic", "attack", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"transient", "ischemic", "attack\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"TRANSIENT ISCHEMIC ATTACK\"", "question_refine": "what is the number of patients whose gender is f and primary disease is transient ischemic attack?", "key": "04f70250fa8b8c71fcf64afe5f04935c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 16, 0, "COPD EXACERBATION"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "primary", "disease", "is", "copd", "exacerbation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\"", "question_refine": "count the number of patients whose gender is m and primary disease is copd exacerbation?", "key": "0865ad637ad2259ebb61c689e98b06cd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 2, 43]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "less", "than", "43", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", "<", "\"43\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" < \"43\"", "question_refine": "give me the number of patients whose gender is f and age is less than 43?", "key": "aa024c1b63b3b5033195044b8dbbfee1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 2, 44]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "less", "than", "44", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", "<", "\"44\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" < \"44\"", "question_refine": "what is the number of patients whose gender is f and age is less than 44?", "key": "051e15109d31eca3af6d4a47486cb036"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 2, 77]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "less", "than", "77", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", "<", "\"77\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" < \"77\"", "question_refine": "count the number of patients whose gender is m and age is less than 77?", "key": "9bebc7e80c1afd55faaf99cb972caf61"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 2, 79]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "less", "than", "79", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", "<", "\"79\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" < \"79\"", "question_refine": "give me the number of patients whose gender is m and age is less than 79?", "key": "017e1f21141e43d53c4f9311a23b0607"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 2, 24]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "age", "is", "less", "than", "24", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", "<", "\"24\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" < \"24\"", "question_refine": "how many patients whose gender is m and age is less than 24?", "key": "005126389e203de74cbb8935f6c7a256"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 18, 2, 1846]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "year", "of", "birth", "is", "less", "than", "1846", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"dob_year\"", "<", "\"1846\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1846\"", "question_refine": "how many patients whose gender is m and year of birth is less than 1846?", "key": "07409693de111b6d37ed0372f74f0e7a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 2, 0, "3572"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "icd9", "code", "is", "3572", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"icd9_code\"", "=", "\"3572\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"ICD9_CODE\" = \"3572\"", "question_refine": "how many patients whose gender is f and diagnoses icd9 code is 3572?", "key": "ac915e25dd47cc485ec186e545c86b48"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 2, 0, "99813"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "icd9", "code", "is", "99813", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"icd9_code\"", "=", "\"99813\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"ICD9_CODE\" = \"99813\"", "question_refine": "provide the number of patients whose gender is f and diagnoses icd9 code is 99813?", "key": "96afc2a274c9bac2d9765759a64957fd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Staph pneumonia NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "staph", "pneumonia", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "diagnoses.\"short_title\"", "=", "\"staph", "pneumonia", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Staph pneumonia NEC\"", "question_refine": "how many patients whose gender is f and diagnoses short title is staph pneumonia nec?", "key": "accc81fb75df97d7563cbae8ec618d90"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 2, 0, 5771]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "icd9", "code", "is", "5771", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "procedures.\"icd9_code\"", "=", "\"5771\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PROCEDURES.\"ICD9_CODE\" = \"5771\"", "question_refine": "what is the number of patients whose gender is f and procedure icd9 code is 5771?", "key": "064bdfb8075ddf916996b79432d9e188"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "M"], [2, 2, 0, 8842]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "procedure", "icd9", "code", "is", "8842", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "procedures.\"icd9_code\"", "=", "\"8842\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PROCEDURES.\"ICD9_CODE\" = \"8842\"", "question_refine": "provide the number of patients whose gender is m and procedure icd9 code is 8842?", "key": "a4411125b5abe68f2d0eb36a12677a73"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "M"], [2, 2, 0, 9703]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "procedure", "icd9", "code", "is", "9703", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "procedures.\"icd9_code\"", "=", "\"9703\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PROCEDURES.\"ICD9_CODE\" = \"9703\"", "question_refine": "what is the number of patients whose gender is m and procedure icd9 code is 9703?", "key": "95c238a02d6882fc2c6d323fde3f7631"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 3, 0, "Drug detoxification"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "short", "title", "is", "drug", "detoxification", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "procedures.\"short_title\"", "=", "\"drug", "detoxification\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PROCEDURES.\"SHORT_TITLE\" = \"Drug detoxification\"", "question_refine": "give me the number of patients whose gender is f and procedure short title is drug detoxification?", "key": "a5b952dae5761a673041cb3e4c9b2fd4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "M"], [2, 4, 0, "Open and other replacement of aortic valve with tissue graft"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "procedure", "long", "title", "is", "open", "and", "other", "replacement", "of", "aortic", "valve", "with", "tissue", "graft", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "procedures.\"long_title\"", "=", "\"open", "and", "other", "replacement", "of", "aortic", "valve", "with", "tissue", "graft\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PROCEDURES.\"LONG_TITLE\" = \"Open and other replacement of aortic valve with tissue graft\"", "question_refine": "provide the number of patients whose gender is m and procedure long title is open and other replacement of aortic valve with tissue graft?", "key": "0dde689bf72ef9edd183eb73843dba07"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "F"], [3, 4, 0, "Amitriptyline"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "drug", "name", "is", "amitriptyline", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "prescriptions.\"drug\"", "=", "\"amitriptyline\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PRESCRIPTIONS.\"DRUG\" = \"Amitriptyline\"", "question_refine": "give me the number of patients whose gender is f and drug name is amitriptyline?", "key": "93f1c2203790abf5e19f70304d9fa6cb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "F"], [3, 4, 0, "Theophylline SR"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "drug", "name", "is", "theophylline", "sr", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "prescriptions.\"drug\"", "=", "\"theophylline", "sr\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND PRESCRIPTIONS.\"DRUG\" = \"Theophylline SR\"", "question_refine": "provide the number of patients whose gender is f and drug name is theophylline sr?", "key": "9b581dcd0f727ee14875356de70bafdd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "M"], [3, 5, 0, "ARIP10"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "drug", "code", "is", "arip10", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"arip10\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ARIP10\"", "question_refine": "how many patients whose gender is m and drug code is arip10?", "key": "9b5243d9114f907596a4a8362e169688"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 2, 0, 51146]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "item", "i", "d", "is", "51146", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"itemid\"", "=", "\"51146\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"ITEMID\" = \"51146\"", "question_refine": "give me the number of patients whose gender is m and item id is 51146?", "key": "93b9e31884f67490542d6aaf4d6b8108"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 2, 0, 51148]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "item", "i", "d", "is", "51148", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"itemid\"", "=", "\"51148\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"ITEMID\" = \"51148\"", "question_refine": "give me the number of patients whose gender is m and item id is 51148?", "key": "95467eb799726ac08b222ad6b2fa9fc8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 6, 0, "Amylase"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "lab", "test", "name", "is", "amylase", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"label\"", "=", "\"amylase\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"LABEL\" = \"Amylase\"", "question_refine": "what is the number of patients whose gender is m and lab test name is amylase?", "key": "9624197cdfc232272226b8d1716d3cf9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 6, 0, "PTT"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "lab", "test", "name", "is", "ptt", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"label\"", "=", "\"ptt\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"LABEL\" = \"PTT\"", "question_refine": "how many patients whose gender is m and lab test name is ptt?", "key": "8528bb359cc39d7ad4fc795461677553"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 6, 0, "Potassium, Whole Blood"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "lab", "test", "name", "is", "potassium", ",", "whole", "blood", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "lab.\"label\"", "=", "\"potassium", "whole", "blood\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND LAB.\"LABEL\" = \"Potassium, Whole Blood\"", "question_refine": "provide the number of patients whose gender is m and lab test name is potassium, whole blood?", "key": "abd26d62b8557ca1e9111eb9ffe88c4a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "RUSS"], [0, 15, 0, "DISC-TRAN CANCER/CHLDRN H"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "russ", "and", "discharge", "location", "is", "disc", "-", "tran", "cancer", "/", "chldrn", "h", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"russ\"", "and", "demographic.\"discharge_location\"", "=", "\"disc-tran", "cancer/chldrn", "h\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"RUSS\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISC-TRAN CANCER/CHLDRN H\"", "question_refine": "give me the number of patients whose language is russ and discharge location is disc-tran cancer/chldrn h?", "key": "03e7efbd099cefdb084900589681e2d1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "CAPE"], [0, 4, 2, 67]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "cape", "and", "age", "is", "less", "than", "67", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"cape\"", "and", "demographic.\"age\"", "<", "\"67\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"CAPE\" AND DEMOGRAPHIC.\"AGE\" < \"67\"", "question_refine": "give me the number of patients whose language is cape and age is less than 67?", "key": "86a048bee4d60ed30b32964f9a48eac9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "CAPE"], [0, 4, 2, 71]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "language", "is", "cape", "and", "age", "is", "less", "than", "71", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"cape\"", "and", "demographic.\"age\"", "<", "\"71\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"CAPE\" AND DEMOGRAPHIC.\"AGE\" < \"71\"", "question_refine": "what is the number of patients whose language is cape and age is less than 71?", "key": "0bc3359131c7aaca9aa7f660a3b3a40e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 4, 2, 76]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "span", "and", "age", "is", "less", "than", "76", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"age\"", "<", "\"76\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"AGE\" < \"76\"", "question_refine": "provide the number of patients whose language is span and age is less than 76?", "key": "87c1857d7148bcb00305e281fadd20e7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "ENGL"], [0, 4, 2, 31]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "engl", "and", "age", "is", "less", "than", "31", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "demographic.\"age\"", "<", "\"31\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND DEMOGRAPHIC.\"AGE\" < \"31\"", "question_refine": "give me the number of patients whose language is engl and age is less than 31?", "key": "adf20b60a1fb5b796f72b749bee0e696"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PORT"], [0, 10, 1, 3]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "port", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "3", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"port\"", "and", "demographic.\"days_stay\"", ">", "\"3\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PORT\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"3\"", "question_refine": "provide the number of patients whose language is port and days of hospital stay is greater than 3?", "key": "acc6b4b35378ea998962887cae1e1139"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 18, 2, 2071]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "span", "and", "year", "of", "birth", "is", "less", "than", "2071", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"dob_year\"", "<", "\"2071\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2071\"", "question_refine": "provide the number of patients whose language is span and year of birth is less than 2071?", "key": "045c5269cdae83454d68e393e12c8658"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PTUN"], [0, 18, 2, 2066]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "ptun", "and", "year", "of", "birth", "is", "less", "than", "2066", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"ptun\"", "and", "demographic.\"dob_year\"", "<", "\"2066\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PTUN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2066\"", "question_refine": "give me the number of patients whose language is ptun and year of birth is less than 2066?", "key": "08dd582acefd6cc3ce501b04fb54a915"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PTUN"], [0, 19, 4, 2138.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "language", "is", "ptun", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"ptun\"", "and", "demographic.\"dod_year\"", "<=", "\"2138.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PTUN\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2138.0\"", "question_refine": "count the number of patients whose language is ptun and year of death is less than or equal to 2138?", "key": "9193cd16f584ed1da7296d33599c77c1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "CATHOLIC"], [0, 4, 2, 45]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "religion", "is", "catholic", "and", "age", "is", "less", "than", "45", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"catholic\"", "and", "demographic.\"age\"", "<", "\"45\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"CATHOLIC\" AND DEMOGRAPHIC.\"AGE\" < \"45\"", "question_refine": "provide the number of patients whose religion is catholic and age is less than 45?", "key": "066126e662a3003e041bd6974df0cc98"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "GREEK ORTHODOX"], [0, 18, 2, 2085]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "religion", "is", "greek", "orthodox", "and", "year", "of", "birth", "is", "less", "than", "2085", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"greek", "orthodox\"", "and", "demographic.\"dob_year\"", "<", "\"2085\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"GREEK ORTHODOX\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2085\"", "question_refine": "how many patients whose religion is greek orthodox and year of birth is less than 2085?", "key": "a7c671e965437f33b28e21cf6bfe9e89"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "CATHOLIC"], [0, 18, 2, 1846]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "religion", "is", "catholic", "and", "year", "of", "birth", "is", "less", "than", "1846", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"catholic\"", "and", "demographic.\"dob_year\"", "<", "\"1846\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"CATHOLIC\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1846\"", "question_refine": "provide the number of patients whose religion is catholic and year of birth is less than 1846?", "key": "82715ac803ef686d617d271292dcf551"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 11, 0, "Government"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "elective", "and", "insurance", "is", "government", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"insurance\"", "=", "\"government\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Government\"", "question_refine": "how many patients whose admission type is elective and insurance is government?", "key": "93e5a26d56fc80b963506bc71b380d70"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 11, 0, "Medicaid"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "insurance", "is", "medicaid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"insurance\"", "=", "\"medicaid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\"", "question_refine": "provide the number of patients whose admission type is elective and insurance is medicaid?", "key": "815b0971ecad8500060f8ad3fc3df9a9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 11, 0, "Self Pay"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "newborn", "and", "insurance", "is", "self", "pay", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"insurance\"", "=", "\"self", "pay\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\"", "question_refine": "how many patients whose admission type is newborn and insurance is self pay?", "key": "ac75d8f182635ee20767a8e379757555"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\"", "question_refine": "count the number of patients whose admission type is emergency and ethnicity is hispanic/latino - puerto rican?", "key": "0e8fd2d722e37743ae80d2f8b9c7a3f0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 15, 0, "HOME HEALTH CARE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "discharge", "location", "is", "home", "health", "care", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\"", "question_refine": "give me the number of patients whose admission type is elective and discharge location is home health care?", "key": "a918a0036b56f9087c0676932fa13024"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 16, 0, "CORONARY ARTERY DISEASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "primary", "disease", "is", "coronary", "artery", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\"", "question_refine": "count the number of patients whose admission type is elective and primary disease is coronary artery disease?", "key": "88918368bee11a289ddd9a04f1958b6b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 16, 0, "ABDOMINAL ABSCESS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "primary", "disease", "is", "abdominal", "abscess", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"diagnosis\"", "=", "\"abdominal", "abscess\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL ABSCESS\"", "question_refine": "give me the number of patients whose admission type is elective and primary disease is abdominal abscess?", "key": "806722d7337a441a746d2477d440c867"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "GANGRENE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "gangrene", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"gangrene\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"GANGRENE\"", "question_refine": "give me the number of patients whose admission type is emergency and primary disease is gangrene?", "key": "a667eb8609a76490ddbf55b5c12e3695"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr", ";", "?", "maze", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr;", "?", "maze\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE\"", "question_refine": "how many patients whose admission type is emergency and primary disease is coronary artery disease\\coronary artery bypass graft with mvr; ? maze?", "key": "84c856c06f729524fdc4905b0fd4a68b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 10, 1, 10]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "newborn", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "10", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"days_stay\"", ">", "\"10\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"10\"", "question_refine": "how many patients whose admission type is newborn and days of hospital stay is greater than 10?", "key": "935237d31f785ead710a5b2124d19370"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 18, 2, 2074]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "year", "of", "birth", "is", "less", "than", "2074", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"dob_year\"", "<", "\"2074\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2074\"", "question_refine": "how many patients whose admission type is urgent and year of birth is less than 2074?", "key": "83d2f2439a19c3bac564156d4d7f0f20"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 18, 2, 2076]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "year", "of", "birth", "is", "less", "than", "2076", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"dob_year\"", "<", "\"2076\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2076\"", "question_refine": "provide the number of patients whose admission type is elective and year of birth is less than 2076?", "key": "8284b2149ec8c5df761d2ceca3c5ba18"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 18, 2, 2066]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "year", "of", "birth", "is", "less", "than", "2066", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"dob_year\"", "<", "\"2066\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2066\"", "question_refine": "what is the number of patients whose admission type is emergency and year of birth is less than 2066?", "key": "94fac89f564ff4ef5cafb4d446f7035d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 22, 2, 2190]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "admission", "year", "is", "less", "than", "2190", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"admityear\"", "<", "\"2190\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2190\"", "question_refine": "give me the number of patients whose admission type is urgent and admission year is less than 2190?", "key": "840d704cc763acd72fab4ae0efe35a9f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 22, 2, 2194]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "admission", "year", "is", "less", "than", "2194", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"admityear\"", "<", "\"2194\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2194\"", "question_refine": "give me the number of patients whose admission type is urgent and admission year is less than 2194?", "key": "0516cfb3db509987e51368563ba0504e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 22, 2, 2108]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "admission", "year", "is", "less", "than", "2108", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"admityear\"", "<", "\"2108\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2108\"", "question_refine": "provide the number of patients whose admission type is elective and admission year is less than 2108?", "key": "9cfe1b1262ebc011c0cd636a6bd1b9f7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 22, 2, 2163]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "admission", "year", "is", "less", "than", "2163", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"admityear\"", "<", "\"2163\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2163\"", "question_refine": "count the number of patients whose admission type is emergency and admission year is less than 2163?", "key": "04f2d8289f6c164c281c05e3fc7f3940"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 2, 0, "E8798"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "icd9", "code", "is", "e8798", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "diagnoses.\"icd9_code\"", "=", "\"e8798\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DIAGNOSES.\"ICD9_CODE\" = \"E8798\"", "question_refine": "provide the number of patients whose admission type is emergency and diagnoses icd9 code is e8798?", "key": "89473cb3b3eaa62d3a19fba9185e42e7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "ELECTIVE"], [1, 2, 0, "V453"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "diagnoses", "icd9", "code", "is", "v453", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "diagnoses.\"icd9_code\"", "=", "\"v453\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DIAGNOSES.\"ICD9_CODE\" = \"V453\"", "question_refine": "give me the number of patients whose admission type is elective and diagnoses icd9 code is v453?", "key": "9de47dece6861ec239f5b445048e5d34"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 2, 0, "2948"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "diagnoses", "icd9", "code", "is", "2948", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "diagnoses.\"icd9_code\"", "=", "\"2948\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DIAGNOSES.\"ICD9_CODE\" = \"2948\"", "question_refine": "provide the number of patients whose admission type is urgent and diagnoses icd9 code is 2948?", "key": "0e8f81d1242cdc9c96139d18dd974c45"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 4, 0, "Acute salpingitis and oophoritis"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "diagnoses", "long", "title", "is", "acute", "salpingitis", "and", "oophoritis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "diagnoses.\"long_title\"", "=", "\"acute", "salpingitis", "and", "oophoritis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DIAGNOSES.\"LONG_TITLE\" = \"Acute salpingitis and oophoritis\"", "question_refine": "provide the number of patients whose admission type is urgent and diagnoses long title is acute salpingitis and oophoritis?", "key": "8069c7ebf4da69cc765ce168571b8678"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 4, 0, "Ostium secundum type atrial septal defect"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "diagnoses", "long", "title", "is", "ostium", "secundum", "type", "atrial", "septal", "defect", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "diagnoses.\"long_title\"", "=", "\"ostium", "secundum", "type", "atrial", "septal", "defect\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DIAGNOSES.\"LONG_TITLE\" = \"Ostium secundum type atrial septal defect\"", "question_refine": "what is the number of patients whose admission type is urgent and diagnoses long title is ostium secundum type atrial septal defect?", "key": "006ea048ce601c09ed3c998b3cbd55c7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 2, 0, 17]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "icd9", "code", "is", "17", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "procedures.\"icd9_code\"", "=", "\"17\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"ICD9_CODE\" = \"17\"", "question_refine": "provide the number of patients whose admission type is urgent and procedure icd9 code is 17?", "key": "a6ad761e37a208e191433f57667b024c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 2, 0, 540]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "icd9", "code", "is", "540", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "procedures.\"icd9_code\"", "=", "\"540\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PROCEDURES.\"ICD9_CODE\" = \"540\"", "question_refine": "count the number of patients whose admission type is elective and procedure icd9 code is 540?", "key": "975738dc9e601e98b319b82487686ed4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 2, 0, 331]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "icd9", "code", "is", "331", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "procedures.\"icd9_code\"", "=", "\"331\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PROCEDURES.\"ICD9_CODE\" = \"331\"", "question_refine": "what is the number of patients whose admission type is emergency and procedure icd9 code is 331?", "key": "86960807966ab11fb4a31cae186af57a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 3, 0, "Abdomen artery incision"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "short", "title", "is", "abdomen", "artery", "incision", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "procedures.\"short_title\"", "=", "\"abdomen", "artery", "incision\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"SHORT_TITLE\" = \"Abdomen artery incision\"", "question_refine": "provide the number of patients whose admission type is urgent and procedure short title is abdomen artery incision?", "key": "025b440ef65e624fc7920b8ac9bc6519"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 3, 0, "Form cutan ileoureterost"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "short", "title", "is", "form", "cutan", "ileoureterost", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "procedures.\"short_title\"", "=", "\"form", "cutan", "ileoureterost\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"SHORT_TITLE\" = \"Form cutan ileoureterost\"", "question_refine": "provide the number of patients whose admission type is urgent and procedure short title is form cutan ileoureterost?", "key": "0b17981f6cdd40e964a9ba229f5ea2db"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 3, 0, "Percu gastrojejunostomy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "short", "title", "is", "percu", "gastrojejunostomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "procedures.\"short_title\"", "=", "\"percu", "gastrojejunostomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"SHORT_TITLE\" = \"Percu gastrojejunostomy\"", "question_refine": "count the number of patients whose admission type is urgent and procedure short title is percu gastrojejunostomy?", "key": "02327044ff1e866a680fa88cc4de37af"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 3, 0, "Insert 2 vascular stents"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "short", "title", "is", "insert", "2", "vascular", "stents", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "procedures.\"short_title\"", "=", "\"insert", "2", "vascular", "stents\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PROCEDURES.\"SHORT_TITLE\" = \"Insert 2 vascular stents\"", "question_refine": "how many patients whose admission type is emergency and procedure short title is insert 2 vascular stents?", "key": "a619d5854b9eb9d0df34539f613cafc4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 4, 0, "Venous catheterization for renal dialysis"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "long", "title", "is", "venous", "catheterization", "for", "renal", "dialysis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "procedures.\"long_title\"", "=", "\"venous", "catheterization", "for", "renal", "dialysis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"LONG_TITLE\" = \"Venous catheterization for renal dialysis\"", "question_refine": "how many patients whose admission type is urgent and procedure long title is venous catheterization for renal dialysis?", "key": "a61b003ff5bafba8ea45aa2853f939f7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 4, 0, "Attachment of pedicle or flap graft to other sites"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "long", "title", "is", "attachment", "of", "pedicle", "or", "flap", "graft", "to", "other", "sites", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "procedures.\"long_title\"", "=", "\"attachment", "of", "pedicle", "or", "flap", "graft", "to", "other", "sites\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PROCEDURES.\"LONG_TITLE\" = \"Attachment of pedicle or flap graft to other sites\"", "question_refine": "count the number of patients whose admission type is elective and procedure long title is attachment of pedicle or flap graft to other sites?", "key": "b9ddbce5fe38a4b01105bb7fdc218772"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 4, 0, "Other operations on heart and pericardium"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "long", "title", "is", "other", "operations", "on", "heart", "and", "pericardium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "procedures.\"long_title\"", "=", "\"other", "operations", "on", "heart", "and", "pericardium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PROCEDURES.\"LONG_TITLE\" = \"Other operations on heart and pericardium\"", "question_refine": "give me the number of patients whose admission type is elective and procedure long title is other operations on heart and pericardium?", "key": "045957f351a876adb124b29b739d0638"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "type", "is", "main", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose admission type is emergency and drug type is main?", "key": "8314ff25189b1cf1389172288628eccb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 4, 0, "Docusate Sodium"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "name", "is", "docusate", "sodium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "prescriptions.\"drug\"", "=", "\"docusate", "sodium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"DRUG\" = \"Docusate Sodium\"", "question_refine": "count the number of patients whose admission type is emergency and drug name is docusate sodium?", "key": "ad0c2ee55406703b73c20f92102a868d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 4, 0, "D5W (EXCEL BAG)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "name", "is", "d5w", "(", "excel", "bag", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "prescriptions.\"drug\"", "=", "\"d5w", "(excel", "bag)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PRESCRIPTIONS.\"DRUG\" = \"D5W (EXCEL BAG)\"", "question_refine": "count the number of patients whose admission type is urgent and drug name is d5w (excel bag)?", "key": "a59c2fe7f918bb9e3f87dfd11186b2e7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 5, 0, "GLYC1R"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "code", "is", "glyc1r", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"glyc1r\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"GLYC1R\"", "question_refine": "what is the number of patients whose admission type is emergency and drug code is glyc1r?", "key": "8186696c78815c25591204220af03a90"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 5, 0, "ENOX80I"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "code", "is", "enox80i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"enox80i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ENOX80I\"", "question_refine": "count the number of patients whose admission type is emergency and drug code is enox80i?", "key": "a9235e22c8d073812cd26d2c8f638814"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "route", "is", "ivpca", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "prescriptions.\"route\"", "=", "\"ivpca\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PRESCRIPTIONS.\"ROUTE\" = \"IVPCA\"", "question_refine": "give me the number of patients whose admission type is urgent and drug route is ivpca?", "key": "ab77dd480b1dc0b7cb1da0caf15a9068"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "route", "is", "neb", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "prescriptions.\"route\"", "=", "\"neb\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "how many patients whose admission type is urgent and drug route is neb?", "key": "91c5218be91466059b6ab55b5c9a214b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 6, 0, "REPLACE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "route", "is", "replace", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "prescriptions.\"route\"", "=", "\"replace\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND PRESCRIPTIONS.\"ROUTE\" = \"REPLACE\"", "question_refine": "provide the number of patients whose admission type is urgent and drug route is replace?", "key": "814b08ced5bf2cfc63c311dd93979199"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 2, 0, 51257]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "item", "i", "d", "is", "51257", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "lab.\"itemid\"", "=", "\"51257\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND LAB.\"ITEMID\" = \"51257\"", "question_refine": "give me the number of patients whose admission type is elective and item id is 51257?", "key": "07e91d222ec295e0af62c05e46fa5dc2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "Magnesium"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "magnesium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "lab.\"label\"", "=", "\"magnesium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND LAB.\"LABEL\" = \"Magnesium\"", "question_refine": "what is the number of patients whose admission type is emergency and lab test name is magnesium?", "key": "a67acde1ffdd89fb4002c394789b52e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "URGENT"], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "lab", "test", "fluid", "is", "joint", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "lab.\"fluid\"", "=", "\"joint", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "how many patients whose admission type is urgent and lab test fluid is joint fluid?", "key": "a839ed0e465ef114e44b38b91da01604"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "URGENT"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "count the number of patients whose admission type is urgent and lab test category is chemistry?", "key": "0ff56098d8e667560ad6010a2bd49309"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Private"], [0, 14, 0, "PHYS REFERRAL/NORMAL DELI"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\"", "question_refine": "provide the number of patients whose insurance is private and admission location is phys referral/normal deli?", "key": "0e6c9aa4ec70962176e94cd1b787f404"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "BRADYCARDIA"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "bradycardia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"bradycardia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRADYCARDIA\"", "question_refine": "what is the number of patients whose insurance is medicaid and primary disease is bradycardia?", "key": "8752c40e2f19d9e0a8756d1c3c0d1e07"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 10, 1, 23]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "23", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"days_stay\"", ">", "\"23\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"23\"", "question_refine": "give me the number of patients whose insurance is self pay and days of hospital stay is greater than 23?", "key": "09fd10713c941eab173ad347aa3286fb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 10, 1, 27]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"days_stay\"", ">", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"27\"", "question_refine": "provide the number of patients whose insurance is self pay and days of hospital stay is greater than 27?", "key": "01be4c9c27f9397745f08c89be7c083a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 10, 1, 29]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "29", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"days_stay\"", ">", "\"29\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"29\"", "question_refine": "what is the number of patients whose insurance is self pay and days of hospital stay is greater than 29?", "key": "81b9fd8d1b452898ca8a528fc428fa72"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Private"], [0, 18, 2, 1887]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "year", "of", "birth", "is", "less", "than", "1887", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "demographic.\"dob_year\"", "<", "\"1887\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1887\"", "question_refine": "count the number of patients whose insurance is private and year of birth is less than 1887?", "key": "0cbcd863e94c9c26d432776eda767c8d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicare"], [1, 2, 0, "4168"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "diagnoses", "icd9", "code", "is", "4168", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "diagnoses.\"icd9_code\"", "=", "\"4168\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND DIAGNOSES.\"ICD9_CODE\" = \"4168\"", "question_refine": "what is the number of patients whose insurance is medicare and diagnoses icd9 code is 4168?", "key": "871063e662639cce420193023a6c7f6b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 2, 0, "430"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "icd9", "code", "is", "430", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "diagnoses.\"icd9_code\"", "=", "\"430\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DIAGNOSES.\"ICD9_CODE\" = \"430\"", "question_refine": "provide the number of patients whose insurance is self pay and diagnoses icd9 code is 430?", "key": "bb226002b8be8b3696ff60e0ab444621"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Private"], [1, 2, 0, "2769"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "diagnoses", "icd9", "code", "is", "2769", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "diagnoses.\"icd9_code\"", "=", "\"2769\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DIAGNOSES.\"ICD9_CODE\" = \"2769\"", "question_refine": "what is the number of patients whose insurance is private and diagnoses icd9 code is 2769?", "key": "adc966b0bf7912a76c52b14c5f0fb98d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 2, 0, "33829"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "icd9", "code", "is", "33829", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "diagnoses.\"icd9_code\"", "=", "\"33829\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DIAGNOSES.\"ICD9_CODE\" = \"33829\"", "question_refine": "how many patients whose insurance is self pay and diagnoses icd9 code is 33829?", "key": "012f63ae067eacd6c0e4afa9dae1aa7b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 3, 0, "Hx of GI malignancy NOS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "short", "title", "is", "hx", "of", "gi", "malignancy", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "diagnoses.\"short_title\"", "=", "\"hx", "of", "gi", "malignancy", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Hx of GI malignancy NOS\"", "question_refine": "what is the number of patients whose insurance is self pay and diagnoses short title is hx of gi malignancy nos?", "key": "81b7536d96f8c6d71d6411b29f3e4531"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 3, 0, "Crnry athrscl natve vssl"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "short", "title", "is", "crnry", "athrscl", "natve", "vssl", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "diagnoses.\"short_title\"", "=", "\"crnry", "athrscl", "natve", "vssl\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Crnry athrscl natve vssl\"", "question_refine": "give me the number of patients whose insurance is self pay and diagnoses short title is crnry athrscl natve vssl?", "key": "082284313a19eb529220fdbbf1676c91"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Private"], [1, 4, 0, "Infectious mononucleosis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "diagnoses", "long", "title", "is", "infectious", "mononucleosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "diagnoses.\"long_title\"", "=", "\"infectious", "mononucleosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DIAGNOSES.\"LONG_TITLE\" = \"Infectious mononucleosis\"", "question_refine": "what is the number of patients whose insurance is private and diagnoses long title is infectious mononucleosis?", "key": "808b921081a21617d1d649e86c33894e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Government"], [1, 4, 0, "Tietze's disease"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "diagnoses", "long", "title", "is", "tietze", "'s", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "diagnoses.\"long_title\"", "=", "\"tietze's", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND DIAGNOSES.\"LONG_TITLE\" = \"Tietze's disease\"", "question_refine": "provide the number of patients whose insurance is government and diagnoses long title is tietze's disease?", "key": "a8c9ccd4513aa68a86ef56e05609224e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Private"], [1, 4, 0, "Hematoma complicating a procedure"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "diagnoses", "long", "title", "is", "hematoma", "complicating", "a", "procedure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "diagnoses.\"long_title\"", "=", "\"hematoma", "complicating", "a", "procedure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DIAGNOSES.\"LONG_TITLE\" = \"Hematoma complicating a procedure\"", "question_refine": "provide the number of patients whose insurance is private and diagnoses long title is hematoma complicating a procedure?", "key": "a56bfe2c679c02acf5a3018461748064"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicaid"], [1, 4, 0, "Acute on chronic systolic heart failure"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicaid", "and", "diagnoses", "long", "title", "is", "acute", "on", "chronic", "systolic", "heart", "failure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "diagnoses.\"long_title\"", "=", "\"acute", "on", "chronic", "systolic", "heart", "failure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DIAGNOSES.\"LONG_TITLE\" = \"Acute on chronic systolic heart failure\"", "question_refine": "how many patients whose insurance is medicaid and diagnoses long title is acute on chronic systolic heart failure?", "key": "9114d1b703187b9a91eb49802885ee40"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 4, 0, "Blood in stool"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "long", "title", "is", "blood", "in", "stool", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "diagnoses.\"long_title\"", "=", "\"blood", "in", "stool\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DIAGNOSES.\"LONG_TITLE\" = \"Blood in stool\"", "question_refine": "give me the number of patients whose insurance is self pay and diagnoses long title is blood in stool?", "key": "bba8daf0dc3f5b30121ab621a4fd9572"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Private"], [1, 4, 0, "Paraplegia"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "private", "and", "diagnoses", "long", "title", "is", "paraplegia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "diagnoses.\"long_title\"", "=", "\"paraplegia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DIAGNOSES.\"LONG_TITLE\" = \"Paraplegia\"", "question_refine": "how many patients whose insurance is private and diagnoses long title is paraplegia?", "key": "0bbcf8d324631dbcb4695ecf9f9355d6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 2, 0, 8960]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "icd9", "code", "is", "8960", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "procedures.\"icd9_code\"", "=", "\"8960\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND PROCEDURES.\"ICD9_CODE\" = \"8960\"", "question_refine": "count the number of patients whose insurance is private and procedure icd9 code is 8960?", "key": "8a203c76dc335931b4d7ea505187d743"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 2, 0, 8847]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "icd9", "code", "is", "8847", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "procedures.\"icd9_code\"", "=", "\"8847\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND PROCEDURES.\"ICD9_CODE\" = \"8847\"", "question_refine": "provide the number of patients whose insurance is private and procedure icd9 code is 8847?", "key": "09b90c671f009a51f4e731381bad6f2a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 2, 0, 2219]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "icd9", "code", "is", "2219", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "procedures.\"icd9_code\"", "=", "\"2219\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND PROCEDURES.\"ICD9_CODE\" = \"2219\"", "question_refine": "give me the number of patients whose insurance is government and procedure icd9 code is 2219?", "key": "9282ac3a193e0216224ba0aa27a09e60"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicaid"], [2, 2, 0, 331]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "procedure", "icd9", "code", "is", "331", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "procedures.\"icd9_code\"", "=", "\"331\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND PROCEDURES.\"ICD9_CODE\" = \"331\"", "question_refine": "give me the number of patients whose insurance is medicaid and procedure icd9 code is 331?", "key": "95e21d3f8a09445ab0200ce36a3bb911"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicaid"], [2, 2, 0, 7761]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "procedure", "icd9", "code", "is", "7761", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "procedures.\"icd9_code\"", "=", "\"7761\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND PROCEDURES.\"ICD9_CODE\" = \"7761\"", "question_refine": "give me the number of patients whose insurance is medicaid and procedure icd9 code is 7761?", "key": "04ff81516b8b19802dbcca87e803a124"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicare"], [2, 2, 0, 9703]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "procedure", "icd9", "code", "is", "9703", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "procedures.\"icd9_code\"", "=", "\"9703\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND PROCEDURES.\"ICD9_CODE\" = \"9703\"", "question_refine": "provide the number of patients whose insurance is medicare and procedure icd9 code is 9703?", "key": "842458dd6b3386bf8dd16f590c85bc37"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 3, 0, "Abdomen artery incision"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "short", "title", "is", "abdomen", "artery", "incision", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "procedures.\"short_title\"", "=", "\"abdomen", "artery", "incision\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND PROCEDURES.\"SHORT_TITLE\" = \"Abdomen artery incision\"", "question_refine": "give me the number of patients whose insurance is private and procedure short title is abdomen artery incision?", "key": "0415c705636a594e54167a885bafecb1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 3, 0, "Remov biliary/liver tube"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "short", "title", "is", "remov", "biliary", "/", "liver", "tube", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "procedures.\"short_title\"", "=", "\"remov", "biliary/liver", "tube\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND PROCEDURES.\"SHORT_TITLE\" = \"Remov biliary/liver tube\"", "question_refine": "what is the number of patients whose insurance is private and procedure short title is remov biliary/liver tube?", "key": "0e642608874d252c87210c63bfff9aba"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 4, 0, "Single internal mammary-coronary artery bypass"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "long", "title", "is", "single", "internal", "mammary", "-", "coronary", "artery", "bypass", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "procedures.\"long_title\"", "=", "\"single", "internal", "mammary-coronary", "artery", "bypass\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND PROCEDURES.\"LONG_TITLE\" = \"Single internal mammary-coronary artery bypass\"", "question_refine": "count the number of patients whose insurance is private and procedure long title is single internal mammary-coronary artery bypass?", "key": "02359f7d8f1cd2a818f4de4f9d1a3fab"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Laryngoscopy and other tracheoscopy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "title", "is", "laryngoscopy", "and", "other", "tracheoscopy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "procedures.\"long_title\"", "=", "\"laryngoscopy", "and", "other", "tracheoscopy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND PROCEDURES.\"LONG_TITLE\" = \"Laryngoscopy and other tracheoscopy\"", "question_refine": "count the number of patients whose insurance is government and procedure long title is laryngoscopy and other tracheoscopy?", "key": "aa81098d9bbd712002641a023ad9c2ed"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Other percutaneous procedures on biliary tract"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "title", "is", "other", "percutaneous", "procedures", "on", "biliary", "tract", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "procedures.\"long_title\"", "=", "\"other", "percutaneous", "procedures", "on", "biliary", "tract\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND PROCEDURES.\"LONG_TITLE\" = \"Other percutaneous procedures on biliary tract\"", "question_refine": "give me the number of patients whose insurance is government and procedure long title is other percutaneous procedures on biliary tract?", "key": "90caf4ef19c39af73c6c6a3f0c443dac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicaid"], [2, 4, 0, "Automatic implantable cardioverter/defibrillator (AICD) check"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicaid", "and", "procedure", "long", "title", "is", "automatic", "implantable", "cardioverter", "/", "defibrillator", "(", "aicd", ")", "check", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "procedures.\"long_title\"", "=", "\"automatic", "implantable", "cardioverter/defibrillator", "(aicd)", "check\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND PROCEDURES.\"LONG_TITLE\" = \"Automatic implantable cardioverter/defibrillator (AICD) check\"", "question_refine": "how many patients whose insurance is medicaid and procedure long title is automatic implantable cardioverter/defibrillator (aicd) check?", "key": "875d499905399fac8bee24c2c3b53ad0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Government"], [4, 6, 0, "Thyroid Stimulating Hormone"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "lab", "test", "name", "is", "thyroid", "stimulating", "hormone", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "lab.\"label\"", "=", "\"thyroid", "stimulating", "hormone\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND LAB.\"LABEL\" = \"Thyroid Stimulating Hormone\"", "question_refine": "provide the number of patients whose insurance is government and lab test name is thyroid stimulating hormone?", "key": "00ff7a671d3e218eaf9811d9294a2df5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Self Pay"], [4, 6, 0, "RBC, CSF"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "lab", "test", "name", "is", "rbc", ",", "csf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "lab.\"label\"", "=", "\"rbc", "csf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND LAB.\"LABEL\" = \"RBC, CSF\"", "question_refine": "count the number of patients whose insurance is self pay and lab test name is rbc, csf?", "key": "b9f1e03f8008107335da5fbe1f8b604f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Government"], [4, 6, 0, "WBC, Joint Fluid"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "lab", "test", "name", "is", "wbc", ",", "joint", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "lab.\"label\"", "=", "\"wbc", "joint", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND LAB.\"LABEL\" = \"WBC, Joint Fluid\"", "question_refine": "provide the number of patients whose insurance is government and lab test name is wbc, joint fluid?", "key": "829b1b9874d4849cb5c8f0fbabd0373e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Government"], [4, 6, 0, "Hemoglobin"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "government", "and", "lab", "test", "name", "is", "hemoglobin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "lab.\"label\"", "=", "\"hemoglobin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND LAB.\"LABEL\" = \"Hemoglobin\"", "question_refine": "how many patients whose insurance is government and lab test name is hemoglobin?", "key": "019e08d2917352c1c6a6a5e59af70736"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Self Pay"], [4, 6, 0, "Granular Casts"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "lab", "test", "name", "is", "granular", "casts", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "lab.\"label\"", "=", "\"granular", "casts\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND LAB.\"LABEL\" = \"Granular Casts\"", "question_refine": "what is the number of patients whose insurance is self pay and lab test name is granular casts?", "key": "03b293f7978766e73fdfb4285a540bd0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Self Pay"], [4, 6, 0, "Fibrin Degradation Products"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "lab", "test", "name", "is", "fibrin", "degradation", "products", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "lab.\"label\"", "=", "\"fibrin", "degradation", "products\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND LAB.\"LABEL\" = \"Fibrin Degradation Products\"", "question_refine": "provide the number of patients whose insurance is self pay and lab test name is fibrin degradation products?", "key": "05cbfa2dbd0e6f14a3b99380a97d21e0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Government"], [4, 6, 0, "NTproBNP"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "lab", "test", "name", "is", "ntprobnp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "lab.\"label\"", "=", "\"ntprobnp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND LAB.\"LABEL\" = \"NTproBNP\"", "question_refine": "what is the number of patients whose insurance is government and lab test name is ntprobnp?", "key": "04dcc9195c39d775a4c8e4bbca95655d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Private"], [4, 6, 0, "Ferritin"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "lab", "test", "name", "is", "ferritin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "lab.\"label\"", "=", "\"ferritin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND LAB.\"LABEL\" = \"Ferritin\"", "question_refine": "give me the number of patients whose insurance is private and lab test name is ferritin?", "key": "07163adde9ae1793367db811d58fcbd0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Medicare"], [4, 6, 0, "Amylase, Body Fluid"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "lab", "test", "name", "is", "amylase", ",", "body", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"medicare\"", "and", "lab.\"label\"", "=", "\"amylase", "body", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\" AND LAB.\"LABEL\" = \"Amylase, Body Fluid\"", "question_refine": "what is the number of patients whose insurance is medicare and lab test name is amylase, body fluid?", "key": "aac606c3fa8dda9c93ac0bf472a23557"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Government"], [4, 6, 0, "Ammonia"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "lab", "test", "name", "is", "ammonia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "lab.\"label\"", "=", "\"ammonia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND LAB.\"LABEL\" = \"Ammonia\"", "question_refine": "what is the number of patients whose insurance is government and lab test name is ammonia?", "key": "8e437a1d5319bc89ef8672cf6621f812"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"], [0, 16, 0, "COLANGITIS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "and", "primary", "disease", "is", "colangitis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\"", "and", "demographic.\"diagnosis\"", "=", "\"colangitis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COLANGITIS\"", "question_refine": "give me the number of patients whose ethnicity is black/cape verdean and primary disease is colangitis?", "key": "0248a48a1f8756d259a4bd33b86768dc"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"], [0, 16, 0, "FEMORAL ARTERY THROMBOSIS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "and", "primary", "disease", "is", "femoral", "artery", "thrombosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\"", "and", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\"", "question_refine": "give me the number of patients whose ethnicity is black/cape verdean and primary disease is femoral artery thrombosis?", "key": "9c0e1d982d6a14ff908ec2ba2546d3f1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 16, 0, "OVERDOSE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "primary", "disease", "is", "overdose", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"diagnosis\"", "=", "\"overdose\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\"", "question_refine": "give me the number of patients whose ethnicity is white and primary disease is overdose?", "key": "a82c32dbfebc44c734653dbb104baeef"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 16, 0, "FEMORAL ARTERY THROMBOSIS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "primary", "disease", "is", "femoral", "artery", "thrombosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\"", "question_refine": "count the number of patients whose ethnicity is american indian/alaska native and primary disease is femoral artery thrombosis?", "key": "10aa4541cd78d8f064a7a61f4407dd95"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 16, 0, "INFECTED RIGHT THIGH GRAFT"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "primary", "disease", "is", "infected", "right", "thigh", "graft", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"diagnosis\"", "=", "\"infected", "right", "thigh", "graft\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"INFECTED RIGHT THIGH GRAFT\"", "question_refine": "count the number of patients whose ethnicity is american indian/alaska native and primary disease is infected right thigh graft?", "key": "8762eb0a5667497e60e00c3d154d04a5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 16, 0, "PNEUMONIA"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "primary", "disease", "is", "pneumonia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"diagnosis\"", "=", "\"pneumonia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\"", "question_refine": "count the number of patients whose ethnicity is asian and primary disease is pneumonia?", "key": "9719acc7d60a861e34e62a3ce13af41a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 16, 0, "LIVER TRANSPLANT"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "asian", "and", "primary", "disease", "is", "liver", "transplant", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"diagnosis\"", "=", "\"liver", "transplant\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LIVER TRANSPLANT\"", "question_refine": "how many patients whose ethnicity is asian and primary disease is liver transplant?", "key": "add9568e43f767016e132a36afb7ccdd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 4, 2, 50]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "age", "is", "less", "than", "50", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"age\"", "<", "\"50\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"AGE\" < \"50\"", "question_refine": "give me the number of patients whose ethnicity is asian and age is less than 50?", "key": "0b6038dee288554b4be4cbc7318d978e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 18, 2, 2103]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "year", "of", "birth", "is", "less", "than", "2103", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"dob_year\"", "<", "\"2103\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2103\"", "question_refine": "count the number of patients whose ethnicity is white - russian and year of birth is less than 2103?", "key": "089d4aad2ec39bb2d761af30e107414a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 18, 2, 2129]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "year", "of", "birth", "is", "less", "than", "2129", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"dob_year\"", "<", "\"2129\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2129\"", "question_refine": "provide the number of patients whose ethnicity is american indian/alaska native and year of birth is less than 2129?", "key": "827507e01ab3afc178dc211fd3c77e6e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 22, 2, 2148]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "admission", "year", "is", "less", "than", "2148", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"admityear\"", "<", "\"2148\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2148\"", "question_refine": "give me the number of patients whose ethnicity is american indian/alaska native and admission year is less than 2148?", "key": "033c6bc31c1e87fc2bd294982f5fe319"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [0, 22, 2, 2123]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "admission", "year", "is", "less", "than", "2123", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "demographic.\"admityear\"", "<", "\"2123\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2123\"", "question_refine": "give me the number of patients whose ethnicity is black/haitian and admission year is less than 2123?", "key": "94d0be30fd59acfdb250295d59e23a84"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [0, 22, 2, 2124]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "admission", "year", "is", "less", "than", "2124", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "demographic.\"admityear\"", "<", "\"2124\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2124\"", "question_refine": "give me the number of patients whose ethnicity is black/haitian and admission year is less than 2124?", "key": "0f769f9a7f2c3f0370a0819fc352f161"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 22, 2, 2110]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "admission", "year", "is", "less", "than", "2110", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"admityear\"", "<", "\"2110\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2110\"", "question_refine": "give me the number of patients whose ethnicity is asian and admission year is less than 2110?", "key": "0dec664e1cf98dc3fc384816c4c72c8e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [1, 2, 0, "2948"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "diagnoses", "icd9", "code", "is", "2948", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "diagnoses.\"icd9_code\"", "=", "\"2948\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND DIAGNOSES.\"ICD9_CODE\" = \"2948\"", "question_refine": "how many patients whose ethnicity is black/haitian and diagnoses icd9 code is 2948?", "key": "05343cc69204da73ce2ac4ac4d8295bb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "ASIAN"], [1, 4, 0, "Neutropenia, unspecified"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "asian", "and", "diagnoses", "long", "title", "is", "neutropenia", ",", "unspecified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "diagnoses.\"long_title\"", "=", "\"neutropenia", "unspecified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DIAGNOSES.\"LONG_TITLE\" = \"Neutropenia, unspecified\"", "question_refine": "how many patients whose ethnicity is asian and diagnoses long title is neutropenia, unspecified?", "key": "060b7c924b230b79b3935a795cfaf37d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [2, 2, 0, 8854]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "procedure", "icd9", "code", "is", "8854", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "procedures.\"icd9_code\"", "=", "\"8854\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND PROCEDURES.\"ICD9_CODE\" = \"8854\"", "question_refine": "how many patients whose ethnicity is black/haitian and procedure icd9 code is 8854?", "key": "92780cb99869641eda47bd51e2817ff3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "ASIAN"], [2, 4, 0, "Open and other replacement of aortic valve with tissue graft"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "procedure", "long", "title", "is", "open", "and", "other", "replacement", "of", "aortic", "valve", "with", "tissue", "graft", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "procedures.\"long_title\"", "=", "\"open", "and", "other", "replacement", "of", "aortic", "valve", "with", "tissue", "graft\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND PROCEDURES.\"LONG_TITLE\" = \"Open and other replacement of aortic valve with tissue graft\"", "question_refine": "provide the number of patients whose ethnicity is asian and procedure long title is open and other replacement of aortic valve with tissue graft?", "key": "ad8ddc87b6f78351e61ae2c8eb6d84c7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "ASIAN"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose ethnicity is asian and drug type is base?", "key": "0c9f6eae00f98d18ac9f50768c7c5a86"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [3, 4, 0, "Phenylephrine"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "drug", "name", "is", "phenylephrine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "prescriptions.\"drug\"", "=", "\"phenylephrine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND PRESCRIPTIONS.\"DRUG\" = \"Phenylephrine\"", "question_refine": "count the number of patients whose ethnicity is black/haitian and drug name is phenylephrine?", "key": "81246894ba88abc13f0ae732be0ae33f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "ASIAN"], [3, 4, 0, "GlyBURIDE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "drug", "name", "is", "glyburide", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "prescriptions.\"drug\"", "=", "\"glyburide\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND PRESCRIPTIONS.\"DRUG\" = \"GlyBURIDE\"", "question_refine": "give me the number of patients whose ethnicity is asian and drug name is glyburide?", "key": "0c8330f32031377d2d0f4c9c05d1adae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "drug", "route", "is", "neb", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "prescriptions.\"route\"", "=", "\"neb\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "what is the number of patients whose ethnicity is white - russian and drug route is neb?", "key": "96963b619664c6cb69c86c26538c79da"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "WHITE"], [4, 6, 0, "Protein/Creatinine Ratio"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "lab", "test", "name", "is", "protein", "/", "creatinine", "ratio", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "lab.\"label\"", "=", "\"protein/creatinine", "ratio\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND LAB.\"LABEL\" = \"Protein/Creatinine Ratio\"", "question_refine": "provide the number of patients whose ethnicity is white and lab test name is protein/creatinine ratio?", "key": "0d1708a4f7f49d7baab81dc4dcb63832"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "T5 FRACTURE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "t5", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"t5", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"T5 FRACTURE\"", "question_refine": "count the number of patients whose death status is 1 and primary disease is t5 fracture?", "key": "860ca98fdc1c9de35d4d8efdcef583ec"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "st", "elevated", "myocardial", "infarction\\cardiac", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"st", "elevated", "myocardial", "infarction\\cardiac", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH\"", "question_refine": "provide the number of patients whose death status is 1 and primary disease is st elevated myocardial infarction\\cardiac cath?", "key": "a098cd2cff8c0c939b8ee19c13e38c43"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\"", "question_refine": "how many patients whose death status is 1 and primary disease is brain mass;intracranial hemorrhage?", "key": "8671bf636d2e0104446bd24670fb7189"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "LEFT FEMUR FRACTURE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "left", "femur", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"left", "femur", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT FEMUR FRACTURE\"", "question_refine": "count the number of patients whose death status is 1 and primary disease is left femur fracture?", "key": "898baa9cfc011b6284b24d2cbc29209a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "PITUITARY BLEED"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "pituitary", "bleed", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"pituitary", "bleed\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"PITUITARY BLEED\"", "question_refine": "give me the number of patients whose death status is 1 and primary disease is pituitary bleed?", "key": "88309c7f731812aac8c0784535361b4e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 10, 1, 2]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"days_stay\"", ">", "\"2\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"2\"", "question_refine": "provide the number of patients whose death status is 1 and days of hospital stay is greater than 2?", "key": "02ba408e52f64f06bc6b48bee70f2bda"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 18, 2, 1837]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "year", "of", "birth", "is", "less", "than", "1837", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"dob_year\"", "<", "\"1837\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1837\"", "question_refine": "give me the number of patients whose death status is 1 and year of birth is less than 1837?", "key": "05b45f4c6bb925d5091172692b926676"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 2, 0, "5712"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "icd9", "code", "is", "5712", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"icd9_code\"", "=", "\"5712\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"ICD9_CODE\" = \"5712\"", "question_refine": "count the number of patients whose death status is 0 and diagnoses icd9 code is 5712?", "key": "a599dd4808509b599117b9956c19739c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 2, 0, "29570"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "icd9", "code", "is", "29570", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"icd9_code\"", "=", "\"29570\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"ICD9_CODE\" = \"29570\"", "question_refine": "give me the number of patients whose death status is 0 and diagnoses icd9 code is 29570?", "key": "88bd504917d82cccd38ba49d6ab39d9d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 2, 0, "5680"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "icd9", "code", "is", "5680", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "diagnoses.\"icd9_code\"", "=", "\"5680\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DIAGNOSES.\"ICD9_CODE\" = \"5680\"", "question_refine": "how many patients whose death status is 1 and diagnoses icd9 code is 5680?", "key": "8902a02099712a8189d8bcf54a6d94de"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 2, 0, "5733"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "icd9", "code", "is", "5733", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "diagnoses.\"icd9_code\"", "=", "\"5733\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DIAGNOSES.\"ICD9_CODE\" = \"5733\"", "question_refine": "how many patients whose death status is 1 and diagnoses icd9 code is 5733?", "key": "87193d8860bf45c98f1c716149f06cb5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 3, 0, "Fall NOS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "short", "title", "is", "fall", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "diagnoses.\"short_title\"", "=", "\"fall", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Fall NOS\"", "question_refine": "how many patients whose death status is 1 and diagnoses short title is fall nos?", "key": "ac4859e6d068b8942b9b9fe02883dde2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 4, 0, "Suicide and self-inflicted poisoning by analgesics, antipyretics, and antirheumatics"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "long", "title", "is", "suicide", "and", "self", "-", "inflicted", "poisoning", "by", "analgesics", ",", "antipyretics", ",", "and", "antirheumatics", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"long_title\"", "=", "\"suicide", "and", "self-inflicted", "poisoning", "by", "analgesics", "antipyretics", "and", "antirheumatics\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"LONG_TITLE\" = \"Suicide and self-inflicted poisoning by analgesics, antipyretics, and antirheumatics\"", "question_refine": "provide the number of patients whose death status is 0 and diagnoses long title is suicide and self-inflicted poisoning by analgesics, antipyretics, and antirheumatics?", "key": "06bbd920c4191e622346b9c33d8b0f43"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 4, 0, "Chronic diastolic heart failure"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "long", "title", "is", "chronic", "diastolic", "heart", "failure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"long_title\"", "=", "\"chronic", "diastolic", "heart", "failure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DIAGNOSES.\"LONG_TITLE\" = \"Chronic diastolic heart failure\"", "question_refine": "count the number of patients whose death status is 0 and diagnoses long title is chronic diastolic heart failure?", "key": "93769bf5b268fb4f529260ca8fc17c57"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 4610]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "icd9", "code", "is", "4610", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"icd9_code\"", "=", "\"4610\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"ICD9_CODE\" = \"4610\"", "question_refine": "count the number of patients whose death status is 0 and procedure icd9 code is 4610?", "key": "a8f8dda2d780d61747aee2d99f50e9fe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 331]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "icd9", "code", "is", "331", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"icd9_code\"", "=", "\"331\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"ICD9_CODE\" = \"331\"", "question_refine": "what is the number of patients whose death status is 0 and procedure icd9 code is 331?", "key": "021ebbc73156e10c78d02f72ff647325"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 5012]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "icd9", "code", "is", "5012", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"icd9_code\"", "=", "\"5012\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"ICD9_CODE\" = \"5012\"", "question_refine": "how many patients whose death status is 0 and procedure icd9 code is 5012?", "key": "9d0a02bc7f100ba107192d6e44a9e695"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 3, 0, "Int insert lead in vent"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "short", "title", "is", "int", "insert", "lead", "in", "vent", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"short_title\"", "=", "\"int", "insert", "lead", "in", "vent\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Int insert lead in vent\"", "question_refine": "give me the number of patients whose death status is 0 and procedure short title is int insert lead in vent?", "key": "9debb2f0f6c08e2c0b547c27502c36b4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 3, 0, "Suture bladder lacerat"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "short", "title", "is", "suture", "bladder", "lacerat", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"short_title\"", "=", "\"suture", "bladder", "lacerat\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Suture bladder lacerat\"", "question_refine": "what is the number of patients whose death status is 0 and procedure short title is suture bladder lacerat?", "key": "0a997753f9229f659e7e05d541190484"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 4, 0, "Open biopsy of soft tissue"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "long", "title", "is", "open", "biopsy", "of", "soft", "tissue", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "procedures.\"long_title\"", "=", "\"open", "biopsy", "of", "soft", "tissue\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"LONG_TITLE\" = \"Open biopsy of soft tissue\"", "question_refine": "give me the number of patients whose death status is 0 and procedure long title is open biopsy of soft tissue?", "key": "061d620cdd89282af1d48f9a0f2d3931"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 13, 0, 1], [3, 4, 0, "Pantoprazole Sodium"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "drug", "name", "is", "pantoprazole", "sodium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "prescriptions.\"drug\"", "=", "\"pantoprazole", "sodium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND PRESCRIPTIONS.\"DRUG\" = \"Pantoprazole Sodium\"", "question_refine": "give me the number of patients whose death status is 1 and drug name is pantoprazole sodium?", "key": "aa87e8e508f6984831876860be1761df"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [0, 15, 0, "DISC-TRAN CANCER/CHLDRN H"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "discharge", "location", "is", "disc", "-", "tran", "cancer", "/", "chldrn", "h", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "demographic.\"discharge_location\"", "=", "\"disc-tran", "cancer/chldrn", "h\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISC-TRAN CANCER/CHLDRN H\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and discharge location is disc-tran cancer/chldrn h?", "key": "08f97d12862b1090fe02850b15e4b5b9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [0, 15, 0, "DEAD/EXPIRED"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "discharge", "location", "is", "dead", "/", "expired", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "demographic.\"discharge_location\"", "=", "\"dead/expired\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and discharge location is dead/expired?", "key": "806f6052bc99c1f5f8cb8a3215d3f8b2"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 15, 0, "HOME"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "discharge", "location", "is", "home", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"discharge_location\"", "=", "\"home\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\"", "question_refine": "how many patients whose admission location is trsf within this facility and discharge location is home?", "key": "81d4b16c544ec88c25ad79af7eae050e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 16, 0, "T5 FRACTURE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "primary", "disease", "is", "t5", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"diagnosis\"", "=", "\"t5", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"T5 FRACTURE\"", "question_refine": "count the number of patients whose admission location is emergency room admit and primary disease is t5 fracture?", "key": "0625a832abfe55a8682577eedb38b824"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 10, 1, 4]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"days_stay\"", ">", "\"4\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"4\"", "question_refine": "give me the number of patients whose admission location is emergency room admit and days of hospital stay is greater than 4?", "key": "050ed27881bce414cfd05ba83a22a4d4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 18, 2, 1879]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "year", "of", "birth", "is", "less", "than", "1879", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"dob_year\"", "<", "\"1879\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1879\"", "question_refine": "give me the number of patients whose admission location is trsf within this facility and year of birth is less than 1879?", "key": "0bc26b6c69c9bf3628430b1e23d18007"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [1, 3, 0, "Mixed acid-base bal dis"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "diagnoses", "short", "title", "is", "mixed", "acid", "-", "base", "bal", "dis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "diagnoses.\"short_title\"", "=", "\"mixed", "acid-base", "bal", "dis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Mixed acid-base bal dis\"", "question_refine": "count the number of patients whose admission location is emergency room admit and diagnoses short title is mixed acid-base bal dis?", "key": "015ae8de2f7597f3308e719345bd99de"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 2, 0, 3799]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "procedure", "icd9", "code", "is", "3799", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "procedures.\"icd9_code\"", "=", "\"3799\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND PROCEDURES.\"ICD9_CODE\" = \"3799\"", "question_refine": "count the number of patients whose admission location is emergency room admit and procedure icd9 code is 3799?", "key": "a5daeaab175913c300dbbbb1206a9c4e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 3, 0, "Arthrocentesis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "procedure", "short", "title", "is", "arthrocentesis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "procedures.\"short_title\"", "=", "\"arthrocentesis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND PROCEDURES.\"SHORT_TITLE\" = \"Arthrocentesis\"", "question_refine": "what is the number of patients whose admission location is emergency room admit and procedure short title is arthrocentesis?", "key": "87d8d820fb592e6d775688ce8e9e1e64"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SNF"], [0, 16, 0, "HYPOXIA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "snf", "and", "primary", "disease", "is", "hypoxia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"snf\"", "and", "demographic.\"diagnosis\"", "=", "\"hypoxia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPOXIA\"", "question_refine": "provide the number of patients whose discharge location is snf and primary disease is hypoxia?", "key": "abc509430b1d8d81c516286d740587c4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SNF"], [0, 16, 0, "ABDOMINAL PAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "snf", "and", "primary", "disease", "is", "abdominal", "pain", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"snf\"", "and", "demographic.\"diagnosis\"", "=", "\"abdominal", "pain\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL PAIN\"", "question_refine": "how many patients whose discharge location is snf and primary disease is abdominal pain?", "key": "a772fe669af1ccf30732303ee43d3e8e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SNF"], [0, 16, 0, "COPD EXACERBATION"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "snf", "and", "primary", "disease", "is", "copd", "exacerbation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"snf\"", "and", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\"", "question_refine": "how many patients whose discharge location is snf and primary disease is copd exacerbation?", "key": "a684318d4cd02c2bb51bcd7d668f7cc9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"], [0, 16, 0, "RUQ PAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "and", "primary", "disease", "is", "ruq", "pain", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\"", "and", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\"", "question_refine": "how many patients whose discharge location is disch-tran to psych hosp and primary disease is ruq pain?", "key": "1042fd78503d5845278fe1b06f681b2a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 4, 2, 27]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "age", "is", "less", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"age\"", "<", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"AGE\" < \"27\"", "question_refine": "count the number of patients whose discharge location is home health care and age is less than 27?", "key": "00aeb9c1a1c154237887e8f3557273c0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [0, 4, 2, 64]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "age", "is", "less", "than", "64", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "demographic.\"age\"", "<", "\"64\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DEMOGRAPHIC.\"AGE\" < \"64\"", "question_refine": "count the number of patients whose discharge location is short term hospital and age is less than 64?", "key": "8c509179c969a1bd8f152a3124083f4f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 10, 1, 20]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "20", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"days_stay\"", ">", "\"20\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"20\"", "question_refine": "how many patients whose discharge location is home and days of hospital stay is greater than 20?", "key": "0ce7ffc2b0832d683b0873a75983ee3b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "LONG TERM CARE HOSPITAL"], [0, 18, 2, 2058]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "long", "term", "care", "hospital", "and", "year", "of", "birth", "is", "less", "than", "2058", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"long", "term", "care", "hospital\"", "and", "demographic.\"dob_year\"", "<", "\"2058\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LONG TERM CARE HOSPITAL\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2058\"", "question_refine": "provide the number of patients whose discharge location is long term care hospital and year of birth is less than 2058?", "key": "0ee5fc38f74c5504524928e78a4f7e06"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [0, 18, 2, 2078]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "year", "of", "birth", "is", "less", "than", "2078", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "demographic.\"dob_year\"", "<", "\"2078\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2078\"", "question_refine": "count the number of patients whose discharge location is short term hospital and year of birth is less than 2078?", "key": "0dc83447bac46f820dda4a5f23a89502"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "DISC-TRAN CANCER/CHLDRN H"], [2, 2, 0, 8604]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "disc", "-", "tran", "cancer", "/", "chldrn", "h", "and", "procedure", "icd9", "code", "is", "8604", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"disc-tran", "cancer/chldrn", "h\"", "and", "procedures.\"icd9_code\"", "=", "\"8604\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISC-TRAN CANCER/CHLDRN H\" AND PROCEDURES.\"ICD9_CODE\" = \"8604\"", "question_refine": "count the number of patients whose discharge location is disc-tran cancer/chldrn h and procedure icd9 code is 8604?", "key": "bb293bd6de2390ea5296f80618672cc4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "LONG TERM CARE HOSPITAL"], [2, 2, 0, 9229]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "long", "term", "care", "hospital", "and", "procedure", "icd9", "code", "is", "9229", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"long", "term", "care", "hospital\"", "and", "procedures.\"icd9_code\"", "=", "\"9229\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LONG TERM CARE HOSPITAL\" AND PROCEDURES.\"ICD9_CODE\" = \"9229\"", "question_refine": "provide the number of patients whose discharge location is long term care hospital and procedure icd9 code is 9229?", "key": "032ce153e9f7fd9bb58d2381e7473a96"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME"], [2, 3, 0, "Contrast arteriogram-leg"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "procedure", "short", "title", "is", "contrast", "arteriogram", "-", "leg", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "procedures.\"short_title\"", "=", "\"contrast", "arteriogram-leg\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND PROCEDURES.\"SHORT_TITLE\" = \"Contrast arteriogram-leg\"", "question_refine": "give me the number of patients whose discharge location is home and procedure short title is contrast arteriogram-leg?", "key": "0bac3adfb0214ec24e28eb8a60c823a6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME"], [2, 3, 0, "Skin closure NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "procedure", "short", "title", "is", "skin", "closure", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "procedures.\"short_title\"", "=", "\"skin", "closure", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND PROCEDURES.\"SHORT_TITLE\" = \"Skin closure NEC\"", "question_refine": "what is the number of patients whose discharge location is home and procedure short title is skin closure nec?", "key": "04f6025046849b72bcf92ac808479159"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA"], [0, 4, 2, 89]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda", "and", "age", "is", "less", "than", "89", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda\"", "and", "demographic.\"age\"", "<", "\"89\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA\" AND DEMOGRAPHIC.\"AGE\" < \"89\"", "question_refine": "give me the number of patients whose primary disease is coronary artery disease\\coronary artery bypass graft /sda and age is less than 89?", "key": "a84dd2cf945be1cd6281de749bbe8da4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "FEMORAL ARTERY THROMBOSIS"], [0, 4, 2, 89]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "femoral", "artery", "thrombosis", "and", "age", "is", "less", "than", "89", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\"", "and", "demographic.\"age\"", "<", "\"89\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\" AND DEMOGRAPHIC.\"AGE\" < \"89\"", "question_refine": "provide the number of patients whose primary disease is femoral artery thrombosis and age is less than 89?", "key": "8647b4ed3acbcdf65b6a3e4a003a5b5b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "OVERDOSE"], [0, 4, 2, 50]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "overdose", "and", "age", "is", "less", "than", "50", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"overdose\"", "and", "demographic.\"age\"", "<", "\"50\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\" AND DEMOGRAPHIC.\"AGE\" < \"50\"", "question_refine": "count the number of patients whose primary disease is overdose and age is less than 50?", "key": "aafae9c30494946bbd7ac56453a627b2"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "UPPER GI BLEED"], [0, 4, 2, 51]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "upper", "gi", "bleed", "and", "age", "is", "less", "than", "51", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"upper", "gi", "bleed\"", "and", "demographic.\"age\"", "<", "\"51\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"UPPER GI BLEED\" AND DEMOGRAPHIC.\"AGE\" < \"51\"", "question_refine": "provide the number of patients whose primary disease is upper gi bleed and age is less than 51?", "key": "03e1872fa9f2244d449f2a0055cc0b8e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ACIDOSIS"], [0, 4, 2, 79]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "acidosis", "and", "age", "is", "less", "than", "79", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"acidosis\"", "and", "demographic.\"age\"", "<", "\"79\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ACIDOSIS\" AND DEMOGRAPHIC.\"AGE\" < \"79\"", "question_refine": "give me the number of patients whose primary disease is acidosis and age is less than 79?", "key": "06e87f96c060a82f8f490899e8cd2b2e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "STEMI"], [0, 4, 2, 20]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "stemi", "and", "age", "is", "less", "than", "20", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"stemi\"", "and", "demographic.\"age\"", "<", "\"20\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"STEMI\" AND DEMOGRAPHIC.\"AGE\" < \"20\"", "question_refine": "how many patients whose primary disease is stemi and age is less than 20?", "key": "884dc26a6654afe0e49736753edf0841"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CELO-VESSICLE FISTULA"], [0, 4, 2, 27]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "celo", "-", "vessicle", "fistula", "and", "age", "is", "less", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"celo-vessicle", "fistula\"", "and", "demographic.\"age\"", "<", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CELO-VESSICLE FISTULA\" AND DEMOGRAPHIC.\"AGE\" < \"27\"", "question_refine": "how many patients whose primary disease is celo-vessicle fistula and age is less than 27?", "key": "9567d248d6d501760e7ebd8b722cb088"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"], [0, 4, 2, 54]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "squamous", "cell", "carcinoma", "oral", "tongue", "/", "sda", "and", "age", "is", "less", "than", "54", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"squamous", "cell", "carcinoma", "oral", "tongue/sda\"", "and", "demographic.\"age\"", "<", "\"54\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA\" AND DEMOGRAPHIC.\"AGE\" < \"54\"", "question_refine": "give me the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and age is less than 54?", "key": "80aa8850eba943696abe768a98fb73a3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "HYPERGLYCEMIA"], [0, 4, 2, 56]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "hyperglycemia", "and", "age", "is", "less", "than", "56", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\"", "and", "demographic.\"age\"", "<", "\"56\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\" AND DEMOGRAPHIC.\"AGE\" < \"56\"", "question_refine": "how many patients whose primary disease is hyperglycemia and age is less than 56?", "key": "871de8f4f83e7d3c523502445f3264de"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CELO-VESSICLE FISTULA"], [0, 4, 2, 45]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "celo", "-", "vessicle", "fistula", "and", "age", "is", "less", "than", "45", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"celo-vessicle", "fistula\"", "and", "demographic.\"age\"", "<", "\"45\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CELO-VESSICLE FISTULA\" AND DEMOGRAPHIC.\"AGE\" < \"45\"", "question_refine": "provide the number of patients whose primary disease is celo-vessicle fistula and age is less than 45?", "key": "804d61ea251779e8ec9d8f758e134a6d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "LIVER TRANSPLANT"], [0, 4, 2, 85]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "liver", "transplant", "and", "age", "is", "less", "than", "85", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"liver", "transplant\"", "and", "demographic.\"age\"", "<", "\"85\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"LIVER TRANSPLANT\" AND DEMOGRAPHIC.\"AGE\" < \"85\"", "question_refine": "how many patients whose primary disease is liver transplant and age is less than 85?", "key": "95729f0dfd914c9590bd8c1e29b1c9b9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CONGESTIVE HEART FAILURE"], [0, 10, 1, 13]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "congestive", "heart", "failure", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "13", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"congestive", "heart", "failure\"", "and", "demographic.\"days_stay\"", ">", "\"13\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CONGESTIVE HEART FAILURE\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"13\"", "question_refine": "provide the number of patients whose primary disease is congestive heart failure and days of hospital stay is greater than 13?", "key": "02c3ab63ce702e2e06cc08185f7d8025"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "NEWBORN"], [0, 10, 1, 29]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "29", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "demographic.\"days_stay\"", ">", "\"29\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"29\"", "question_refine": "provide the number of patients whose primary disease is newborn and days of hospital stay is greater than 29?", "key": "06028c07e07182afdd1e9c62a1543c56"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CHEST PAIN"], [0, 18, 2, 1837]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "chest", "pain", "and", "year", "of", "birth", "is", "less", "than", "1837", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"chest", "pain\"", "and", "demographic.\"dob_year\"", "<", "\"1837\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CHEST PAIN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1837\"", "question_refine": "give me the number of patients whose primary disease is chest pain and year of birth is less than 1837?", "key": "88d8bcd981e64d9f4392bbe153ef2896"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CEREBRAL ANEURYSM/SDA"], [0, 18, 2, 2126]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "cerebral", "aneurysm", "/", "sda", "and", "year", "of", "birth", "is", "less", "than", "2126", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"cerebral", "aneurysm/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2126\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CEREBRAL ANEURYSM/SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2126\"", "question_refine": "what is the number of patients whose primary disease is cerebral aneurysm/sda and year of birth is less than 2126?", "key": "83587912882a86d7dca07f32f4e56949"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "UPPER GI BLEED"], [0, 18, 2, 2076]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "upper", "gi", "bleed", "and", "year", "of", "birth", "is", "less", "than", "2076", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"upper", "gi", "bleed\"", "and", "demographic.\"dob_year\"", "<", "\"2076\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"UPPER GI BLEED\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2076\"", "question_refine": "how many patients whose primary disease is upper gi bleed and year of birth is less than 2076?", "key": "8b3f3fcfe4d5fcfe1568a36890cfc580"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "HYPERGLYCEMIA"], [0, 18, 2, 2167]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "hyperglycemia", "and", "year", "of", "birth", "is", "less", "than", "2167", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\"", "and", "demographic.\"dob_year\"", "<", "\"2167\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2167\"", "question_refine": "provide the number of patients whose primary disease is hyperglycemia and year of birth is less than 2167?", "key": "0d83c52fc4822a82a4ebf2428e18c0fa"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "S/P HANGING"], [0, 18, 2, 2123]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "s", "/", "p", "hanging", "and", "year", "of", "birth", "is", "less", "than", "2123", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"s/p", "hanging\"", "and", "demographic.\"dob_year\"", "<", "\"2123\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"S/P HANGING\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2123\"", "question_refine": "what is the number of patients whose primary disease is s/p hanging and year of birth is less than 2123?", "key": "0a884e78aa02a74579bcb18489ef1b06"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "COPD EXACERBATION"], [0, 19, 4, 2158.0]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "copd", "exacerbation", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2158", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\"", "and", "demographic.\"dod_year\"", "<=", "\"2158.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2158.0\"", "question_refine": "provide the number of patients whose primary disease is copd exacerbation and year of death is less than or equal to 2158?", "key": "0a3dc5c21d8ffc3c23a92fb8702dc0d3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "NEWBORN"], [0, 19, 4, 2122.0]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2122", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "demographic.\"dod_year\"", "<=", "\"2122.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2122.0\"", "question_refine": "what is the number of patients whose primary disease is newborn and year of death is less than or equal to 2122?", "key": "072772efb616023608b5eb3921bc36bb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA"], [0, 19, 4, 2179.0]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "left", "internal", "jugular", "vein", "thrombosis;left", "arm", "edema", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2179", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"left", "internal", "jugular", "vein", "thrombosis;left", "arm", "edema\"", "and", "demographic.\"dod_year\"", "<=", "\"2179.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2179.0\"", "question_refine": "give me the number of patients whose primary disease is left internal jugular vein thrombosis;left arm edema and year of death is less than or equal to 2179?", "key": "844e56db40ebdffe688da456b2860342"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "FEMORAL ARTERY THROMBOSIS"], [0, 19, 4, 2154.0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "femoral", "artery", "thrombosis", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2154", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\"", "and", "demographic.\"dod_year\"", "<=", "\"2154.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2154.0\"", "question_refine": "how many patients whose primary disease is femoral artery thrombosis and year of death is less than or equal to 2154?", "key": "867a534f015f32479c12b96fb31876a8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SYNCOPE;TELEMETRY"], [0, 19, 4, 2158.0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "syncope;telemetry", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2158", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"syncope;telemetry\"", "and", "demographic.\"dod_year\"", "<=", "\"2158.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SYNCOPE;TELEMETRY\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2158.0\"", "question_refine": "how many patients whose primary disease is syncope;telemetry and year of death is less than or equal to 2158?", "key": "0be50e80b5be87e0c4395c5608c9d39f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SYNCOPE;TELEMETRY"], [0, 19, 4, 2179.0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "syncope;telemetry", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2179", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"syncope;telemetry\"", "and", "demographic.\"dod_year\"", "<=", "\"2179.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SYNCOPE;TELEMETRY\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2179.0\"", "question_refine": "how many patients whose primary disease is syncope;telemetry and year of death is less than or equal to 2179?", "key": "009aa4759afa218e175bb02341f17f70"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CONGESTIVE HEART FAILURE"], [0, 19, 4, 2115.0]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "congestive", "heart", "failure", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2115", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"congestive", "heart", "failure\"", "and", "demographic.\"dod_year\"", "<=", "\"2115.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CONGESTIVE HEART FAILURE\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2115.0\"", "question_refine": "how many patients whose primary disease is congestive heart failure and year of death is less than or equal to 2115?", "key": "09984e6569fc8c58f0b5fc16e38e3dd6"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CEREBRAL ANEURYSM/SDA"], [0, 22, 2, 2200]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "cerebral", "aneurysm", "/", "sda", "and", "admission", "year", "is", "less", "than", "2200", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"cerebral", "aneurysm/sda\"", "and", "demographic.\"admityear\"", "<", "\"2200\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CEREBRAL ANEURYSM/SDA\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2200\"", "question_refine": "give me the number of patients whose primary disease is cerebral aneurysm/sda and admission year is less than 2200?", "key": "a75e1aa8b393a93c5a51986d68dc15a6"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CEREBRAL ANEURYSM/SDA"], [0, 22, 2, 2173]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "cerebral", "aneurysm", "/", "sda", "and", "admission", "year", "is", "less", "than", "2173", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"cerebral", "aneurysm/sda\"", "and", "demographic.\"admityear\"", "<", "\"2173\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CEREBRAL ANEURYSM/SDA\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2173\"", "question_refine": "provide the number of patients whose primary disease is cerebral aneurysm/sda and admission year is less than 2173?", "key": "9bcb8fd398ac5be28718b9fb311c354e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "RUQ PAIN"], [0, 22, 2, 2146]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "ruq", "pain", "and", "admission", "year", "is", "less", "than", "2146", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\"", "and", "demographic.\"admityear\"", "<", "\"2146\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2146\"", "question_refine": "how many patients whose primary disease is ruq pain and admission year is less than 2146?", "key": "8404478c3a267757514125bb690cca23"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SEPSIS"], [0, 22, 2, 2187]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sepsis", "and", "admission", "year", "is", "less", "than", "2187", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"sepsis\"", "and", "demographic.\"admityear\"", "<", "\"2187\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SEPSIS\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2187\"", "question_refine": "what is the number of patients whose primary disease is sepsis and admission year is less than 2187?", "key": "9e3324b9e4876efdcca381640e060400"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "SEPSIS"], [2, 2, 0, 9960]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sepsis", "and", "procedure", "icd9", "code", "is", "9960", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"sepsis\"", "and", "procedures.\"icd9_code\"", "=", "\"9960\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SEPSIS\" AND PROCEDURES.\"ICD9_CODE\" = \"9960\"", "question_refine": "count the number of patients whose primary disease is sepsis and procedure icd9 code is 9960?", "key": "ac913a6b3e1ac8c1578d0b6f9f3788f8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "GANGRENE"], [3, 6, 0, "PO/NG"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "gangrene", "and", "drug", "route", "is", "po", "/", "ng", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"gangrene\"", "and", "prescriptions.\"route\"", "=", "\"po/ng\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GANGRENE\" AND PRESCRIPTIONS.\"ROUTE\" = \"PO/NG\"", "question_refine": "provide the number of patients whose primary disease is gangrene and drug route is po/ng?", "key": "10b32134252a1f771d87a3886090cfb9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "NEWBORN"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "lab", "test", "fluid", "is", "pleural", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "give me the number of patients whose primary disease is newborn and lab test fluid is pleural?", "key": "82eff879cba7ff7e99b9425a450d16e3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "NEWBORN"], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "lab", "test", "fluid", "is", "blood", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "lab.\"fluid\"", "=", "\"blood\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "count the number of patients whose primary disease is newborn and lab test fluid is blood?", "key": "96a65966374941a10a74e3436a43aadd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "S/P FALL"], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "s", "/", "p", "fall", "and", "lab", "test", "fluid", "is", "ascites", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"s/p", "fall\"", "and", "lab.\"fluid\"", "=", "\"ascites\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"S/P FALL\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "provide the number of patients whose primary disease is s/p fall and lab test fluid is ascites?", "key": "84cdf16ce9ced3807228663939f35f2c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 36], [0, 10, 1, 14]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "36", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "14", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"36\"", "and", "demographic.\"days_stay\"", ">", "\"14\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"36\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"14\"", "question_refine": "provide the number of patients whose age is less than 36 and days of hospital stay is greater than 14?", "key": "09d912da854c13b02cbfc618578853a1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 24], [0, 10, 1, 11]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "24", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "11", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"24\"", "and", "demographic.\"days_stay\"", ">", "\"11\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"24\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"11\"", "question_refine": "count the number of patients whose age is less than 24 and days of hospital stay is greater than 11?", "key": "aa8fea62a1049793a19a00bdb81275c3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 48], [0, 22, 2, 2138]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "48", "and", "admission", "year", "is", "less", "than", "2138", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"48\"", "and", "demographic.\"admityear\"", "<", "\"2138\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"48\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2138\"", "question_refine": "how many patients whose age is less than 48 and admission year is less than 2138?", "key": "088bfde60ac975ad3850f459ad47cfef"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 49], [0, 22, 2, 2198]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "49", "and", "admission", "year", "is", "less", "than", "2198", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"49\"", "and", "demographic.\"admityear\"", "<", "\"2198\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"49\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2198\"", "question_refine": "give me the number of patients whose age is less than 49 and admission year is less than 2198?", "key": "aa9d08c1a7ed4cdd6bf2b289a54a6cc1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 58], [0, 22, 2, 2107]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "58", "and", "admission", "year", "is", "less", "than", "2107", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"58\"", "and", "demographic.\"admityear\"", "<", "\"2107\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"58\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2107\"", "question_refine": "how many patients whose age is less than 58 and admission year is less than 2107?", "key": "87d2e624239a23f89bfbb0fcc952c3f7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 31], [1, 2, 0, "V140"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "31", "and", "diagnoses", "icd9", "code", "is", "v140", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"31\"", "and", "diagnoses.\"icd9_code\"", "=", "\"v140\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"31\" AND DIAGNOSES.\"ICD9_CODE\" = \"V140\"", "question_refine": "how many patients whose age is less than 31 and diagnoses icd9 code is v140?", "key": "bb7026d14a730065b59a010540dc5904"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 50], [1, 2, 0, "32723"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "50", "and", "diagnoses", "icd9", "code", "is", "32723", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"50\"", "and", "diagnoses.\"icd9_code\"", "=", "\"32723\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"50\" AND DIAGNOSES.\"ICD9_CODE\" = \"32723\"", "question_refine": "give me the number of patients whose age is less than 50 and diagnoses icd9 code is 32723?", "key": "833b7bc32d5e845e94f9a99e0700998d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 31], [1, 2, 0, "70721"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "31", "and", "diagnoses", "icd9", "code", "is", "70721", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"31\"", "and", "diagnoses.\"icd9_code\"", "=", "\"70721\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"31\" AND DIAGNOSES.\"ICD9_CODE\" = \"70721\"", "question_refine": "how many patients whose age is less than 31 and diagnoses icd9 code is 70721?", "key": "a71971647b210e967ef858d5cdc770bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 43], [1, 3, 0, "Prob-head/neck/trunk NOS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "43", "and", "diagnoses", "short", "title", "is", "prob", "-", "head", "/", "neck", "/", "trunk", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"43\"", "and", "diagnoses.\"short_title\"", "=", "\"prob-head/neck/trunk", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"43\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Prob-head/neck/trunk NOS\"", "question_refine": "count the number of patients whose age is less than 43 and diagnoses short title is prob-head/neck/trunk nos?", "key": "06fbe5c6c99bc3f7cd0a53249b2de3dd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 50], [1, 4, 0, "Acute vascular insufficiency of intestine"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "50", "and", "diagnoses", "long", "title", "is", "acute", "vascular", "insufficiency", "of", "intestine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"50\"", "and", "diagnoses.\"long_title\"", "=", "\"acute", "vascular", "insufficiency", "of", "intestine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"50\" AND DIAGNOSES.\"LONG_TITLE\" = \"Acute vascular insufficiency of intestine\"", "question_refine": "give me the number of patients whose age is less than 50 and diagnoses long title is acute vascular insufficiency of intestine?", "key": "0253fe7f06bcba29a5a6dc7342278218"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 64], [2, 2, 0, 4311]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "64", "and", "procedure", "icd9", "code", "is", "4311", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"64\"", "and", "procedures.\"icd9_code\"", "=", "\"4311\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"64\" AND PROCEDURES.\"ICD9_CODE\" = \"4311\"", "question_refine": "provide the number of patients whose age is less than 64 and procedure icd9 code is 4311?", "key": "a59ccd6f537695b771a09217857ef583"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 77], [2, 2, 0, 4632]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "77", "and", "procedure", "icd9", "code", "is", "4632", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"77\"", "and", "procedures.\"icd9_code\"", "=", "\"4632\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"77\" AND PROCEDURES.\"ICD9_CODE\" = \"4632\"", "question_refine": "give me the number of patients whose age is less than 77 and procedure icd9 code is 4632?", "key": "827f8123c25ca3f714d96faaa00d1b84"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 61], [2, 2, 0, 8619]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "61", "and", "procedure", "icd9", "code", "is", "8619", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"61\"", "and", "procedures.\"icd9_code\"", "=", "\"8619\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"61\" AND PROCEDURES.\"ICD9_CODE\" = \"8619\"", "question_refine": "how many patients whose age is less than 61 and procedure icd9 code is 8619?", "key": "0c28285998ef7cdb124d0fb46b890993"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 77], [2, 3, 0, "Percu endosc gastrostomy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "77", "and", "procedure", "short", "title", "is", "percu", "endosc", "gastrostomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"77\"", "and", "procedures.\"short_title\"", "=", "\"percu", "endosc", "gastrostomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"77\" AND PROCEDURES.\"SHORT_TITLE\" = \"Percu endosc gastrostomy\"", "question_refine": "count the number of patients whose age is less than 77 and procedure short title is percu endosc gastrostomy?", "key": "043f05af1ac261f3d6e8467b8a421629"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 70], [2, 3, 0, "Percutan liver aspirat"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "70", "and", "procedure", "short", "title", "is", "percutan", "liver", "aspirat", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"70\"", "and", "procedures.\"short_title\"", "=", "\"percutan", "liver", "aspirat\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"70\" AND PROCEDURES.\"SHORT_TITLE\" = \"Percutan liver aspirat\"", "question_refine": "count the number of patients whose age is less than 70 and procedure short title is percutan liver aspirat?", "key": "9b8c4d8881a36278282467b567588435"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 61], [2, 4, 0, "Percutaneous abdominal drainage"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "61", "and", "procedure", "long", "title", "is", "percutaneous", "abdominal", "drainage", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"61\"", "and", "procedures.\"long_title\"", "=", "\"percutaneous", "abdominal", "drainage\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"61\" AND PROCEDURES.\"LONG_TITLE\" = \"Percutaneous abdominal drainage\"", "question_refine": "what is the number of patients whose age is less than 61 and procedure long title is percutaneous abdominal drainage?", "key": "87828dccf954b593285952f9e05285b4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 45], [2, 4, 0, "Endoscopic insertion of stent (tube) into bile duct"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "45", "and", "procedure", "long", "title", "is", "endoscopic", "insertion", "of", "stent", "(", "tube", ")", "into", "bile", "duct", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"45\"", "and", "procedures.\"long_title\"", "=", "\"endoscopic", "insertion", "of", "stent", "(tube)", "into", "bile", "duct\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"45\" AND PROCEDURES.\"LONG_TITLE\" = \"Endoscopic insertion of stent (tube) into bile duct\"", "question_refine": "provide the number of patients whose age is less than 45 and procedure long title is endoscopic insertion of stent (tube) into bile duct?", "key": "085c097c30ee27375d301af1413d2f6a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 51], [3, 4, 0, "Metoprolol Tartrate"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "51", "and", "drug", "name", "is", "metoprolol", "tartrate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"51\"", "and", "prescriptions.\"drug\"", "=", "\"metoprolol", "tartrate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"51\" AND PRESCRIPTIONS.\"DRUG\" = \"Metoprolol Tartrate\"", "question_refine": "count the number of patients whose age is less than 51 and drug name is metoprolol tartrate?", "key": "804ca29d119c7ae443c69c0e0f4bee74"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 72], [3, 4, 0, "Pravastatin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "72", "and", "drug", "name", "is", "pravastatin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"72\"", "and", "prescriptions.\"drug\"", "=", "\"pravastatin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"72\" AND PRESCRIPTIONS.\"DRUG\" = \"Pravastatin\"", "question_refine": "provide the number of patients whose age is less than 72 and drug name is pravastatin?", "key": "9c05a565ee5d9c64aaf12d921d02d4c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 81], [3, 4, 0, "Critic-Aid Clear AF"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "81", "and", "drug", "name", "is", "critic", "-", "aid", "clear", "af", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"81\"", "and", "prescriptions.\"drug\"", "=", "\"critic-aid", "clear", "af\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"81\" AND PRESCRIPTIONS.\"DRUG\" = \"Critic-Aid Clear AF\"", "question_refine": "count the number of patients whose age is less than 81 and drug name is critic-aid clear af?", "key": "969b372fc589d8b0734db3c70b6eb4fc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 56], [3, 4, 0, "Voriconazole"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "56", "and", "drug", "name", "is", "voriconazole", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"56\"", "and", "prescriptions.\"drug\"", "=", "\"voriconazole\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"56\" AND PRESCRIPTIONS.\"DRUG\" = \"Voriconazole\"", "question_refine": "what is the number of patients whose age is less than 56 and drug name is voriconazole?", "key": "aa253b41030e5c298e4ceb1c7aef9028"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 59], [3, 5, 0, "TACRSUSP"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "59", "and", "drug", "code", "is", "tacrsusp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"59\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"tacrsusp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"59\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"TACRSUSP\"", "question_refine": "how many patients whose age is less than 59 and drug code is tacrsusp?", "key": "0850adcaf50adb3f7a89eb56b2f1104a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 62], [3, 5, 0, "MORP2I"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "62", "and", "drug", "code", "is", "morp2i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"62\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"morp2i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"62\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"MORP2I\"", "question_refine": "give me the number of patients whose age is less than 62 and drug code is morp2i?", "key": "84d545e92b1a3cabb755523ca1f95bd4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 43], [3, 5, 0, "HEPBASE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "43", "and", "drug", "code", "is", "hepbase", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"43\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"hepbase\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"43\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"HEPBASE\"", "question_refine": "provide the number of patients whose age is less than 43 and drug code is hepbase?", "key": "ada73b5096f28b24b79cb30cc513b751"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 43], [3, 6, 0, "DIALYS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "43", "and", "drug", "route", "is", "dialys", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"43\"", "and", "prescriptions.\"route\"", "=", "\"dialys\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"43\" AND PRESCRIPTIONS.\"ROUTE\" = \"DIALYS\"", "question_refine": "how many patients whose age is less than 43 and drug route is dialys?", "key": "9b2fd5dc21a28a480871e22effce3a33"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 31], [3, 6, 0, "SC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "31", "and", "drug", "route", "is", "sc", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"31\"", "and", "prescriptions.\"route\"", "=", "\"sc\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"31\" AND PRESCRIPTIONS.\"ROUTE\" = \"SC\"", "question_refine": "provide the number of patients whose age is less than 31 and drug route is sc?", "key": "8436a88896b36ac22a1de03c526e42a1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 83], [3, 6, 0, "DIALYS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "83", "and", "drug", "route", "is", "dialys", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"83\"", "and", "prescriptions.\"route\"", "=", "\"dialys\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"83\" AND PRESCRIPTIONS.\"ROUTE\" = \"DIALYS\"", "question_refine": "what is the number of patients whose age is less than 83 and drug route is dialys?", "key": "97a709030d581ebe37d34fa3d33e7349"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 58], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "58", "and", "drug", "route", "is", "neb", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"58\"", "and", "prescriptions.\"route\"", "=", "\"neb\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"58\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "what is the number of patients whose age is less than 58 and drug route is neb?", "key": "8a54ab08858b40c96c758520cd5309ac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 70], [3, 6, 0, "INHALATION"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "70", "and", "drug", "route", "is", "inhalation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"70\"", "and", "prescriptions.\"route\"", "=", "\"inhalation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"70\" AND PRESCRIPTIONS.\"ROUTE\" = \"INHALATION\"", "question_refine": "what is the number of patients whose age is less than 70 and drug route is inhalation?", "key": "a098490776ade92f9d0c247ccfb1eb73"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 70], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "70", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"70\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"70\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "what is the number of patients whose age is less than 70 and lab test fluid is cerebrospinal fluid (csf)?", "key": "82fe69e357204798f6fa15a9b66761ff"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 41], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "41", "and", "lab", "test", "fluid", "is", "joint", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"41\"", "and", "lab.\"fluid\"", "=", "\"joint", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"41\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "how many patients whose age is less than 41 and lab test fluid is joint fluid?", "key": "0b478e939f03f13b46bdf4e3d449a6ae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 41], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "41", "and", "lab", "test", "fluid", "is", "blood", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"41\"", "and", "lab.\"fluid\"", "=", "\"blood\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"41\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "give me the number of patients whose age is less than 41 and lab test fluid is blood?", "key": "85c64a20b4ee9ba7566059a53b6fcdb3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 43], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "43", "and", "lab", "test", "fluid", "is", "ascites", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"43\"", "and", "lab.\"fluid\"", "=", "\"ascites\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"43\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "how many patients whose age is less than 43 and lab test fluid is ascites?", "key": "93df86655ac888bcf620e06e7b7e5f80"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 43], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "43", "and", "lab", "test", "fluid", "is", "pleural", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"43\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"43\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "what is the number of patients whose age is less than 43 and lab test fluid is pleural?", "key": "a6ebd440c78317b1d6a84ca93eabf13e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 31], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "31", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"31\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"31\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "give me the number of patients whose age is less than 31 and lab test category is chemistry?", "key": "aa94e974b8ee66950b649251ba9090dc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 41], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "41", "and", "lab", "test", "category", "is", "blood", "gas", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"41\"", "and", "lab.\"category\"", "=", "\"blood", "gas\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"41\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "give me the number of patients whose age is less than 41 and lab test category is blood gas?", "key": "926a345db323823260da99f203e0010e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 61], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "61", "and", "lab", "test", "category", "is", "hematology", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"61\"", "and", "lab.\"category\"", "=", "\"hematology\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"61\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "give me the number of patients whose age is less than 61 and lab test category is hematology?", "key": "86ed722adeb715c537f8251884abffca"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 4], [1, 2, 0, "99681"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "and", "diagnoses", "icd9", "code", "is", "99681", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"4\"", "and", "diagnoses.\"icd9_code\"", "=", "\"99681\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"4\" AND DIAGNOSES.\"ICD9_CODE\" = \"99681\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 4 and diagnoses icd9 code is 99681?", "key": "9dbca995af6b0989abc114cc3d1b3fb7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 34], [1, 2, 0, "317"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "34", "and", "diagnoses", "icd9", "code", "is", "317", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"34\"", "and", "diagnoses.\"icd9_code\"", "=", "\"317\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"34\" AND DIAGNOSES.\"ICD9_CODE\" = \"317\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 34 and diagnoses icd9 code is 317?", "key": "0c8f33538cf6d53181d3b2f39f69baf8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 6], [1, 3, 0, "Orthostatic hypotension"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "diagnoses", "short", "title", "is", "orthostatic", "hypotension", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"6\"", "and", "diagnoses.\"short_title\"", "=", "\"orthostatic", "hypotension\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Orthostatic hypotension\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 6 and diagnoses short title is orthostatic hypotension?", "key": "88af406053b45485750b8981010e88e9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 30], [1, 3, 0, "Chr diastolic hrt fail"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "30", "and", "diagnoses", "short", "title", "is", "chr", "diastolic", "hrt", "fail", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"30\"", "and", "diagnoses.\"short_title\"", "=", "\"chr", "diastolic", "hrt", "fail\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"30\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Chr diastolic hrt fail\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 30 and diagnoses short title is chr diastolic hrt fail?", "key": "a7f0f51a1b7298fc9b7c2f8214ee4b19"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 5], [1, 3, 0, "Personality disorder NOS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "5", "and", "diagnoses", "short", "title", "is", "personality", "disorder", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"5\"", "and", "diagnoses.\"short_title\"", "=", "\"personality", "disorder", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"5\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Personality disorder NOS\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 5 and diagnoses short title is personality disorder nos?", "key": "0b5fc111d80c2e60438458ddb5979cf1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 3], [2, 2, 0, 5451]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "3", "and", "procedure", "icd9", "code", "is", "5451", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"3\"", "and", "procedures.\"icd9_code\"", "=", "\"5451\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"3\" AND PROCEDURES.\"ICD9_CODE\" = \"5451\"", "question_refine": "how many patients whose days of hospital stay is greater than 3 and procedure icd9 code is 5451?", "key": "0dd083c0247abcf28d92f74623eae302"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 1], [2, 2, 0, 5198]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "1", "and", "procedure", "icd9", "code", "is", "5198", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"1\"", "and", "procedures.\"icd9_code\"", "=", "\"5198\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"1\" AND PROCEDURES.\"ICD9_CODE\" = \"5198\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 1 and procedure icd9 code is 5198?", "key": "86095463f2ab22007d32c028f0efe69c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 5], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "5", "and", "drug", "type", "is", "additive", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"5\"", "and", "prescriptions.\"drug_type\"", "=", "\"additive\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"5\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "how many patients whose days of hospital stay is greater than 5 and drug type is additive?", "key": "838ee5f862ddd3c0a19da04e62ab6735"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 9], [3, 4, 0, "Ibuprofen Suspension"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "9", "and", "drug", "name", "is", "ibuprofen", "suspension", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"9\"", "and", "prescriptions.\"drug\"", "=", "\"ibuprofen", "suspension\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"9\" AND PRESCRIPTIONS.\"DRUG\" = \"Ibuprofen Suspension\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 9 and drug name is ibuprofen suspension?", "key": "b9d328373ac5aa2bb7d84ee3fa0cee44"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 43], [3, 4, 0, "Alteplase (Catheter Clearance)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "43", "and", "drug", "name", "is", "alteplase", "(", "catheter", "clearance", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"43\"", "and", "prescriptions.\"drug\"", "=", "\"alteplase", "(catheter", "clearance)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"43\" AND PRESCRIPTIONS.\"DRUG\" = \"Alteplase (Catheter Clearance)\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 43 and drug name is alteplase (catheter clearance)?", "key": "080127e8abd81701f88e49d4a966b56d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 34], [3, 4, 0, "NEO*PO*MCT Oil"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "34", "and", "drug", "name", "is", "neo*po*mct", "oil", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"34\"", "and", "prescriptions.\"drug\"", "=", "\"neo*po*mct", "oil\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"34\" AND PRESCRIPTIONS.\"DRUG\" = \"NEO*PO*MCT Oil\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 34 and drug name is neo*po*mct oil?", "key": "b9e6f14f784427e612f5e8259145fe67"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 16], [4, 2, 0, 50976]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "16", "and", "item", "i", "d", "is", "50976", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"16\"", "and", "lab.\"itemid\"", "=", "\"50976\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"16\" AND LAB.\"ITEMID\" = \"50976\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 16 and item id is 50976?", "key": "089a137d1d773bd6f945b3accb8eb318"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 14], [4, 6, 0, "Methemoglobin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "14", "and", "lab", "test", "name", "is", "methemoglobin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"14\"", "and", "lab.\"label\"", "=", "\"methemoglobin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"14\" AND LAB.\"LABEL\" = \"Methemoglobin\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 14 and lab test name is methemoglobin?", "key": "00263ad8de751999af6aa3a7cf5276ad"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 26], [4, 6, 0, "24 hr Creatinine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "and", "lab", "test", "name", "is", "24", "hr", "creatinine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"26\"", "and", "lab.\"label\"", "=", "\"24", "hr", "creatinine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"26\" AND LAB.\"LABEL\" = \"24 hr Creatinine\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 26 and lab test name is 24 hr creatinine?", "key": "03581613dae97e5ca2785224b80c6222"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 1], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "1", "and", "lab", "test", "fluid", "is", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"1\"", "and", "lab.\"fluid\"", "=", "\"urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"1\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 1 and lab test fluid is urine?", "key": "09836ee89fd684d22d1fd39b5efb7692"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 2], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "and", "lab", "test", "fluid", "is", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"2\"", "and", "lab.\"fluid\"", "=", "\"urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"2\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 2 and lab test fluid is urine?", "key": "859d3b545592e6d48f57a1a061efee5c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 2], [4, 7, 0, "Other Body Fluid"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "and", "lab", "test", "fluid", "is", "other", "body", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"2\"", "and", "lab.\"fluid\"", "=", "\"other", "body", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"2\" AND LAB.\"FLUID\" = \"Other Body Fluid\"", "question_refine": "how many patients whose days of hospital stay is greater than 2 and lab test fluid is other body fluid?", "key": "85aa76ce561a87a6edc0d482804be238"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 5], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "5", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"5\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"5\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 5 and lab test category is chemistry?", "key": "0733b1bb3d1aa461500203a4d62a5b57"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 18, 2, 2024], [1, 3, 0, "Chronic liver dis NEC"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2024", "and", "diagnoses", "short", "title", "is", "chronic", "liver", "dis", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2024\"", "and", "diagnoses.\"short_title\"", "=", "\"chronic", "liver", "dis", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2024\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Chronic liver dis NEC\"", "question_refine": "give me the number of patients whose year of birth is less than 2024 and diagnoses short title is chronic liver dis nec?", "key": "0396aa6c389fbd125085ebc36a4135c6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2065], [2, 2, 0, 46]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2065", "and", "procedure", "icd9", "code", "is", "46", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2065\"", "and", "procedures.\"icd9_code\"", "=", "\"46\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2065\" AND PROCEDURES.\"ICD9_CODE\" = \"46\"", "question_refine": "give me the number of patients whose year of birth is less than 2065 and procedure icd9 code is 46?", "key": "0ea47d14ad9c8eb5f88da2a93f2a6b8d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2065], [2, 2, 0, 9604]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2065", "and", "procedure", "icd9", "code", "is", "9604", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2065\"", "and", "procedures.\"icd9_code\"", "=", "\"9604\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2065\" AND PROCEDURES.\"ICD9_CODE\" = \"9604\"", "question_refine": "give me the number of patients whose year of birth is less than 2065 and procedure icd9 code is 9604?", "key": "03a4061b29e9397f573c8fc2412dcf06"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2121], [2, 4, 0, "Biopsy of tonsils and adenoids"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2121", "and", "procedure", "long", "title", "is", "biopsy", "of", "tonsils", "and", "adenoids", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2121\"", "and", "procedures.\"long_title\"", "=", "\"biopsy", "of", "tonsils", "and", "adenoids\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2121\" AND PROCEDURES.\"LONG_TITLE\" = \"Biopsy of tonsils and adenoids\"", "question_refine": "count the number of patients whose year of birth is less than 2121 and procedure long title is biopsy of tonsils and adenoids?", "key": "04fec7017bec275d4bc47df53bb90b78"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2065], [2, 4, 0, "Prophylactic administration of vaccine against other diseases"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2065", "and", "procedure", "long", "title", "is", "prophylactic", "administration", "of", "vaccine", "against", "other", "diseases", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2065\"", "and", "procedures.\"long_title\"", "=", "\"prophylactic", "administration", "of", "vaccine", "against", "other", "diseases\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2065\" AND PROCEDURES.\"LONG_TITLE\" = \"Prophylactic administration of vaccine against other diseases\"", "question_refine": "give me the number of patients whose year of birth is less than 2065 and procedure long title is prophylactic administration of vaccine against other diseases?", "key": "819886e34e7e0c9516caa63edcf8fa0d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2109], [2, 4, 0, "Coronary arteriography using two catheters"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2109", "and", "procedure", "long", "title", "is", "coronary", "arteriography", "using", "two", "catheters", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2109\"", "and", "procedures.\"long_title\"", "=", "\"coronary", "arteriography", "using", "two", "catheters\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2109\" AND PROCEDURES.\"LONG_TITLE\" = \"Coronary arteriography using two catheters\"", "question_refine": "provide the number of patients whose year of birth is less than 2109 and procedure long title is coronary arteriography using two catheters?", "key": "80778e877d3c5ed5efa2155fccdcc2ec"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2104], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2104", "and", "drug", "type", "is", "additive", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2104\"", "and", "prescriptions.\"drug_type\"", "=", "\"additive\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2104\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "what is the number of patients whose year of birth is less than 2104 and drug type is additive?", "key": "821b43f632853ed712026a1d2d0d8313"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2104], [3, 4, 0, "Vancomycin"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2104", "and", "drug", "name", "is", "vancomycin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2104\"", "and", "prescriptions.\"drug\"", "=", "\"vancomycin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2104\" AND PRESCRIPTIONS.\"DRUG\" = \"Vancomycin\"", "question_refine": "count the number of patients whose year of birth is less than 2104 and drug name is vancomycin?", "key": "94d03397b2b5cc027c508ab22c8e216e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2109], [3, 4, 0, "NORepinephrine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2109", "and", "drug", "name", "is", "norepinephrine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2109\"", "and", "prescriptions.\"drug\"", "=", "\"norepinephrine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2109\" AND PRESCRIPTIONS.\"DRUG\" = \"NORepinephrine\"", "question_refine": "how many patients whose year of birth is less than 2109 and drug name is norepinephrine?", "key": "0ef4e32954ca70a4dbc73fedfa9a6ba8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2053], [3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2053", "and", "drug", "route", "is", "ivpca", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2053\"", "and", "prescriptions.\"route\"", "=", "\"ivpca\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2053\" AND PRESCRIPTIONS.\"ROUTE\" = \"IVPCA\"", "question_refine": "give me the number of patients whose year of birth is less than 2053 and drug route is ivpca?", "key": "01978ff062145f6b9b95e252b3bab2b0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2071], [4, 2, 0, 50953]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2071", "and", "item", "i", "d", "is", "50953", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2071\"", "and", "lab.\"itemid\"", "=", "\"50953\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2071\" AND LAB.\"ITEMID\" = \"50953\"", "question_refine": "give me the number of patients whose year of birth is less than 2071 and item id is 50953?", "key": "070960a090aa476250fdbf3a9ddc3350"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2170], [4, 6, 0, "Other Cells"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2170", "and", "lab", "test", "name", "is", "other", "cells", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2170\"", "and", "lab.\"label\"", "=", "\"other", "cells\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2170\" AND LAB.\"LABEL\" = \"Other Cells\"", "question_refine": "what is the number of patients whose year of birth is less than 2170 and lab test name is other cells?", "key": "81b4faef3515b239d74fcabdef8c1a42"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 1821], [4, 6, 0, "Lactate Dehydrogenase, CSF"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "1821", "and", "lab", "test", "name", "is", "lactate", "dehydrogenase", ",", "csf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"1821\"", "and", "lab.\"label\"", "=", "\"lactate", "dehydrogenase", "csf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"1821\" AND LAB.\"LABEL\" = \"Lactate Dehydrogenase, CSF\"", "question_refine": "provide the number of patients whose year of birth is less than 1821 and lab test name is lactate dehydrogenase, csf?", "key": "ad68c7f37e76a07bb9df8bbd457cb210"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2089], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2089", "and", "lab", "test", "fluid", "is", "pleural", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2089\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2089\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "how many patients whose year of birth is less than 2089 and lab test fluid is pleural?", "key": "ace7d9f8651d4d512565d6be3b6a9a6c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2120], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2120", "and", "lab", "test", "fluid", "is", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2120\"", "and", "lab.\"fluid\"", "=", "\"urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2120\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "count the number of patients whose year of birth is less than 2120 and lab test fluid is urine?", "key": "a8ed9d698cc466a86e52507edcf4e5df"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2115.0], [2, 4, 0, "Other endoscopy of small intestine"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2115", "and", "procedure", "long", "title", "is", "other", "endoscopy", "of", "small", "intestine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2115.0\"", "and", "procedures.\"long_title\"", "=", "\"other", "endoscopy", "of", "small", "intestine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2115.0\" AND PROCEDURES.\"LONG_TITLE\" = \"Other endoscopy of small intestine\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2115 and procedure long title is other endoscopy of small intestine?", "key": "893e04ea869a527c2f9efc37d8ac617d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2122.0], [3, 5, 0, "BETH5"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2122", "and", "drug", "code", "is", "beth5", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2122.0\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"beth5\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2122.0\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"BETH5\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2122 and drug code is beth5?", "key": "b9b1e272af0cd9a909d5b78a51ebf792"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2131.0], [4, 6, 0, "White Blood Cells"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2131", "and", "lab", "test", "name", "is", "white", "blood", "cells", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2131.0\"", "and", "lab.\"label\"", "=", "\"white", "blood", "cells\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2131.0\" AND LAB.\"LABEL\" = \"White Blood Cells\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2131 and lab test name is white blood cells?", "key": "a73e048daa3b63ac4a41d7c267a48d31"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2157], [1, 2, 0, "78039"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2157", "and", "diagnoses", "icd9", "code", "is", "78039", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2157\"", "and", "diagnoses.\"icd9_code\"", "=", "\"78039\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2157\" AND DIAGNOSES.\"ICD9_CODE\" = \"78039\"", "question_refine": "give me the number of patients whose admission year is less than 2157 and diagnoses icd9 code is 78039?", "key": "935442d35e0d989f39b12cfeb80688d2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2112], [1, 2, 0, "56212"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2112", "and", "diagnoses", "icd9", "code", "is", "56212", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2112\"", "and", "diagnoses.\"icd9_code\"", "=", "\"56212\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2112\" AND DIAGNOSES.\"ICD9_CODE\" = \"56212\"", "question_refine": "count the number of patients whose admission year is less than 2112 and diagnoses icd9 code is 56212?", "key": "acffd8d07f8a0ebff45d316bdad79292"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2200], [1, 2, 0, "E8791"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2200", "and", "diagnoses", "icd9", "code", "is", "e8791", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2200\"", "and", "diagnoses.\"icd9_code\"", "=", "\"e8791\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2200\" AND DIAGNOSES.\"ICD9_CODE\" = \"E8791\"", "question_refine": "provide the number of patients whose admission year is less than 2200 and diagnoses icd9 code is e8791?", "key": "8793d7722bc0a33c0337714fb51f5a3b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2173], [1, 3, 0, "Ac salpingo-oophoritis"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2173", "and", "diagnoses", "short", "title", "is", "ac", "salpingo", "-", "oophoritis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2173\"", "and", "diagnoses.\"short_title\"", "=", "\"ac", "salpingo-oophoritis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2173\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Ac salpingo-oophoritis\"", "question_refine": "provide the number of patients whose admission year is less than 2173 and diagnoses short title is ac salpingo-oophoritis?", "key": "0bc9f228d063f921a03fbc029e61db03"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2112], [1, 3, 0, "Chest pain NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2112", "and", "diagnoses", "short", "title", "is", "chest", "pain", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2112\"", "and", "diagnoses.\"short_title\"", "=", "\"chest", "pain", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2112\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Chest pain NEC\"", "question_refine": "provide the number of patients whose admission year is less than 2112 and diagnoses short title is chest pain nec?", "key": "8412f1e49973d10caff572e2e132ff72"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2154], [1, 3, 0, "Full incontinence-feces"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2154", "and", "diagnoses", "short", "title", "is", "full", "incontinence", "-", "feces", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2154\"", "and", "diagnoses.\"short_title\"", "=", "\"full", "incontinence-feces\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2154\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Full incontinence-feces\"", "question_refine": "give me the number of patients whose admission year is less than 2154 and diagnoses short title is full incontinence-feces?", "key": "877f04eb9833f04f2862fc716b001395"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2145], [1, 3, 0, "Syncope and collapse"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2145", "and", "diagnoses", "short", "title", "is", "syncope", "and", "collapse", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2145\"", "and", "diagnoses.\"short_title\"", "=", "\"syncope", "and", "collapse\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2145\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Syncope and collapse\"", "question_refine": "count the number of patients whose admission year is less than 2145 and diagnoses short title is syncope and collapse?", "key": "9fa8ef22b161a69988711ef9cb37abc9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2138], [1, 4, 0, "Unspecified schizophrenia, unspecified"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2138", "and", "diagnoses", "long", "title", "is", "unspecified", "schizophrenia", ",", "unspecified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2138\"", "and", "diagnoses.\"long_title\"", "=", "\"unspecified", "schizophrenia", "unspecified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2138\" AND DIAGNOSES.\"LONG_TITLE\" = \"Unspecified schizophrenia, unspecified\"", "question_refine": "count the number of patients whose admission year is less than 2138 and diagnoses long title is unspecified schizophrenia, unspecified?", "key": "8214f3889146d612348c9eb4d86ce408"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2112], [1, 4, 0, "Retained plastic fragments"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2112", "and", "diagnoses", "long", "title", "is", "retained", "plastic", "fragments", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2112\"", "and", "diagnoses.\"long_title\"", "=", "\"retained", "plastic", "fragments\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2112\" AND DIAGNOSES.\"LONG_TITLE\" = \"Retained plastic fragments\"", "question_refine": "give me the number of patients whose admission year is less than 2112 and diagnoses long title is retained plastic fragments?", "key": "86e5e1517891514bdb1d0018f85f9a34"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2137], [2, 2, 0, 3972]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2137", "and", "procedure", "icd9", "code", "is", "3972", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2137\"", "and", "procedures.\"icd9_code\"", "=", "\"3972\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2137\" AND PROCEDURES.\"ICD9_CODE\" = \"3972\"", "question_refine": "provide the number of patients whose admission year is less than 2137 and procedure icd9 code is 3972?", "key": "00c91f40bec29a121a7c95c4a3a4fa87"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2103], [2, 2, 0, 93]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2103", "and", "procedure", "icd9", "code", "is", "93", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2103\"", "and", "procedures.\"icd9_code\"", "=", "\"93\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2103\" AND PROCEDURES.\"ICD9_CODE\" = \"93\"", "question_refine": "provide the number of patients whose admission year is less than 2103 and procedure icd9 code is 93?", "key": "8385c7828a91dfb287c01c8c00c801d6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2166], [2, 2, 0, 5011]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2166", "and", "procedure", "icd9", "code", "is", "5011", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2166\"", "and", "procedures.\"icd9_code\"", "=", "\"5011\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2166\" AND PROCEDURES.\"ICD9_CODE\" = \"5011\"", "question_refine": "count the number of patients whose admission year is less than 2166 and procedure icd9 code is 5011?", "key": "8905a4c9ce097875ed1f8db4c3ff14bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2167], [2, 3, 0, "Adm inhal nitric oxide"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2167", "and", "procedure", "short", "title", "is", "adm", "inhal", "nitric", "oxide", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2167\"", "and", "procedures.\"short_title\"", "=", "\"adm", "inhal", "nitric", "oxide\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2167\" AND PROCEDURES.\"SHORT_TITLE\" = \"Adm inhal nitric oxide\"", "question_refine": "give me the number of patients whose admission year is less than 2167 and procedure short title is adm inhal nitric oxide?", "key": "87689c7809bf255181fa07418161d05b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2154], [3, 6, 0, "DIALYS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2154", "and", "drug", "route", "is", "dialys", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2154\"", "and", "prescriptions.\"route\"", "=", "\"dialys\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2154\" AND PRESCRIPTIONS.\"ROUTE\" = \"DIALYS\"", "question_refine": "provide the number of patients whose admission year is less than 2154 and drug route is dialys?", "key": "9573ec5367c02c9833ccab2080693edf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2167], [3, 6, 0, "TP"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2167", "and", "drug", "route", "is", "tp", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2167\"", "and", "prescriptions.\"route\"", "=", "\"tp\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2167\" AND PRESCRIPTIONS.\"ROUTE\" = \"TP\"", "question_refine": "give me the number of patients whose admission year is less than 2167 and drug route is tp?", "key": "81b5be8c3f3f6d80a55a59f385e43659"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2156], [4, 2, 0, 51383]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2156", "and", "item", "i", "d", "is", "51383", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2156\"", "and", "lab.\"itemid\"", "=", "\"51383\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2156\" AND LAB.\"ITEMID\" = \"51383\"", "question_refine": "provide the number of patients whose admission year is less than 2156 and item id is 51383?", "key": "a8f454b305ca58863f8acb1e275043cd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2120], [4, 2, 0, 51044]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2120", "and", "item", "i", "d", "is", "51044", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2120\"", "and", "lab.\"itemid\"", "=", "\"51044\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2120\" AND LAB.\"ITEMID\" = \"51044\"", "question_refine": "what is the number of patients whose admission year is less than 2120 and item id is 51044?", "key": "a931fe64ae8d250a39e2aab3a9ca6d35"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2129], [4, 6, 0, "RBC, Pleural"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2129", "and", "lab", "test", "name", "is", "rbc", ",", "pleural", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2129\"", "and", "lab.\"label\"", "=", "\"rbc", "pleural\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2129\" AND LAB.\"LABEL\" = \"RBC, Pleural\"", "question_refine": "count the number of patients whose admission year is less than 2129 and lab test name is rbc, pleural?", "key": "8e4ac03622a29fc33cb3db508067755b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2158], [4, 6, 0, "Thyroxine (T4)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2158", "and", "lab", "test", "name", "is", "thyroxine", "(", "t4", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2158\"", "and", "lab.\"label\"", "=", "\"thyroxine", "(t4)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2158\" AND LAB.\"LABEL\" = \"Thyroxine (T4)\"", "question_refine": "how many patients whose admission year is less than 2158 and lab test name is thyroxine (t4)?", "key": "0782eff13b2a6fe1c1f0fb94270bb9c4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2123], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2123", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2123\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2123\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "count the number of patients whose admission year is less than 2123 and lab test category is chemistry?", "key": "0210d3905a34c79042a4d7e986f358a5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2124], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2124", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2124\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2124\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "provide the number of patients whose admission year is less than 2124 and lab test category is chemistry?", "key": "836465719f3fb798cb45b66ac582843f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "4464"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "4464", "and", "drug", "type", "is", "base", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"4464\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"4464\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 4464 and drug type is base?", "key": "a4bede9ac4d227fba14b6e58ffee4fe8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "53190"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "53190", "and", "lab", "test", "abnormal", "status", "is", "delta", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"53190\"", "and", "lab.\"flag\"", "=", "\"delta\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"53190\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 53190 and lab test abnormal status is delta?", "key": "8e6282194cccfa0e8fc65e02a9e1a47f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "76528"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "76528", "and", "lab", "test", "category", "is", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"icd9_code\"", "=", "\"76528\"", "and", "lab.\"category\"", "=", "\"chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"ICD9_CODE\" = \"76528\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 76528 and lab test category is chemistry?", "key": "879e430064f5011919b19ba70a193bc9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Polycythemia vera"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "polycythemia", "vera", "and", "drug", "type", "is", "main", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"polycythemia", "vera\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Polycythemia vera\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "provide the number of patients whose diagnoses short title is polycythemia vera and drug type is main?", "key": "0889b8c37decb7cd8458fd44dc8b8bb5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Adv eff antineoplastic"], [3, 6, 0, "PR"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "adv", "eff", "antineoplastic", "and", "drug", "route", "is", "pr", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"adv", "eff", "antineoplastic\"", "and", "prescriptions.\"route\"", "=", "\"pr\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Adv eff antineoplastic\" AND PRESCRIPTIONS.\"ROUTE\" = \"PR\"", "question_refine": "give me the number of patients whose diagnoses short title is adv eff antineoplastic and drug route is pr?", "key": "a9d3922a87c08a9303cca4b529bb1bdc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "History of tobacco use"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "history", "of", "tobacco", "use", "and", "lab", "test", "category", "is", "blood", "gas", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"history", "of", "tobacco", "use\"", "and", "lab.\"category\"", "=", "\"blood", "gas\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"History of tobacco use\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "give me the number of patients whose diagnoses short title is history of tobacco use and lab test category is blood gas?", "key": "823634609ee30ffe023353e3f58c68ad"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Other and unspecified coagulation defects"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "other", "and", "unspecified", "coagulation", "defects", "and", "drug", "type", "is", "additive", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"other", "and", "unspecified", "coagulation", "defects\"", "and", "prescriptions.\"drug_type\"", "=", "\"additive\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Other and unspecified coagulation defects\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "what is the number of patients whose diagnoses long title is other and unspecified coagulation defects and drug type is additive?", "key": "0cf005065d0b57f881548f2a461ceaa9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Opioid type dependence, unspecified"], [3, 6, 0, "TD"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "opioid", "type", "dependence", ",", "unspecified", "and", "drug", "route", "is", "td", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"opioid", "type", "dependence", "unspecified\"", "and", "prescriptions.\"route\"", "=", "\"td\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Opioid type dependence, unspecified\" AND PRESCRIPTIONS.\"ROUTE\" = \"TD\"", "question_refine": "provide the number of patients whose diagnoses long title is opioid type dependence, unspecified and drug route is td?", "key": "ade3038af3cee4bf7d6dad698f9a4b7b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 4576], [3, 6, 0, "IV BOLUS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "4576", "and", "drug", "route", "is", "iv", "bolus", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"4576\"", "and", "prescriptions.\"route\"", "=", "\"iv", "bolus\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"4576\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV BOLUS\"", "question_refine": "provide the number of patients whose procedure icd9 code is 4576 and drug route is iv bolus?", "key": "0c2ef79ee5525ce0ca1b3136fba43436"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51255], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51255", "and", "lab", "test", "abnormal", "status", "is", "abnormal", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51255\"", "and", "lab.\"flag\"", "=", "\"abnormal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51255\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "what is the number of patients whose item id is 51255 and lab test abnormal status is abnormal?", "key": "95c9f21405c27dccc93ef6c419bf3626"}
{"format": {"agg_col": [[0, 8]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is religion of subject id 2560?", "key": "8f55194c343ff824217a7b21628ce8df"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type of subject id 2560?", "key": "90ee181da18bcfa8845875faca250b0b"}
{"format": {"agg_col": [[0, 12]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is ethnicity of subject id 2560?", "key": "a4df1c06ae50974eb35454fea26ee559"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission location of subject id 2560?", "key": "9ac0e0d4bfb323232d30e9ed3deaec6f"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission time of subject id 2560?", "key": "96386b9da21f0970e7a61190fe3ea6e1"}
{"format": {"agg_col": [[3, 2]], "table": [3], "cond": [[3, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is icu stay id of subject id 2560?", "key": "0300bf805faa92cd8547894672e7dc4f"}
{"format": {"agg_col": [[4, 4]], "table": [4], "cond": [[4, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "lab.\"flag\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT LAB.\"FLAG\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is lab test abnormal status of subject id 2560?", "key": "8e4f2450d232947ef620cb4b261579f2"}
{"format": {"agg_col": [[4, 6]], "table": [4], "cond": [[4, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "name", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "lab.\"label\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT LAB.\"LABEL\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is lab test name of subject id 2560?", "key": "85b8122d33f83e2e347667f686b01923"}
{"format": {"agg_col": [[0, 2], [0, 4]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "age", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"name\"", "demographic.\"age\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",DEMOGRAPHIC.\"AGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is subject name and age of subject id 2560?", "key": "0aa9447c3469cd02b865dfa7719d49fc"}
{"format": {"agg_col": [[0, 2], [0, 6]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "gender", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"name\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is subject name and gender of subject id 2560?", "key": "8f18423f8d3275ea02e399fc8ac60b11"}
{"format": {"agg_col": [[0, 2], [0, 20]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "admission", "time", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"name\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is subject name and admission time of subject id 2560?", "key": "9c392d2c88c6189f9251d0bd435033a9"}
{"format": {"agg_col": [[0, 4], [0, 12]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "ethnicity", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is age and ethnicity of subject id 2560?", "key": "0e56b87b438922c7950eeb5d9058c983"}
{"format": {"agg_col": [[0, 4], [0, 14]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "admission", "location", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is age and admission location of subject id 2560?", "key": "90edf3709e8df1784f2d3fda1a16252c"}
{"format": {"agg_col": [[0, 4], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"age\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is age and diagnoses icd9 code of subject id 2560?", "key": "019e8cc13b5a6753a90808feb7e87e1b"}
{"format": {"agg_col": [[0, 4], [3, 4]], "table": [0, 3], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "drug", "name", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"age\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is age and drug name of subject id 2560?", "key": "a72b27d87f1604c13e39e7d4e5b4ff46"}
{"format": {"agg_col": [[0, 5], [0, 6]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "gender", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is date of birth and gender of subject id 2560?", "key": "841e216a58a14d3c9464750a1b9b112a"}
{"format": {"agg_col": [[0, 6], [0, 10]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and days of hospital stay of subject id 2560?", "key": "013f6c92a36d259b5c0c379312966415"}
{"format": {"agg_col": [[0, 6], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and diagnoses icd9 code of subject id 2560?", "key": "0865071639569180742a822ef4d6ec79"}
{"format": {"agg_col": [[0, 6], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and diagnoses short title of subject id 2560?", "key": "01e495e69e3444418dd0a16b3dbc3827"}
{"format": {"agg_col": [[0, 6], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and procedure icd9 code of subject id 2560?", "key": "0df0d1bfc8c469daedeb651e5ca26919"}
{"format": {"agg_col": [[0, 6], [4, 2]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "item", "i", "d", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "lab.\"itemid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",LAB.\"ITEMID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and item id of subject id 2560?", "key": "9c1c99acd4928c03d0fe9b39e929e3d2"}
{"format": {"agg_col": [[0, 6], [4, 4]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "lab.\"flag\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",LAB.\"FLAG\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and lab test abnormal status of subject id 2560?", "key": "90ea3f943491a9110aa016d6d613cba8"}
{"format": {"agg_col": [[0, 6], [4, 6]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "lab", "test", "name", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"gender\"", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is gender and lab test name of subject id 2560?", "key": "8b3b7d60621a3316c1c33500b8f4243d"}
{"format": {"agg_col": [[0, 9], [0, 13]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "death", "status", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and death status of subject id 2560?", "key": "aa022b1cc5c7397eb610009350ab2fe2"}
{"format": {"agg_col": [[0, 9], [0, 16]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "primary", "disease", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and primary disease of subject id 2560?", "key": "8769210e7e36fb15bd7f3441ac74704f"}
{"format": {"agg_col": [[0, 9], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and procedure icd9 code of subject id 2560?", "key": "9da49c29363fd75f4415f0a45bc818e7"}
{"format": {"agg_col": [[0, 9], [4, 6]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "lab", "test", "name", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and lab test name of subject id 2560?", "key": "89a92f1bd2e74cecb90195b6d5cd860f"}
{"format": {"agg_col": [[0, 10], [0, 16]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "primary", "disease", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is days of hospital stay and primary disease of subject id 2560?", "key": "0f8f5ea7b7f14f7015f7442d242c547d"}
{"format": {"agg_col": [[0, 10], [0, 17]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "date", "of", "death", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is days of hospital stay and date of death of subject id 2560?", "key": "0c6330427069e970ee4be464f3c99c48"}
{"format": {"agg_col": [[0, 2]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"name\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is subject name of subject id 6983?", "key": "0002b22d84bc01ecf68cc95c5b6a28d8"}
{"format": {"agg_col": [[0, 6]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is gender of subject id 6983?", "key": "86eddf5b63dee431e8e258e630341a7d"}
{"format": {"agg_col": [[0, 8]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is religion of subject id 6983?", "key": "896df25f5b715ec49f1df5714593388a"}
{"format": {"agg_col": [[0, 17]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "death", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is date of death of subject id 6983?", "key": "8e6fc76db9d8db496cef372a27ead890"}
{"format": {"agg_col": [[0, 21]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is discharge time of subject id 6983?", "key": "a668f0e1f166ac29ff6af5bb677710a8"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is drug route of subject id 6983?", "key": "83657431596bda1d0854362f6a0df459"}
{"format": {"agg_col": [[4, 6]], "table": [4], "cond": [[4, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "name", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "lab.\"label\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT LAB.\"LABEL\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is lab test name of subject id 6983?", "key": "9af42f48310450fb7dec8a50ffe328fa"}
{"format": {"agg_col": [[4, 8]], "table": [4], "cond": [[4, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "category", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "lab.\"category\"", "from", "lab", "where", "lab.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT LAB.\"CATEGORY\" FROM LAB WHERE LAB.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is lab test category of subject id 6983?", "key": "90b82b03ca23ee905266d83b2d929e5b"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is primary disease of subject id 3343?", "key": "a9e960146f15dc78dfdf7778cf79c3ba"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is diagnoses long title of subject id 3343?", "key": "81e957f6baa421e0530996027bcba9e4"}
{"format": {"agg_col": [[2, 2]], "table": [2], "cond": [[2, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is procedure icd9 code of subject id 3343?", "key": "a6ac3a97bbdef6c2de3b7385495aa9c6"}
{"format": {"agg_col": [[3, 2]], "table": [3], "cond": [[3, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is icu stay id of subject id 3343?", "key": "a06103d0b80174c90f4ffe82cacf6544"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is drug type of subject id 3343?", "key": "bad2d6abfdc046ad49e7febca5a1d4ab"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is drug code of subject id 3343?", "key": "0b4a379f793511d3b55083853b9eb1d7"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is admission type of subject name jerry deberry?", "key": "bb33d9ea342c4d53171831ac967d5204"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is days of hospital stay of subject name jerry deberry?", "key": "8b566538fbaf86ce837bf39a65f2a86e"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is insurance of subject name jerry deberry?", "key": "09a0bef7bbe0368bdd3ecdcf037d3927"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is primary disease of subject name jerry deberry?", "key": "885fc05dd9e2816d96606e43d38a8e31"}
{"format": {"agg_col": [[1, 2]], "table": [0, 1], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "icd9", "code", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is diagnoses icd9 code of subject name jerry deberry?", "key": "0c4acbfcf0acf32880529f8b2adcc64d"}
{"format": {"agg_col": [[2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is procedure short title of subject name jerry deberry?", "key": "92135f23237f33782c87fc215ea43e54"}
{"format": {"agg_col": [[4, 8]], "table": [0, 4], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "category", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "lab.\"category\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT LAB.\"CATEGORY\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is lab test category of subject name jerry deberry?", "key": "964051ea9739d5463dc623efb7016c1e"}
{"format": {"agg_col": [[0, 4], [0, 6]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "gender", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is age and gender of subject name jerry deberry?", "key": "899be5c31a9c59c33a7a448c4c224976"}
{"format": {"agg_col": [[0, 5], [0, 10]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "days", "of", "hospital", "stay", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and days of hospital stay of subject name jerry deberry?", "key": "0a77605bec326cf6c78fbd27644ee60d"}
{"format": {"agg_col": [[0, 5], [0, 12]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "ethnicity", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and ethnicity of subject name jerry deberry?", "key": "0159c2d55484e5e69db037e3092ea43d"}
{"format": {"agg_col": [[0, 5], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "primary", "disease", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and primary disease of subject name jerry deberry?", "key": "9de792fe2a88120b9c4b104e3ef20a27"}
{"format": {"agg_col": [[0, 5], [1, 2]], "table": [0, 1], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "diagnoses", "icd9", "code", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and diagnoses icd9 code of subject name jerry deberry?", "key": "0817c025e046b7be84ef289caead5837"}
{"format": {"agg_col": [[0, 5], [2, 4]], "table": [0, 2], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "procedure", "long", "title", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and procedure long title of subject name jerry deberry?", "key": "0e597171d8f49a56ee59fb5598fd6322"}
{"format": {"agg_col": [[0, 6]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is gender of subject name stephanie suchan?", "key": "06f15c6be771186668997528e52270cb"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is days of hospital stay of subject name stephanie suchan?", "key": "8620eaa43239b46cc9bde99b6286773a"}
{"format": {"agg_col": [[0, 12]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is ethnicity of subject name stephanie suchan?", "key": "9f46ec724f05eabbc56834aac5d8c551"}
{"format": {"agg_col": [[0, 21]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is discharge time of subject name stephanie suchan?", "key": "ac5ff199a31192f91afcf9220dbdb50b"}
{"format": {"agg_col": [[1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is diagnoses short title of subject name stephanie suchan?", "key": "a46d3d925c662de7a83922c62ca97e98"}
{"format": {"agg_col": [[2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is procedure short title of subject name stephanie suchan?", "key": "100bb3105ffdcb4cfd369197eb54f0f3"}
{"format": {"agg_col": [[3, 2]], "table": [0, 3], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is icu stay id of subject name stephanie suchan?", "key": "9d5d968951e3f72781e48eabfa97ce79"}
{"format": {"agg_col": [[3, 3]], "table": [0, 3], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is drug type of subject name stephanie suchan?", "key": "aa270f02ccb751ae8d962d0ebb685aa1"}
{"format": {"agg_col": [[3, 4]], "table": [0, 3], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is drug name of subject name stephanie suchan?", "key": "891ff71c0291fb8c625b26a05cf602d9"}
{"format": {"agg_col": [[4, 6]], "table": [0, 4], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "name", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is lab test name of subject name stephanie suchan?", "key": "01e59ed775997881d7cc02d7305220f7"}
{"format": {"agg_col": [[4, 8]], "table": [0, 4], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "category", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "lab.\"category\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT LAB.\"CATEGORY\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is lab test category of subject name stephanie suchan?", "key": "9052ed7f485f07e69a4872d7bf18bb45"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is language of subject name paul edwards?", "key": "10822f7eec6c3aa7af2078923e5b8148"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is insurance of subject name paul edwards?", "key": "a6b824de0e783a5f6eded81625061bbe"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is primary disease of subject name paul edwards?", "key": "a7285ffa3213ab37d2c756b87b37babf"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is admission time of subject name paul edwards?", "key": "0055629048450c85a45c53fcb015c8bf"}
{"format": {"agg_col": [[3, 2]], "table": [0, 3], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is icu stay id of subject name paul edwards?", "key": "9de102f878a21d71b64badbf34ba36af"}
{"format": {"agg_col": [[4, 7]], "table": [0, 4], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "fluid", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "lab.\"fluid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT LAB.\"FLUID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is lab test fluid of subject name paul edwards?", "key": "83412574faf1462aa5aee780eaa94ca6"}
{"format": {"agg_col": [[0, 5]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is date of birth of subject name kelly gallardo?", "key": "9115b8182d191e8ccf47ad6e721c9742"}
{"format": {"agg_col": [[0, 8]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is religion of subject name kelly gallardo?", "key": "9377ea7a9532e2f0a0509c75c086c8be"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is admission location of subject name kelly gallardo?", "key": "8f0dceb4e87c48e94403f2207c5c1f90"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is primary disease of subject name kelly gallardo?", "key": "0d78e61ca912d643a9233b60b95f4b40"}
{"format": {"agg_col": [[3, 6]], "table": [0, 3], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is drug route of subject name kelly gallardo?", "key": "931ca6adf9891c566fe6a75fce0ddeb3"}
{"format": {"agg_col": [[4, 2]], "table": [0, 4], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "item", "i", "d", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "lab.\"itemid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT LAB.\"ITEMID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is item id of subject name kelly gallardo?", "key": "0a1afd3f6a8a58a11490424176d9f026"}
{"format": {"agg_col": [[4, 7]], "table": [0, 4], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "lab", "test", "fluid", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "lab.\"fluid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT LAB.\"FLUID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is lab test fluid of subject name kelly gallardo?", "key": "8ad4b7b39df3ac2ccb2e85d1956e8ad3"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 6, 0, "F"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "gender", "is", "f", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\"", "question_refine": "what is maximum days of hospital stay of patients whose gender is f?", "key": "9382a7fab8590394cd3d4db8b932aace"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 6, 0, "M"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "gender", "is", "m", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\"", "question_refine": "what is maximum days of hospital stay of patients whose gender is m?", "key": "07431ff7a6c6bd3c08e6a26a84e600b3"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 9, 0, "URGENT"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "admission", "type", "is", "urgent", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\"", "question_refine": "what is minimum days of hospital stay of patients whose admission type is urgent?", "key": "8a2f27186a6f9174f5f9346999f666f2"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "admission", "type", "is", "newborn", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\"", "question_refine": "what is minimum days of hospital stay of patients whose admission type is newborn?", "key": "05bac85c2939f9bbec8d57102c7b6156"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 11, 0, "Private"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "insurance", "is", "private", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\"", "question_refine": "what is maximum days of hospital stay of patients whose insurance is private?", "key": "0264eb2e7e0075c9cfef5cec114f92df"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 12, 0, "BLACK/HAITIAN"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\"", "question_refine": "what is minimum days of hospital stay of patients whose ethnicity is black/haitian?", "key": "a862cb556c8a303b9fd05ffbc3866738"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 12, 0, "ASIAN"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "ethnicity", "is", "asian", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\"", "question_refine": "what is average days of hospital stay of patients whose ethnicity is asian?", "key": "0e366fd23450de6fce0205772c03c7d8"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 12, 0, "HISPANIC OR LATINO"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\"", "question_refine": "what is average days of hospital stay of patients whose ethnicity is hispanic or latino?", "key": "026b31c845468f221e7fa3ce74c7ca5f"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\"", "question_refine": "what is maximum days of hospital stay of patients whose admission location is clinic referral/premature?", "key": "07dd887d78325747ddf8d7f6a4cc952b"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\"", "question_refine": "what is minimum days of hospital stay of patients whose primary disease is brain mass;intracranial hemorrhage?", "key": "a6cecf07aa5066f7bc97d4afef5e4767"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "VENTRICULAR TACHYCARDIA"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "ventricular", "tachycardia", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ventricular", "tachycardia\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"VENTRICULAR TACHYCARDIA\"", "question_refine": "what is minimum days of hospital stay of patients whose primary disease is ventricular tachycardia?", "key": "099986280545b8297552cdfa2b1f8f88"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "S/P HANGING"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "s", "/", "p", "hanging", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"s/p", "hanging\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"S/P HANGING\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is s/p hanging?", "key": "0e6e157150b6804faa15e113bdd34edd"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "S/P FALL"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "s", "/", "p", "fall", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"s/p", "fall\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"S/P FALL\"", "question_refine": "what is average days of hospital stay of patients whose primary disease is s/p fall?", "key": "0505b2e7a406ecc63693aa9f33c0af26"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\\CARDIAC CATH"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "hypertension;rule", "out", "coronary", "artery", "disease\\cardiac", "cath", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"hypertension;rule", "out", "coronary", "artery", "disease\\cardiac", "cath\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\\CARDIAC CATH\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is hypertension;rule out coronary artery disease\\cardiac cath?", "key": "075dfde202da217a38664c06dfb7fc1d"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "PITUITARY BLEED"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "pituitary", "bleed", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pituitary", "bleed\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PITUITARY BLEED\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is pituitary bleed?", "key": "07a359a1b5b143af812f602a0f4efc3b"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 4, 3, 68]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "68", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"68\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"68\"", "question_refine": "what is maximum days of hospital stay of patients whose age is greater than or equal to 68?", "key": "a09e87b1a123bd380b2c2cce58c57df5"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 4, 3, 20]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "20", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"20\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"20\"", "question_refine": "what is minimum days of hospital stay of patients whose age is greater than or equal to 20?", "key": "bbbbcdd36fc4c67e7dc5d9127a958509"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2180]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2180", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2180\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2180\"", "question_refine": "what is average days of hospital stay of patients whose year of birth is greater than 2180?", "key": "0367a0f03bb46a2d3edf35a1ce8632f3"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2071]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2071", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2071\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2071\"", "question_refine": "what is average days of hospital stay of patients whose year of birth is greater than 2071?", "key": "876d21e0b155dacd669c5089a1f6b66e"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2200]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2200", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2200\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2200\"", "question_refine": "what is minimum days of hospital stay of patients whose year of birth is greater than 2200?", "key": "0f85a50055cfb411dd0b95a57d97191f"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 19, 2, 2154.0]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "2154", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<", "\"2154.0\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" < \"2154.0\"", "question_refine": "what is average days of hospital stay of patients whose year of death is less than 2154?", "key": "8cb9d9cd9777cb7de0f280d81e661f92"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 19, 2, 2164.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "2164", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<", "\"2164.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" < \"2164.0\"", "question_refine": "what is maximum days of hospital stay of patients whose year of death is less than 2164?", "key": "8758789c5295576a106780e5c140c9bd"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 6, 0, "F"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "gender", "is", "f", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"gender\"", "=", "\"f\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"GENDER\" = \"F\"", "question_refine": "what is average age of patients whose marital status is married and gender is f?", "key": "a01adcfe9f808af2f0964d8e7bea89c4"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 6, 0, "F"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "gender", "is", "f", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"gender\"", "=", "\"f\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"GENDER\" = \"F\"", "question_refine": "what is maximum age of patients whose marital status is divorced and gender is f?", "key": "96f280508885ff11a9f9b6cbfbc3ff0b"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 6, 0, "M"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "gender", "is", "m", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"gender\"", "=", "\"m\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"GENDER\" = \"M\"", "question_refine": "what is maximum age of patients whose marital status is single and gender is m?", "key": "9fc4764cc38d024d1682c51ce690b975"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 9, 0, "ELECTIVE"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "admission", "type", "is", "elective", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"admission_type\"", "=", "\"elective\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\"", "question_refine": "what is minimum age of patients whose marital status is married and admission type is elective?", "key": "043f8f8307b509641e9efc3a7189cd0a"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 11, 0, "Self Pay"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "insurance", "is", "self", "pay", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"insurance\"", "=", "\"self", "pay\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\"", "question_refine": "what is maximum age of patients whose marital status is married and insurance is self pay?", "key": "86d137b429120508a500a6853e984c09"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 14, 0, "CLINIC REFERRAL/PREMATURE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "admission", "location", "is", "clinic", "referral", "/", "premature", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\"", "question_refine": "what is average age of patients whose marital status is single and admission location is clinic referral/premature?", "key": "00942a70682dd4a711f87a01a76f6f4b"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 15, 0, "SNF"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "discharge", "location", "is", "snf", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"discharge_location\"", "=", "\"snf\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\"", "question_refine": "what is average age of patients whose marital status is married and discharge location is snf?", "key": "04ab9977c1bb2580994bec34d2bf7e89"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 4, 3, 41]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "age", "is", "greater", "than", "or", "equal", "to", "41", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"age\"", ">=", "\"41\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"AGE\" >= \"41\"", "question_refine": "what is maximum age of patients whose marital status is married and age is greater than or equal to 41?", "key": "025adce7a3b46ed090cf77e5dcc9c5ec"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 4, 3, 44]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "age", "is", "greater", "than", "or", "equal", "to", "44", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"age\"", ">=", "\"44\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"AGE\" >= \"44\"", "question_refine": "what is average age of patients whose marital status is married and age is greater than or equal to 44?", "key": "013a940a6c002ff9dac66a9c19992514"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 4, 3, 47]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "age", "is", "greater", "than", "or", "equal", "to", "47", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"age\"", ">=", "\"47\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"AGE\" >= \"47\"", "question_refine": "what is maximum age of patients whose marital status is married and age is greater than or equal to 47?", "key": "817fe7ae70c2b5623a475f9d9081d340"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 18, 1, 2087]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "year", "of", "birth", "is", "greater", "than", "2087", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"dob_year\"", ">", "\"2087\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2087\"", "question_refine": "what is average age of patients whose marital status is single and year of birth is greater than 2087?", "key": "9da3b03e4f367ed866072b9f7c825921"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 18, 1, 2097]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "year", "of", "birth", "is", "greater", "than", "2097", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"dob_year\"", ">", "\"2097\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2097\"", "question_refine": "what is average age of patients whose marital status is single and year of birth is greater than 2097?", "key": "91e4268fef7e4c6940983b195523dd3d"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 18, 1, 2073]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "year", "of", "birth", "is", "greater", "than", "2073", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"dob_year\"", ">", "\"2073\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2073\"", "question_refine": "what is maximum age of patients whose marital status is single and year of birth is greater than 2073?", "key": "a936b3862b737cd672397efa1a7ea9b0"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 22, 3, 2156]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2156", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"admityear\"", ">=", "\"2156\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2156\"", "question_refine": "what is average age of patients whose marital status is single and admission year is greater than or equal to 2156?", "key": "adae5e26acd2cff0c947689a1e07525e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 11, 0, "Medicaid"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "insurance", "is", "medicaid", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"insurance\"", "=", "\"medicaid\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\"", "question_refine": "what is average age of patients whose gender is m and insurance is medicaid?", "key": "8a8314389b88631016bc7ce9cefe7351"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 11, 0, "Private"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "insurance", "is", "private", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"insurance\"", "=", "\"private\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Private\"", "question_refine": "what is average age of patients whose gender is m and insurance is private?", "key": "0e5bbc6f42fc88135fb495c1a3303902"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 12, 0, "WHITE"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "ethnicity", "is", "white", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"ethnicity\"", "=", "\"white\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\"", "question_refine": "what is minimum age of patients whose gender is f and ethnicity is white?", "key": "fffdd25c4b1fd2c10864a81fa85fd02e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 12, 0, "HISPANIC OR LATINO"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "ethnicity", "is", "hispanic", "or", "latino", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\"", "question_refine": "what is average age of patients whose gender is m and ethnicity is hispanic or latino?", "key": "a741e084792d0b494db1b7f806b144d5"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 13, 0, 0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "death", "status", "is", "0", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"expire_flag\"", "=", "\"0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\"", "question_refine": "what is maximum age of patients whose gender is f and death status is 0?", "key": "00b8efccccac56dfadd92400425b33fa"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 13, 0, 0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "death", "status", "is", "0", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"expire_flag\"", "=", "\"0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\"", "question_refine": "what is maximum age of patients whose gender is m and death status is 0?", "key": "907eb0304115dca64c1217427151d675"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 15, 0, "LONG TERM CARE HOSPITAL"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "f", "and", "discharge", "location", "is", "long", "term", "care", "hospital", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"discharge_location\"", "=", "\"long", "term", "care", "hospital\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LONG TERM CARE HOSPITAL\"", "question_refine": "what is average age of patients whose gender is f and discharge location is long term care hospital?", "key": "046dedd9201c79ad138cee000f7e9354"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 15, 0, "SNF"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "discharge", "location", "is", "snf", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"discharge_location\"", "=", "\"snf\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\"", "question_refine": "what is maximum age of patients whose gender is m and discharge location is snf?", "key": "88e7d0489a8a25e29d2d72fe43c208e8"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "GASTROINTESTINAL BLEED"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "gastrointestinal", "bleed", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"gastrointestinal", "bleed\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"GASTROINTESTINAL BLEED\"", "question_refine": "what is minimum age of patients whose gender is f and primary disease is gastrointestinal bleed?", "key": "07f9e5ea7ba538b73cce9e2446522bf8"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 16, 0, "OVERDOSE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "primary", "disease", "is", "overdose", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"diagnosis\"", "=", "\"overdose\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\"", "question_refine": "what is maximum age of patients whose gender is m and primary disease is overdose?", "key": "a04053b65b4e0a526f0eb2e1b027f139"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 3, 24]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "greater", "than", "or", "equal", "to", "24", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", ">=", "\"24\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" >= \"24\"", "question_refine": "what is average age of patients whose gender is m and age is greater than or equal to 24?", "key": "95715270fb6291a1bc4411e87f316243"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 3, 54]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "greater", "than", "or", "equal", "to", "54", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", ">=", "\"54\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" >= \"54\"", "question_refine": "what is minimum age of patients whose gender is m and age is greater than or equal to 54?", "key": "02147b1f44bdb370c58befcdb779f4f6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 10, 0, 1]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "days", "of", "hospital", "stay", "is", "1", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"days_stay\"", "=", "\"1\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"1\"", "question_refine": "what is maximum age of patients whose gender is f and days of hospital stay is 1?", "key": "0d6939ea7e7229353b55c8e51e27e242"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 10, 0, 5]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "days", "of", "hospital", "stay", "is", "5", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"days_stay\"", "=", "\"5\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"5\"", "question_refine": "what is maximum age of patients whose gender is m and days of hospital stay is 5?", "key": "ac4878fcb21e4703a73ca747ce9bd819"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 10, 0, 20]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "days", "of", "hospital", "stay", "is", "20", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"days_stay\"", "=", "\"20\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"20\"", "question_refine": "what is maximum age of patients whose gender is m and days of hospital stay is 20?", "key": "0e952b08f68237025d354d7f78002818"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 10, 0, 27]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "days", "of", "hospital", "stay", "is", "27", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"days_stay\"", "=", "\"27\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"27\"", "question_refine": "what is average age of patients whose gender is m and days of hospital stay is 27?", "key": "bb32861221acb7493b42a12fce4769b6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 18, 1, 2078]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "year", "of", "birth", "is", "greater", "than", "2078", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"dob_year\"", ">", "\"2078\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2078\"", "question_refine": "what is minimum age of patients whose gender is m and year of birth is greater than 2078?", "key": "822832e2d35ed42025ec20b201dd7eef"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 16, 0, "OVERDOSE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "language", "is", "span", "and", "primary", "disease", "is", "overdose", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"diagnosis\"", "=", "\"overdose\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\"", "question_refine": "what is average age of patients whose language is span and primary disease is overdose?", "key": "8c182c6e8b8ec7c9edf817d41ad093ae"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "CAPE"], [0, 16, 0, "HYPERGLYCEMIA"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "language", "is", "cape", "and", "primary", "disease", "is", "hyperglycemia", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"cape\"", "and", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"CAPE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\"", "question_refine": "what is average age of patients whose language is cape and primary disease is hyperglycemia?", "key": "925b64a7b970e5a56de55e7db18fbd8f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "ENGL"], [0, 16, 0, "SEPSIS"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "language", "is", "engl", "and", "primary", "disease", "is", "sepsis", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "demographic.\"diagnosis\"", "=", "\"sepsis\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SEPSIS\"", "question_refine": "what is maximum age of patients whose language is engl and primary disease is sepsis?", "key": "a7d6a83b8b3aaf21dafd25bcee27258e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 11, 0, "Self Pay"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "insurance", "is", "self", "pay", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"insurance\"", "=", "\"self", "pay\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\"", "question_refine": "what is average age of patients whose admission type is urgent and insurance is self pay?", "key": "ae1f244625f4fdea70dbcfc038f2a2ed"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 11, 0, "Medicaid"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "insurance", "is", "medicaid", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"insurance\"", "=", "\"medicaid\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\"", "question_refine": "what is maximum age of patients whose admission type is elective and insurance is medicaid?", "key": "928495bf6e5d07038672946ee7801428"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\"", "question_refine": "what is average age of patients whose admission type is emergency and primary disease is brain mass;intracranial hemorrhage?", "key": "007b736a7e85c0d907a1aa0574bcd582"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "T5 FRACTURE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "t5", "fracture", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"t5", "fracture\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"T5 FRACTURE\"", "question_refine": "what is average age of patients whose admission type is emergency and primary disease is t5 fracture?", "key": "935565ac3f8101d1f13fc0393a9f8e6f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 22, 3, 2173]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2173", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"admityear\"", ">=", "\"2173\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2173\"", "question_refine": "what is minimum age of patients whose admission type is emergency and admission year is greater than or equal to 2173?", "key": "043f09d41386cd759fd9242478d6e6a9"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 22, 3, 2175]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2175", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"admityear\"", ">=", "\"2175\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2175\"", "question_refine": "what is minimum age of patients whose admission type is emergency and admission year is greater than or equal to 2175?", "key": "a91f19e15d1efa55a1fee067b317778e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 12, 0, "BLACK/CAPE VERDEAN"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "ethnicity", "is", "black", "/", "cape", "verdean", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\"", "question_refine": "what is maximum age of patients whose insurance is medicaid and ethnicity is black/cape verdean?", "key": "0f06b77b423037f77d9cf551771a846d"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "CEREBRAL ANEURYSM/SDA"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "cerebral", "aneurysm", "/", "sda", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"cerebral", "aneurysm/sda\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CEREBRAL ANEURYSM/SDA\"", "question_refine": "what is minimum age of patients whose insurance is medicaid and primary disease is cerebral aneurysm/sda?", "key": "0c4724e628885e5157f1df2895d68640"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 16, 0, "COLANGITIS"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "primary", "disease", "is", "colangitis", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"diagnosis\"", "=", "\"colangitis\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COLANGITIS\"", "question_refine": "what is maximum age of patients whose insurance is self pay and primary disease is colangitis?", "key": "a816fec20bc720c2ed48d227c3fdcd7c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Government"], [0, 10, 0, 1]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "insurance", "is", "government", "and", "days", "of", "hospital", "stay", "is", "1", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "demographic.\"days_stay\"", "=", "\"1\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"1\"", "question_refine": "what is average age of patients whose insurance is government and days of hospital stay is 1?", "key": "a5ed08bdcb4c1e8be442640558d76f49"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Government"], [0, 19, 2, 2154.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "insurance", "is", "government", "and", "year", "of", "death", "is", "less", "than", "2154", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "demographic.\"dod_year\"", "<", "\"2154.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2154.0\"", "question_refine": "what is maximum age of patients whose insurance is government and year of death is less than 2154?", "key": "ad0222178143c1561a0a8a027757997f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Government"], [0, 22, 3, 2177]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "insurance", "is", "government", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2177", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "demographic.\"admityear\"", ">=", "\"2177\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2177\"", "question_refine": "what is maximum age of patients whose insurance is government and admission year is greater than or equal to 2177?", "key": "0af601deae0ffdd1c1ffcfb2b892150c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 10, 0, 2]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "ethnicity", "is", "white", "and", "days", "of", "hospital", "stay", "is", "2", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"days_stay\"", "=", "\"2\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"2\"", "question_refine": "what is average age of patients whose ethnicity is white and days of hospital stay is 2?", "key": "032b7fd8d2d178537cac4b13edbb0d02"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 22, 3, 2120]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "ethnicity", "is", "white", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2120", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"admityear\"", ">=", "\"2120\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2120\"", "question_refine": "what is maximum age of patients whose ethnicity is white and admission year is greater than or equal to 2120?", "key": "00a69fd54e5ae5eb444fc1cc6c67a71f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 15, 0, "DISC-TRAN CANCER/CHLDRN H"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "discharge", "location", "is", "disc", "-", "tran", "cancer", "/", "chldrn", "h", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"discharge_location\"", "=", "\"disc-tran", "cancer/chldrn", "h\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISC-TRAN CANCER/CHLDRN H\"", "question_refine": "what is minimum age of patients whose death status is 0 and discharge location is disc-tran cancer/chldrn h?", "key": "0c5abc6a996b56827cc5e3c820f9fc6e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "COPD EXACERBATION"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "copd", "exacerbation", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\"", "question_refine": "what is average age of patients whose death status is 0 and primary disease is copd exacerbation?", "key": "0c99cbdfd068bcf1ca99f14d7e69b1fc"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 22, 3, 2121]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2121", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"admityear\"", ">=", "\"2121\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2121\"", "question_refine": "what is average age of patients whose death status is 0 and admission year is greater than or equal to 2121?", "key": "0f6b59272b612f8e29af1fcd07b26294"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 16, 0, "NEWBORN"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "primary", "disease", "is", "newborn", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"diagnosis\"", "=", "\"newborn\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\"", "question_refine": "what is maximum age of patients whose admission location is emergency room admit and primary disease is newborn?", "key": "0fb29b869eb69f0c6120ea7886440d17"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 16, 0, "POSTERIOR COMMUNICATING ANEURYSM/SDA"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "primary", "disease", "is", "posterior", "communicating", "aneurysm", "/", "sda", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"diagnosis\"", "=", "\"posterior", "communicating", "aneurysm/sda\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"POSTERIOR COMMUNICATING ANEURYSM/SDA\"", "question_refine": "what is minimum age of patients whose discharge location is home and primary disease is posterior communicating aneurysm/sda?", "key": "0f749a69b07f78a4c26f1deaff3d9478"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 16, 0, "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "primary", "disease", "is", "sigmoid", "diverticulitis", ",", "colovestical", "fistula", "/", "sda", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"diagnosis\"", "=", "\"sigmoid", "diverticulitis", "colovestical", "fistula/sda\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA\"", "question_refine": "what is average age of patients whose discharge location is home and primary disease is sigmoid diverticulitis, colovestical fistula/sda?", "key": "a49bdc060a8b7d9ec1b5de75bed29f95"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 16, 0, "GASTROINTESTINAL BLEED"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "primary", "disease", "is", "gastrointestinal", "bleed", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"diagnosis\"", "=", "\"gastrointestinal", "bleed\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"GASTROINTESTINAL BLEED\"", "question_refine": "what is average age of patients whose discharge location is home health care and primary disease is gastrointestinal bleed?", "key": "9c1019a7798259f92a6b8ff6f856cc7c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "BOWEL OBSTRUCTION"], [0, 4, 3, 71]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "primary", "disease", "is", "bowel", "obstruction", "and", "age", "is", "greater", "than", "or", "equal", "to", "71", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bowel", "obstruction\"", "and", "demographic.\"age\"", ">=", "\"71\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BOWEL OBSTRUCTION\" AND DEMOGRAPHIC.\"AGE\" >= \"71\"", "question_refine": "what is average age of patients whose primary disease is bowel obstruction and age is greater than or equal to 71?", "key": "87e3e952f4c6888eca35ce87b6a82e7d"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "GANGRENE"], [0, 10, 0, 27]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "gangrene", "and", "days", "of", "hospital", "stay", "is", "27", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"gangrene\"", "and", "demographic.\"days_stay\"", "=", "\"27\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GANGRENE\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"27\"", "question_refine": "what is minimum age of patients whose primary disease is gangrene and days of hospital stay is 27?", "key": "93f7e3c6d731913be0fe62fa99971a02"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "PNEUMONIA"], [0, 10, 0, 30]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "primary", "disease", "is", "pneumonia", "and", "days", "of", "hospital", "stay", "is", "30", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pneumonia\"", "and", "demographic.\"days_stay\"", "=", "\"30\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"30\"", "question_refine": "what is maximum age of patients whose primary disease is pneumonia and days of hospital stay is 30?", "key": "0df82d3e22799b2179485006b810705b"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "ABDOMINAL PAIN"], [0, 10, 0, 43]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "primary", "disease", "is", "abdominal", "pain", "and", "days", "of", "hospital", "stay", "is", "43", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"abdominal", "pain\"", "and", "demographic.\"days_stay\"", "=", "\"43\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL PAIN\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"43\"", "question_refine": "what is maximum age of patients whose primary disease is abdominal pain and days of hospital stay is 43?", "key": "a579823574b933d68ebf892d228f7f10"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "GASTROINTESTINAL BLEED"], [0, 10, 0, 17]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "gastrointestinal", "bleed", "and", "days", "of", "hospital", "stay", "is", "17", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"gastrointestinal", "bleed\"", "and", "demographic.\"days_stay\"", "=", "\"17\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GASTROINTESTINAL BLEED\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"17\"", "question_refine": "what is minimum age of patients whose primary disease is gastrointestinal bleed and days of hospital stay is 17?", "key": "8188575c168485955174dd92b0caf881"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "TRANSIENT ISCHEMIC ATTACK"], [0, 18, 1, 2095]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "transient", "ischemic", "attack", "and", "year", "of", "birth", "is", "greater", "than", "2095", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"transient", "ischemic", "attack\"", "and", "demographic.\"dob_year\"", ">", "\"2095\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"TRANSIENT ISCHEMIC ATTACK\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2095\"", "question_refine": "what is minimum age of patients whose primary disease is transient ischemic attack and year of birth is greater than 2095?", "key": "867cf2582e1a2e8d3334cc3214b69472"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "HYPOXIA"], [0, 19, 2, 2155.0]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "hypoxia", "and", "year", "of", "death", "is", "less", "than", "2155", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"hypoxia\"", "and", "demographic.\"dod_year\"", "<", "\"2155.0\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPOXIA\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2155.0\"", "question_refine": "what is minimum age of patients whose primary disease is hypoxia and year of death is less than 2155?", "key": "a64d7ee4e6048464ae58bbd5755b176b"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 4, 3, 70], [0, 22, 3, 2157]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "70", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2157", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"70\"", "and", "demographic.\"admityear\"", ">=", "\"2157\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"70\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2157\"", "question_refine": "what is average age of patients whose age is greater than or equal to 70 and admission year is greater than or equal to 2157?", "key": "aa5c833aff53e5280432151c138ab09c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 10, 0, 20], [0, 19, 2, 2131.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "20", "and", "year", "of", "death", "is", "less", "than", "2131", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", "=", "\"20\"", "and", "demographic.\"dod_year\"", "<", "\"2131.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" = \"20\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2131.0\"", "question_refine": "what is maximum age of patients whose days of hospital stay is 20 and year of death is less than 2131?", "key": "a426cd8188f05febde85a7fb7beea7e6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 10, 0, 20], [0, 19, 2, 2186.0]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "20", "and", "year", "of", "death", "is", "less", "than", "2186", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", "=", "\"20\"", "and", "demographic.\"dod_year\"", "<", "\"2186.0\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" = \"20\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2186.0\"", "question_refine": "what is minimum age of patients whose days of hospital stay is 20 and year of death is less than 2186?", "key": "06fdfc5ab31f978981e3b81b323b4d0a"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 10, 0, 4], [0, 22, 3, 2177]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "4", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2177", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", "=", "\"4\"", "and", "demographic.\"admityear\"", ">=", "\"2177\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" = \"4\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2177\"", "question_refine": "what is minimum age of patients whose days of hospital stay is 4 and admission year is greater than or equal to 2177?", "key": "8367cefd0993d59dc5c70209c60326a5"}