Download this file

1001 lines (1000 with data), 974.7 kB

{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Mal neo descend colon"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "mal", "neo", "descend", "colon", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"mal", "neo", "descend", "colon\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Mal neo descend colon\"", "question_refine": "how many patients whose diagnoses short title is mal neo descend colon?", "key": "f002988bf5fb84f630cf94e23389b1f0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Seroma complicting proc"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "seroma", "complicting", "proc", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"seroma", "complicting", "proc\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Seroma complicting proc\"", "question_refine": "count the number of patients whose diagnoses short title is seroma complicting proc?", "key": "47db6191ae1cef9ca665e0161f7d4dc5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Malnutrition of mild degree"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "malnutrition", "of", "mild", "degree", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"malnutrition", "of", "mild", "degree\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Malnutrition of mild degree\"", "question_refine": "how many patients whose diagnoses long title is malnutrition of mild degree?", "key": "58ed27d8ee8371eab73d8591413d2df0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Oliguria and anuria"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "oliguria", "and", "anuria", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"oliguria", "and", "anuria\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Oliguria and anuria\"", "question_refine": "give me the number of patients whose diagnoses long title is oliguria and anuria?", "key": "e09a3a0d2807a6407dc4712b90fc1d4e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 4, 0, "Cardiopulmonary resuscitation, not otherwise specified"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "cardiopulmonary", "resuscitation", ",", "not", "otherwise", "specified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"long_title\"", "=", "\"cardiopulmonary", "resuscitation", "not", "otherwise", "specified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Cardiopulmonary resuscitation, not otherwise specified\"", "question_refine": "count the number of patients whose procedure long title is cardiopulmonary resuscitation, not otherwise specified?", "key": "3c718274a5aaaa54c032bf5c256e3f75"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51455]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51455", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"51455\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51455\"", "question_refine": "provide the number of patients whose item id is 51455?", "key": "cc3f7818e107833578d20d611aef3e29"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 3, 0, "2137-08-30 14:39:00"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "chart", "time", "is", "2137", "-", "08", "-", "30", "14:39:00", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"charttime\"", "=", "\"2137-08-30", "14:39:00\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"CHARTTIME\" = \"2137-08-30 14:39:00\"", "question_refine": "provide the number of patients whose lab test chart time is 2137-08-30 14:39:00?", "key": "298c079fa6915cf05fd8a7a794fbc772"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 3, 0, "2120-04-16 13:27:00"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "chart", "time", "is", "2120", "-", "04", "-", "16", "13:27:00", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"charttime\"", "=", "\"2120-04-16", "13:27:00\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"CHARTTIME\" = \"2120-04-16 13:27:00\"", "question_refine": "provide the number of patients whose lab test chart time is 2120-04-16 13:27:00?", "key": "ba1f99fd74dd58ebd5f27b4d569c1e7c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 3, 0, "2111-12-22 19:13:00"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "lab", "test", "chart", "time", "is", "2111", "-", "12", "-", "22", "19:13:00", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"charttime\"", "=", "\"2111-12-22", "19:13:00\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"CHARTTIME\" = \"2111-12-22 19:13:00\"", "question_refine": "how many patients whose lab test chart time is 2111-12-22 19:13:00?", "key": "a6a76a407cc623a1b729144bf7018043"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 16, 0, "ACIDOSIS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "primary", "disease", "is", "acidosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"diagnosis\"", "=", "\"acidosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ACIDOSIS\"", "question_refine": "what is the number of patients whose marital status is single and primary disease is acidosis?", "key": "71f905e4dfa6785ac8cb12f0bba02bac"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 16, 0, "CELO-VESSICLE FISTULA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "primary", "disease", "is", "celo", "-", "vessicle", "fistula", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"diagnosis\"", "=", "\"celo-vessicle", "fistula\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CELO-VESSICLE FISTULA\"", "question_refine": "provide the number of patients whose marital status is divorced and primary disease is celo-vessicle fistula?", "key": "0da5f39218fc0990a5f18df2ed15b596"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "WIDOWED"], [0, 18, 2, 1846]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "year", "of", "birth", "is", "less", "than", "1846", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "demographic.\"dob_year\"", "<", "\"1846\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1846\"", "question_refine": "provide the number of patients whose marital status is widowed and year of birth is less than 1846?", "key": "34c9b21b6e441866c49af6712fa4fceb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 3, 0, "Spinal tap"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "short", "title", "is", "spinal", "tap", "?"], "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\"", "=", "\"spinal", "tap\""], "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\" = \"Spinal tap\"", "question_refine": "what is the number of patients whose marital status is married and procedure short title is spinal tap?", "key": "999c963dfb52dd6f92dc594a615cf7f0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "WIDOWED"], [2, 4, 0, "Laryngoscopy and other tracheoscopy"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "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.\"marital_status\"", "=", "\"widowed\"", "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.\"MARITAL_STATUS\" = \"WIDOWED\" AND PROCEDURES.\"LONG_TITLE\" = \"Laryngoscopy and other tracheoscopy\"", "question_refine": "what is the number of patients whose marital status is widowed and procedure long title is laryngoscopy and other tracheoscopy?", "key": "3b9c75ae41f026bdb8f7a973d68b6109"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "MARRIED"], [4, 2, 0, 51438]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "item", "i", "d", "is", "51438", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "lab.\"itemid\"", "=", "\"51438\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND LAB.\"ITEMID\" = \"51438\"", "question_refine": "give me the number of patients whose marital status is married and item id is 51438?", "key": "ee1143c7ae78e2e98ce86414edfb5951"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "MARRIED"], [4, 6, 0, "Bilirubin, Indirect"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "lab", "test", "name", "is", "bilirubin", ",", "indirect", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "lab.\"label\"", "=", "\"bilirubin", "indirect\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND LAB.\"LABEL\" = \"Bilirubin, Indirect\"", "question_refine": "give me the number of patients whose marital status is married and lab test name is bilirubin, indirect?", "key": "604aa539d390fbb434f457e318dff26c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "WIDOWED"], [4, 6, 0, "Oxygen Saturation"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "lab", "test", "name", "is", "oxygen", "saturation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "lab.\"label\"", "=", "\"oxygen", "saturation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND LAB.\"LABEL\" = \"Oxygen Saturation\"", "question_refine": "count the number of patients whose marital status is widowed and lab test name is oxygen saturation?", "key": "54fcdef3ec7d6d7e29a1297843aafeb6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "WIDOWED"], [4, 6, 0, "Metamyelocytes"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "lab", "test", "name", "is", "metamyelocytes", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "lab.\"label\"", "=", "\"metamyelocytes\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND LAB.\"LABEL\" = \"Metamyelocytes\"", "question_refine": "provide the number of patients whose marital status is widowed and lab test name is metamyelocytes?", "key": "767e7e6dffb77bff02d1a8ff4134e3ee"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "MARRIED"], [4, 6, 0, "Homocysteine"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "lab", "test", "name", "is", "homocysteine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "lab.\"label\"", "=", "\"homocysteine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND LAB.\"LABEL\" = \"Homocysteine\"", "question_refine": "what is the number of patients whose marital status is married and lab test name is homocysteine?", "key": "3c9c1749b327809d761a52459863601d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 15, 0, "LEFT AGAINST MEDICAL ADVI"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "discharge", "location", "is", "left", "against", "medical", "advi", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"discharge_location\"", "=", "\"left", "against", "medical", "advi\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LEFT AGAINST MEDICAL ADVI\"", "question_refine": "what is the number of patients whose gender is m and discharge location is left against medical advi?", "key": "c31f880dd11fff084de6e347504a9bb4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 18, 2, 2156]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "year", "of", "birth", "is", "less", "than", "2156", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"dob_year\"", "<", "\"2156\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2156\"", "question_refine": "count the number of patients whose gender is m and year of birth is less than 2156?", "key": "9fdfa44519d4f7107a930e1522bdf0f4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 3, 0, "Emphysema NEC"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "short", "title", "is", "emphysema", "nec", "?"], "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.\"short_title\"", "=", "\"emphysema", "nec\""], "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.\"SHORT_TITLE\" = \"Emphysema NEC\"", "question_refine": "give me the number of patients whose gender is m and diagnoses short title is emphysema nec?", "key": "3ab60f1824e466690d33d33363bb27f5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Cholangitis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "cholangitis", "?"], "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\"", "=", "\"cholangitis\""], "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\" = \"Cholangitis\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is cholangitis?", "key": "e1ab8e769aba4f855d7fccc7c7632f4f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "M"], [3, 5, 0, "FLUC100"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "drug", "code", "is", "fluc100", "?"], "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\"", "=", "\"fluc100\""], "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\" = \"FLUC100\"", "question_refine": "how many patients whose gender is m and drug code is fluc100?", "key": "58d41a6f2d68d94c7f7ae8415d84ec8e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "F"], [4, 6, 0, "Sedimentation Rate"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "lab", "test", "name", "is", "sedimentation", "rate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "lab.\"label\"", "=", "\"sedimentation", "rate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND LAB.\"LABEL\" = \"Sedimentation Rate\"", "question_refine": "what is the number of patients whose gender is f and lab test name is sedimentation rate?", "key": "fed0c35cc5326963faba8746a87c5eb5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 4, 2, 83]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "span", "and", "age", "is", "less", "than", "83", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"age\"", "<", "\"83\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"AGE\" < \"83\"", "question_refine": "provide the number of patients whose language is span and age is less than 83?", "key": "76a28319b032760fbfb236d62703694b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 7, 0, "ENGL"], [1, 3, 0, "Bipol I cur depres NOS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "language", "is", "engl", "and", "diagnoses", "short", "title", "is", "bipol", "i", "cur", "depres", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "diagnoses.\"short_title\"", "=", "\"bipol", "i", "cur", "depres", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Bipol I cur depres NOS\"", "question_refine": "what is the number of patients whose language is engl and diagnoses short title is bipol i cur depres nos?", "key": "fb8b56a871ace84839c0359207097f0f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 7, 0, "SPAN"], [2, 4, 0, "Coronary arteriography using two catheters"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "language", "is", "span", "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.\"language\"", "=", "\"span\"", "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.\"LANGUAGE\" = \"SPAN\" AND PROCEDURES.\"LONG_TITLE\" = \"Coronary arteriography using two catheters\"", "question_refine": "what is the number of patients whose language is span and procedure long title is coronary arteriography using two catheters?", "key": "a10d4da5de679c478abcf3e8b9262878"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 7, 0, "ENGL"], [2, 4, 0, "Infusion of vasopressor agent"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "engl", "and", "procedure", "long", "title", "is", "infusion", "of", "vasopressor", "agent", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "procedures.\"long_title\"", "=", "\"infusion", "of", "vasopressor", "agent\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND PROCEDURES.\"LONG_TITLE\" = \"Infusion of vasopressor agent\"", "question_refine": "give me the number of patients whose language is engl and procedure long title is infusion of vasopressor agent?", "key": "f66644205579bf804b133b8d1e75f34e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "UNOBTAINABLE"], [0, 4, 2, 86]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "religion", "is", "unobtainable", "and", "age", "is", "less", "than", "86", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"unobtainable\"", "and", "demographic.\"age\"", "<", "\"86\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"UNOBTAINABLE\" AND DEMOGRAPHIC.\"AGE\" < \"86\"", "question_refine": "how many patients whose religion is unobtainable and age is less than 86?", "key": "9f2afa5df98b738767223587013ac272"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 8, 0, "ROMANIAN EAST. ORTH"], [4, 6, 0, "Potassium"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "religion", "is", "romanian", "east", ".", "orth", "and", "lab", "test", "name", "is", "potassium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"religion\"", "=", "\"romanian", "east.", "orth\"", "and", "lab.\"label\"", "=", "\"potassium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"ROMANIAN EAST. ORTH\" AND LAB.\"LABEL\" = \"Potassium\"", "question_refine": "count the number of patients whose religion is romanian east. orth and lab test name is potassium?", "key": "5232c7b6ef2cc2eebba6cc3d17ca0106"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 8, 0, "CHRISTIAN SCIENTIST"], [4, 6, 0, "Reticulocyte Count, Manual"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "religion", "is", "christian", "scientist", "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.\"religion\"", "=", "\"christian", "scientist\"", "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.\"RELIGION\" = \"CHRISTIAN SCIENTIST\" AND LAB.\"LABEL\" = \"Reticulocyte Count, Manual\"", "question_refine": "how many patients whose religion is christian scientist and lab test name is reticulocyte count, manual?", "key": "be3eb4f1fe1a812c5e1fec8075e5f12c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\"", "question_refine": "give me the number of patients whose admission type is emergency and primary disease is brain mass;intracranial hemorrhage?", "key": "ba9dbb081b9f1ce73045840351f64497"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 4, 0, "Glucocorticoid deficiency"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "long", "title", "is", "glucocorticoid", "deficiency", "?"], "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.\"long_title\"", "=", "\"glucocorticoid", "deficiency\""], "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.\"LONG_TITLE\" = \"Glucocorticoid deficiency\"", "question_refine": "give me the number of patients whose admission type is emergency and diagnoses long title is glucocorticoid deficiency?", "key": "ddfabe221b98f67817c29c3359828e75"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 2, 0, 4576]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "icd9", "code", "is", "4576", "?"], "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\"", "=", "\"4576\""], "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\" = \"4576\"", "question_refine": "what is the number of patients whose admission type is emergency and procedure icd9 code is 4576?", "key": "34fc3b0e3b99d3983d7a09f19597e9f8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 3, 0, "Opn rt hemicolectomy NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "short", "title", "is", "opn", "rt", "hemicolectomy", "nec", "?"], "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\"", "=", "\"opn", "rt", "hemicolectomy", "nec\""], "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\" = \"Opn rt hemicolectomy NEC\"", "question_refine": "how many patients whose admission type is emergency and procedure short title is opn rt hemicolectomy nec?", "key": "b8ee84128dd33abe645ac4845a6a7af7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 3, 0, "CV cath plcmt w guidance"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "short", "title", "is", "cv", "cath", "plcmt", "w", "guidance", "?"], "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\"", "=", "\"cv", "cath", "plcmt", "w", "guidance\""], "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\" = \"CV cath plcmt w guidance\"", "question_refine": "how many patients whose admission type is emergency and procedure short title is cv cath plcmt w guidance?", "key": "32b051aa13cce1796c5dd850806cd7e3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 4, 0, "Initial insertion of dual-chamber device"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "long", "title", "is", "initial", "insertion", "of", "dual", "-", "chamber", "device", "?"], "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.\"long_title\"", "=", "\"initial", "insertion", "of", "dual-chamber", "device\""], "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.\"LONG_TITLE\" = \"Initial insertion of dual-chamber device\"", "question_refine": "give me the number of patients whose admission type is emergency and procedure long title is initial insertion of dual-chamber device?", "key": "ea1358be5c127c48552ee5bbcb78cf44"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 6, 0, "Creatinine, Urine"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "lab", "test", "name", "is", "creatinine", ",", "urine", "?"], "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\"", "=", "\"creatinine", "urine\""], "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\" = \"Creatinine, Urine\"", "question_refine": "what is the number of patients whose admission type is elective and lab test name is creatinine, urine?", "key": "2ec9c99454a7bb6cef3d5012a68db22f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Self Pay"], [0, 18, 2, 2138]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "year", "of", "birth", "is", "less", "than", "2138", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "demographic.\"dob_year\"", "<", "\"2138\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2138\"", "question_refine": "what is the number of patients whose insurance is self pay and year of birth is less than 2138?", "key": "e4bb366c8c830725aefbda16a18c65b5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Private"], [0, 19, 4, 2131.0]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2131", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "demographic.\"dod_year\"", "<=", "\"2131.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2131.0\"", "question_refine": "provide the number of patients whose insurance is private and year of death is less than or equal to 2131?", "key": "cfb11055a048c13e4c94e7607fa03648"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [0, 4, 2, 20]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "age", "is", "less", "than", "20", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "demographic.\"age\"", "<", "\"20\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND DEMOGRAPHIC.\"AGE\" < \"20\"", "question_refine": "how many patients whose ethnicity is hispanic or latino and age is less than 20?", "key": "33f218c5f6bbcac7e1953365aa1bbf4d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [0, 4, 2, 27]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "age", "is", "less", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "demographic.\"age\"", "<", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND DEMOGRAPHIC.\"AGE\" < \"27\"", "question_refine": "provide the number of patients whose ethnicity is hispanic or latino and age is less than 27?", "key": "2718d731f69ddd356bc24d2cb068083c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 3, 0, "Hyperlipidemia NEC/NOS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "short", "title", "is", "hyperlipidemia", "nec", "/", "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\"", "=", "\"hyperlipidemia", "nec/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\" = \"Hyperlipidemia NEC/NOS\"", "question_refine": "provide the number of patients whose ethnicity is white and diagnoses short title is hyperlipidemia nec/nos?", "key": "9517cef054bdd6a576c41201b19845c8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"], [3, 4, 0, "1/2 NS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "and", "drug", "name", "is", "1/2", "ns", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\"", "and", "prescriptions.\"drug\"", "=", "\"1/2", "ns\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\" AND PRESCRIPTIONS.\"DRUG\" = \"1/2 NS\"", "question_refine": "what is the number of patients whose ethnicity is black/cape verdean and drug name is 1/2 ns?", "key": "2913fbfc72ba27ade9768e48e055d7c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "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.\"ethnicity\"", "=", "\"black/haitian\"", "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.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "give me the number of patients whose ethnicity is black/haitian and lab test category is chemistry?", "key": "ab014699708c7159b18bbfe0114d00eb"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "FEMORAL ARTERY THROMBOSIS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "femoral", "artery", "thrombosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\"", "question_refine": "how many patients whose death status is 0 and primary disease is femoral artery thrombosis?", "key": "7df1012037f5841161cfb47456c99307"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 18, 2, 2083]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "year", "of", "birth", "is", "less", "than", "2083", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"dob_year\"", "<", "\"2083\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2083\"", "question_refine": "provide the number of patients whose death status is 1 and year of birth is less than 2083?", "key": "5be9b9cf6fe64f65d6c8ef8efaa44768"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 0], [0, 22, 2, 2114]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "admission", "year", "is", "less", "than", "2114", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"admityear\"", "<", "\"2114\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2114\"", "question_refine": "what is the number of patients whose death status is 0 and admission year is less than 2114?", "key": "66c130ca057b9cc2f180fb1876ed0328"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 3, 0, "Proteus infection NOS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "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.\"expire_flag\"", "=", "\"1\"", "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.\"EXPIRE_FLAG\" = \"1\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Proteus infection NOS\"", "question_refine": "provide the number of patients whose death status is 1 and diagnoses short title is proteus infection nos?", "key": "d54e63a87b05ecdadda31c8b92a9a040"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 3, 0, "Cl skul base fx-coma NOS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "short", "title", "is", "cl", "skul", "base", "fx", "-", "coma", "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\"", "=", "\"0\"", "and", "diagnoses.\"short_title\"", "=", "\"cl", "skul", "base", "fx-coma", "nos\""], "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\" = \"Cl skul base fx-coma NOS\"", "question_refine": "what is the number of patients whose death status is 0 and diagnoses short title is cl skul base fx-coma nos?", "key": "c11924b98f205cabf0d24c9912e60a61"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 4, 0, "Other second degree atrioventricular block"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "long", "title", "is", "other", "second", "degree", "atrioventricular", "block", "?"], "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\"", "=", "\"other", "second", "degree", "atrioventricular", "block\""], "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\" = \"Other second degree atrioventricular block\"", "question_refine": "give me the number of patients whose death status is 0 and diagnoses long title is other second degree atrioventricular block?", "key": "f5a1a8b314b7342e39ff70c0f2a885c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 4, 0, "Asthma, unspecified type, unspecified"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "long", "title", "is", "asthma", ",", "unspecified", "type", ",", "unspecified", "?"], "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.\"long_title\"", "=", "\"asthma", "unspecified", "type", "unspecified\""], "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.\"LONG_TITLE\" = \"Asthma, unspecified type, unspecified\"", "question_refine": "what is the number of patients whose death status is 1 and diagnoses long title is asthma, unspecified type, unspecified?", "key": "37fdc51ae59edf701bd4100558bd66bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 3, 0, "Incision of aorta"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "short", "title", "is", "incision", "of", "aorta", "?"], "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\"", "=", "\"incision", "of", "aorta\""], "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\" = \"Incision of aorta\"", "question_refine": "provide the number of patients whose death status is 0 and procedure short title is incision of aorta?", "key": "144a8b841c688951eaa7242b06faca98"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [0, 4, 2, 50]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "age", "is", "less", "than", "50", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "demographic.\"age\"", "<", "\"50\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DEMOGRAPHIC.\"AGE\" < \"50\"", "question_refine": "give me the number of patients whose admission location is phys referral/normal deli and age is less than 50?", "key": "4d601a5382678f8b5b555930cc9bbda3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 22, 2, 2155]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "admission", "year", "is", "less", "than", "2155", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"admityear\"", "<", "\"2155\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2155\"", "question_refine": "provide the number of patients whose admission location is emergency room admit and admission year is less than 2155?", "key": "5cadb9ee95567682a1d9a595da6d0aef"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [1, 3, 0, "Dysphagia NOS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "diagnoses", "short", "title", "is", "dysphagia", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "diagnoses.\"short_title\"", "=", "\"dysphagia", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Dysphagia NOS\"", "question_refine": "count the number of patients whose admission location is clinic referral/premature and diagnoses short title is dysphagia nos?", "key": "8f6a86a867519165ef785de92ce0a06f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [1, 4, 0, "Diverticulitis of colon (without mention of hemorrhage)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "diagnoses", "long", "title", "is", "diverticulitis", "of", "colon", "(", "without", "mention", "of", "hemorrhage", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "diagnoses.\"long_title\"", "=", "\"diverticulitis", "of", "colon", "(without", "mention", "of", "hemorrhage)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DIAGNOSES.\"LONG_TITLE\" = \"Diverticulitis of colon (without mention of hemorrhage)\"", "question_refine": "what is the number of patients whose admission location is phys referral/normal deli and diagnoses long title is diverticulitis of colon (without mention of hemorrhage)?", "key": "3b6cbf1d9789ec37ef5ca16c9812a5e1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [1, 4, 0, "Benign neoplasm of spinal meninges"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "diagnoses", "long", "title", "is", "benign", "neoplasm", "of", "spinal", "meninges", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "diagnoses.\"long_title\"", "=", "\"benign", "neoplasm", "of", "spinal", "meninges\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DIAGNOSES.\"LONG_TITLE\" = \"Benign neoplasm of spinal meninges\"", "question_refine": "provide the number of patients whose admission location is transfer from hosp/extram and diagnoses long title is benign neoplasm of spinal meninges?", "key": "71388443bfb5af68c2529af5b9b0c0e4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [2, 3, 0, "Open sigmoidectomy NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "procedure", "short", "title", "is", "open", "sigmoidectomy", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "procedures.\"short_title\"", "=", "\"open", "sigmoidectomy", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND PROCEDURES.\"SHORT_TITLE\" = \"Open sigmoidectomy NEC\"", "question_refine": "what is the number of patients whose admission location is phys referral/normal deli and procedure short title is open sigmoidectomy nec?", "key": "998a9b947bd57f13e2f15614949cfc98"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 22, 2, 2127]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "and", "admission", "year", "is", "less", "than", "2127", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"admityear\"", "<", "\"2127\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2127\"", "question_refine": "how many patients whose discharge location is home and admission year is less than 2127?", "key": "9a0c33bd7b634a2f078077e4232eb13e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 22, 2, 2197]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "admission", "year", "is", "less", "than", "2197", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"admityear\"", "<", "\"2197\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2197\"", "question_refine": "what is the number of patients whose discharge location is home health care and admission year is less than 2197?", "key": "320ec6a220fd138c7ae6aaafe3eb0322"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "REHAB/DISTINCT PART HOSP"], [1, 4, 0, "End stage renal disease"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "rehab", "/", "distinct", "part", "hosp", "and", "diagnoses", "long", "title", "is", "end", "stage", "renal", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"rehab/distinct", "part", "hosp\"", "and", "diagnoses.\"long_title\"", "=", "\"end", "stage", "renal", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"REHAB/DISTINCT PART HOSP\" AND DIAGNOSES.\"LONG_TITLE\" = \"End stage renal disease\"", "question_refine": "how many patients whose discharge location is rehab/distinct part hosp and diagnoses long title is end stage renal disease?", "key": "6a825dbe225f347b421ccde1da8231ed"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [1, 4, 0, "Other abnormal blood chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "diagnoses", "long", "title", "is", "other", "abnormal", "blood", "chemistry", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "diagnoses.\"long_title\"", "=", "\"other", "abnormal", "blood", "chemistry\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DIAGNOSES.\"LONG_TITLE\" = \"Other abnormal blood chemistry\"", "question_refine": "count the number of patients whose discharge location is home health care and diagnoses long title is other abnormal blood chemistry?", "key": "65872f54a6d403bfaada1cd3a8339ba5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME"], [2, 3, 0, "Contr cerebr arteriogram"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "procedure", "short", "title", "is", "contr", "cerebr", "arteriogram", "?"], "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\"", "=", "\"contr", "cerebr", "arteriogram\""], "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\" = \"Contr cerebr arteriogram\"", "question_refine": "give me the number of patients whose discharge location is home and procedure short title is contr cerebr arteriogram?", "key": "43e6a82119c6bdcd0411495c65902694"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [2, 4, 0, "Percutaneous abdominal drainage"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "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.\"discharge_location\"", "=", "\"home", "health", "care\"", "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.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND PROCEDURES.\"LONG_TITLE\" = \"Percutaneous abdominal drainage\"", "question_refine": "provide the number of patients whose discharge location is home health care and procedure long title is percutaneous abdominal drainage?", "key": "4e8d520e3862b7e7555bdecd3fa9601d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [4, 6, 0, "Potassium, Whole Blood"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "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.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "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.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND LAB.\"LABEL\" = \"Potassium, Whole Blood\"", "question_refine": "how many patients whose discharge location is short term hospital and lab test name is potassium, whole blood?", "key": "4d88b09a983553a916b26a52c1bd8101"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 15, 0, "SNF"], [4, 6, 0, "Magnesium"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "snf", "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.\"discharge_location\"", "=", "\"snf\"", "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.\"DISCHARGE_LOCATION\" = \"SNF\" AND LAB.\"LABEL\" = \"Magnesium\"", "question_refine": "give me the number of patients whose discharge location is snf and lab test name is magnesium?", "key": "d5255cb3890ee87d8b5a8f22a664d49b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [4, 6, 0, "Urea Nitrogen"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "lab", "test", "name", "is", "urea", "nitrogen", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "lab.\"label\"", "=", "\"urea", "nitrogen\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND LAB.\"LABEL\" = \"Urea Nitrogen\"", "question_refine": "provide the number of patients whose discharge location is home health care and lab test name is urea nitrogen?", "key": "34b4777c020a39e5a4f5c900a97cf165"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [4, 6, 0, "Amylase"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "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.\"discharge_location\"", "=", "\"home", "health", "care\"", "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.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND LAB.\"LABEL\" = \"Amylase\"", "question_refine": "how many patients whose discharge location is home health care and lab test name is amylase?", "key": "1c366aa881c41a5cfdef46c214ab1d01"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ATRIAL SEPTAL DEFECT\\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA"], [0, 18, 2, 2111]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "atrial", "septal", "defect\\mitral", "valve", "replacement;repair", "atrial", "-", "septal", "defect", "/", "sda", "and", "year", "of", "birth", "is", "less", "than", "2111", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"atrial", "septal", "defect\\mitral", "valve", "replacement;repair", "atrial-septal", "defect/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2111\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ATRIAL SEPTAL DEFECT\\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2111\"", "question_refine": "what is the number of patients whose primary disease is atrial septal defect\\mitral valve replacement;repair atrial-septal defect/sda and year of birth is less than 2111?", "key": "a3385d79378cb67adc14e2dc099b0dc8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ATRIAL SEPTAL DEFECT\\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA"], [0, 18, 2, 2080]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "atrial", "septal", "defect\\mitral", "valve", "replacement;repair", "atrial", "-", "septal", "defect", "/", "sda", "and", "year", "of", "birth", "is", "less", "than", "2080", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"atrial", "septal", "defect\\mitral", "valve", "replacement;repair", "atrial-septal", "defect/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2080\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ATRIAL SEPTAL DEFECT\\MITRAL VALVE REPLACEMENT;REPAIR ATRIAL-SEPTAL DEFECT/SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2080\"", "question_refine": "provide the number of patients whose primary disease is atrial septal defect\\mitral valve replacement;repair atrial-septal defect/sda and year of birth is less than 2080?", "key": "004e15549efa158919db8e3a7a1cb48a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "BLADDER CANCER/SDA"], [0, 18, 2, 2076]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bladder", "cancer", "/", "sda", "and", "year", "of", "birth", "is", "less", "than", "2076", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bladder", "cancer/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2076\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BLADDER CANCER/SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2076\"", "question_refine": "provide the number of patients whose primary disease is bladder cancer/sda and year of birth is less than 2076?", "key": "cd933004e6ccb59a2de1b3e604b83e0c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"], [0, 22, 2, 2176]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "squamous", "cell", "carcinoma", "oral", "tongue", "/", "sda", "and", "admission", "year", "is", "less", "than", "2176", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"squamous", "cell", "carcinoma", "oral", "tongue/sda\"", "and", "demographic.\"admityear\"", "<", "\"2176\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2176\"", "question_refine": "count the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and admission year is less than 2176?", "key": "d892c72092dfc4de36c51228186d6066"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH"], [0, 22, 2, 2197]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "st", "elevated", "myocardial", "infarction\\cardiac", "cath", "and", "admission", "year", "is", "less", "than", "2197", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"st", "elevated", "myocardial", "infarction\\cardiac", "cath\"", "and", "demographic.\"admityear\"", "<", "\"2197\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2197\"", "question_refine": "provide the number of patients whose primary disease is st elevated myocardial infarction\\cardiac cath and admission year is less than 2197?", "key": "744aa87f4d7fa5f348d8316d2d8afd24"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT"], [0, 22, 2, 2197]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant", "and", "admission", "year", "is", "less", "than", "2197", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant\"", "and", "demographic.\"admityear\"", "<", "\"2197\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2197\"", "question_refine": "give me the number of patients whose primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\\bone marrow transplant and admission year is less than 2197?", "key": "2d3b775e31bea2b9b0529d67f630776c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "ACIDOSIS"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "acidosis", "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.\"diagnosis\"", "=", "\"acidosis\"", "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.\"DIAGNOSIS\" = \"ACIDOSIS\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "how many patients whose primary disease is acidosis and lab test category is blood gas?", "key": "e2845d92a8e22fb2dd1a0ce51efe7955"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 71], [0, 19, 4, 2132.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "71", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2132", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"71\"", "and", "demographic.\"dod_year\"", "<=", "\"2132.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"71\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2132.0\"", "question_refine": "count the number of patients whose age is less than 71 and year of death is less than or equal to 2132?", "key": "0f52521f5ea1770fc02a961152aadaca"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 61], [1, 3, 0, "Crnry athrscl natve vssl"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "61", "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.\"age\"", "<", "\"61\"", "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.\"AGE\" < \"61\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Crnry athrscl natve vssl\"", "question_refine": "give me the number of patients whose age is less than 61 and diagnoses short title is crnry athrscl natve vssl?", "key": "45b716ad117e99ff3fdde000e5d43e74"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 77], [2, 3, 0, "Radiotherapeut proc NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "77", "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.\"age\"", "<", "\"77\"", "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.\"AGE\" < \"77\" AND PROCEDURES.\"SHORT_TITLE\" = \"Radiotherapeut proc NEC\"", "question_refine": "what is the number of patients whose age is less than 77 and procedure short title is radiotherapeut proc nec?", "key": "7c73edb2653c289df859f23bb5e2e056"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 86], [2, 3, 0, "Infusion of vasopressor"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "86", "and", "procedure", "short", "title", "is", "infusion", "of", "vasopressor", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"86\"", "and", "procedures.\"short_title\"", "=", "\"infusion", "of", "vasopressor\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"86\" AND PROCEDURES.\"SHORT_TITLE\" = \"Infusion of vasopressor\"", "question_refine": "what is the number of patients whose age is less than 86 and procedure short title is infusion of vasopressor?", "key": "c01caaaf4c6865342b4df70a49492302"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 82], [2, 3, 0, "Extracorporeal circulat"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "82", "and", "procedure", "short", "title", "is", "extracorporeal", "circulat", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"82\"", "and", "procedures.\"short_title\"", "=", "\"extracorporeal", "circulat\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"82\" AND PROCEDURES.\"SHORT_TITLE\" = \"Extracorporeal circulat\"", "question_refine": "what is the number of patients whose age is less than 82 and procedure short title is extracorporeal circulat?", "key": "7ccdd7b1f30baf6477c4ac6d5157a8a4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 74], [2, 3, 0, "Form cutan ileoureterost"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "74", "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.\"age\"", "<", "\"74\"", "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.\"AGE\" < \"74\" AND PROCEDURES.\"SHORT_TITLE\" = \"Form cutan ileoureterost\"", "question_refine": "how many patients whose age is less than 74 and procedure short title is form cutan ileoureterost?", "key": "c5757e98989feb590e380f0f2a73eb93"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 45], [2, 4, 0, "Parenteral infusion of concentrated nutritional substances"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "45", "and", "procedure", "long", "title", "is", "parenteral", "infusion", "of", "concentrated", "nutritional", "substances", "?"], "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\"", "=", "\"parenteral", "infusion", "of", "concentrated", "nutritional", "substances\""], "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\" = \"Parenteral infusion of concentrated nutritional substances\"", "question_refine": "how many patients whose age is less than 45 and procedure long title is parenteral infusion of concentrated nutritional substances?", "key": "274498730408f1e7a718a50f91e7cf41"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 55], [2, 4, 0, "Venous catheterization, not elsewhere classified"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "55", "and", "procedure", "long", "title", "is", "venous", "catheterization", ",", "not", "elsewhere", "classified", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"55\"", "and", "procedures.\"long_title\"", "=", "\"venous", "catheterization", "not", "elsewhere", "classified\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"55\" AND PROCEDURES.\"LONG_TITLE\" = \"Venous catheterization, not elsewhere classified\"", "question_refine": "count the number of patients whose age is less than 55 and procedure long title is venous catheterization, not elsewhere classified?", "key": "4a51228f7dbc72ddd37d742e614b31a9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 15], [1, 3, 0, "Respiratory distress syn"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "15", "and", "diagnoses", "short", "title", "is", "respiratory", "distress", "syn", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"15\"", "and", "diagnoses.\"short_title\"", "=", "\"respiratory", "distress", "syn\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"15\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Respiratory distress syn\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 15 and diagnoses short title is respiratory distress syn?", "key": "92a6c58ae58749da16911dc25befcc1b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 15], [1, 4, 0, "Respiratory distress syndrome in newborn"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "15", "and", "diagnoses", "long", "title", "is", "respiratory", "distress", "syndrome", "in", "newborn", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"15\"", "and", "diagnoses.\"long_title\"", "=", "\"respiratory", "distress", "syndrome", "in", "newborn\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"15\" AND DIAGNOSES.\"LONG_TITLE\" = \"Respiratory distress syndrome in newborn\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 15 and diagnoses long title is respiratory distress syndrome in newborn?", "key": "5ef5c1b20f8606b382ae2da773c894fe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 5], [2, 3, 0, "Cardiac mapping"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "5", "and", "procedure", "short", "title", "is", "cardiac", "mapping", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"5\"", "and", "procedures.\"short_title\"", "=", "\"cardiac", "mapping\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"5\" AND PROCEDURES.\"SHORT_TITLE\" = \"Cardiac mapping\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 5 and procedure short title is cardiac mapping?", "key": "b2e934b773dfc1622ee1e085f77413e1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 29], [2, 3, 0, "Other phototherapy"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "29", "and", "procedure", "short", "title", "is", "other", "phototherapy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"29\"", "and", "procedures.\"short_title\"", "=", "\"other", "phototherapy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"29\" AND PROCEDURES.\"SHORT_TITLE\" = \"Other phototherapy\"", "question_refine": "how many patients whose days of hospital stay is greater than 29 and procedure short title is other phototherapy?", "key": "fad24dd6eb2199496ab48e9f939bbcbf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 7], [2, 3, 0, "Opn rt hemicolectomy NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "7", "and", "procedure", "short", "title", "is", "opn", "rt", "hemicolectomy", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"7\"", "and", "procedures.\"short_title\"", "=", "\"opn", "rt", "hemicolectomy", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"7\" AND PROCEDURES.\"SHORT_TITLE\" = \"Opn rt hemicolectomy NEC\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 7 and procedure short title is opn rt hemicolectomy nec?", "key": "da72dd6f1a919dd214205ddd76c1fecb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 2], [2, 3, 0, "Spinal tap"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "and", "procedure", "short", "title", "is", "spinal", "tap", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"2\"", "and", "procedures.\"short_title\"", "=", "\"spinal", "tap\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"2\" AND PROCEDURES.\"SHORT_TITLE\" = \"Spinal tap\"", "question_refine": "how many patients whose days of hospital stay is greater than 2 and procedure short title is spinal tap?", "key": "edd66e573f04138db3a6391166bb738f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 6], [2, 4, 0, "(Aorto)coronary bypass of two coronary arteries"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "procedure", "long", "title", "is", "(", "aorto)coronary", "bypass", "of", "two", "coronary", "arteries", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"6\"", "and", "procedures.\"long_title\"", "=", "\"(aorto)coronary", "bypass", "of", "two", "coronary", "arteries\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\" AND PROCEDURES.\"LONG_TITLE\" = \"(Aorto)coronary bypass of two coronary arteries\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 6 and procedure long title is (aorto)coronary bypass of two coronary arteries?", "key": "54ce39f4c645005a3d17f0482e1f5383"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 6], [2, 4, 0, "Biopsy of bone marrow"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "procedure", "long", "title", "is", "biopsy", "of", "bone", "marrow", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"6\"", "and", "procedures.\"long_title\"", "=", "\"biopsy", "of", "bone", "marrow\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\" AND PROCEDURES.\"LONG_TITLE\" = \"Biopsy of bone marrow\"", "question_refine": "how many patients whose days of hospital stay is greater than 6 and procedure long title is biopsy of bone marrow?", "key": "2a44491d8c1d55c9e20cc1d2115c84b6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 11], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "11", "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.\"days_stay\"", ">", "\"11\"", "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.\"DAYS_STAY\" > \"11\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "how many patients whose days of hospital stay is greater than 11 and drug type is base?", "key": "ec3578b74ba125edb15c75d2607c6cf9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 15], [3, 4, 0, "Niacin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "15", "and", "drug", "name", "is", "niacin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"15\"", "and", "prescriptions.\"drug\"", "=", "\"niacin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"15\" AND PRESCRIPTIONS.\"DRUG\" = \"Niacin\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 15 and drug name is niacin?", "key": "5e6ab8dcf34686e60141577187a71e1a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 0], [3, 4, 0, "Morphine Sulfate SR"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "0", "and", "drug", "name", "is", "morphine", "sulfate", "sr", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"0\"", "and", "prescriptions.\"drug\"", "=", "\"morphine", "sulfate", "sr\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"0\" AND PRESCRIPTIONS.\"DRUG\" = \"Morphine Sulfate SR\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 0 and drug name is morphine sulfate sr?", "key": "5b7f935ce9adca07af6a6c23b56638cb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 4], [3, 4, 0, "Labetalol HCl"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "and", "drug", "name", "is", "labetalol", "hcl", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"4\"", "and", "prescriptions.\"drug\"", "=", "\"labetalol", "hcl\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"4\" AND PRESCRIPTIONS.\"DRUG\" = \"Labetalol HCl\"", "question_refine": "how many patients whose days of hospital stay is greater than 4 and drug name is labetalol hcl?", "key": "9ab6a58eb013a46ef1c98284ab40987b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 13], [3, 4, 0, "Caphosol"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "13", "and", "drug", "name", "is", "caphosol", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"13\"", "and", "prescriptions.\"drug\"", "=", "\"caphosol\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"13\" AND PRESCRIPTIONS.\"DRUG\" = \"Caphosol\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 13 and drug name is caphosol?", "key": "64cc3596a548562a8c01ff418c4ee9b3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 0], [3, 4, 0, "traMADOL"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "0", "and", "drug", "name", "is", "tramadol", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"0\"", "and", "prescriptions.\"drug\"", "=", "\"tramadol\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"0\" AND PRESCRIPTIONS.\"DRUG\" = \"traMADOL\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 0 and drug name is tramadol?", "key": "a415eda2df097352c6343efd2ee4bbe4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 0], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "0", "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.\"days_stay\"", ">", "\"0\"", "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.\"DAYS_STAY\" > \"0\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "how many patients whose days of hospital stay is greater than 0 and drug route is neb?", "key": "8e0c76af70f5b05acc0242926ecc6ff4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 10], [3, 6, 0, "BOTH EYES"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "10", "and", "drug", "route", "is", "both", "eyes", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"10\"", "and", "prescriptions.\"route\"", "=", "\"both", "eyes\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"10\" AND PRESCRIPTIONS.\"ROUTE\" = \"BOTH EYES\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 10 and drug route is both eyes?", "key": "e2d7bcf72c5dce16fcd3f458084d78e0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 16], [3, 6, 0, "PO"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "16", "and", "drug", "route", "is", "po", "?"], "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.\"route\"", "=", "\"po\""], "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.\"ROUTE\" = \"PO\"", "question_refine": "how many patients whose days of hospital stay is greater than 16 and drug route is po?", "key": "d3428aee12282ed3d96fc2ac82f5aef3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 34], [3, 6, 0, "BOTH EYES"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "34", "and", "drug", "route", "is", "both", "eyes", "?"], "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.\"route\"", "=", "\"both", "eyes\""], "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.\"ROUTE\" = \"BOTH EYES\"", "question_refine": "how many patients whose days of hospital stay is greater than 34 and drug route is both eyes?", "key": "e5f5274d588a769185ea1aff4493990e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2139], [1, 3, 0, "Candidias urogenital NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2139", "and", "diagnoses", "short", "title", "is", "candidias", "urogenital", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2139\"", "and", "diagnoses.\"short_title\"", "=", "\"candidias", "urogenital", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2139\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Candidias urogenital NEC\"", "question_refine": "what is the number of patients whose admission year is less than 2139 and diagnoses short title is candidias urogenital nec?", "key": "4100094ccb9dadf414d4b4c2e39f4151"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2154], [1, 3, 0, "Abn reac-organ rem NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2154", "and", "diagnoses", "short", "title", "is", "abn", "reac", "-", "organ", "rem", "nec", "?"], "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\"", "=", "\"abn", "reac-organ", "rem", "nec\""], "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\" = \"Abn reac-organ rem NEC\"", "question_refine": "provide the number of patients whose admission year is less than 2154 and diagnoses short title is abn reac-organ rem nec?", "key": "427da425361dfd47817abf1e80ff1d8a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2152], [1, 3, 0, "BPH w/o urinary obs/LUTS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2152", "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.\"admityear\"", "<", "\"2152\"", "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.\"ADMITYEAR\" < \"2152\" AND DIAGNOSES.\"SHORT_TITLE\" = \"BPH w/o urinary obs/LUTS\"", "question_refine": "give me the number of patients whose admission year is less than 2152 and diagnoses short title is bph w/o urinary obs/luts?", "key": "84e3ae614ae99e12df74dda2de7207cd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2168], [1, 3, 0, "Other postop infection"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2168", "and", "diagnoses", "short", "title", "is", "other", "postop", "infection", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2168\"", "and", "diagnoses.\"short_title\"", "=", "\"other", "postop", "infection\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2168\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Other postop infection\"", "question_refine": "give me the number of patients whose admission year is less than 2168 and diagnoses short title is other postop infection?", "key": "db7a11da647849c970fe662b44253b89"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2119], [1, 3, 0, "Septic shock"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2119", "and", "diagnoses", "short", "title", "is", "septic", "shock", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2119\"", "and", "diagnoses.\"short_title\"", "=", "\"septic", "shock\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2119\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Septic shock\"", "question_refine": "give me the number of patients whose admission year is less than 2119 and diagnoses short title is septic shock?", "key": "e94ddc0420bacde468a4aeb09dfd31aa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2156], [1, 3, 0, "End stage renal disease"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2156", "and", "diagnoses", "short", "title", "is", "end", "stage", "renal", "disease", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2156\"", "and", "diagnoses.\"short_title\"", "=", "\"end", "stage", "renal", "disease\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2156\" AND DIAGNOSES.\"SHORT_TITLE\" = \"End stage renal disease\"", "question_refine": "how many patients whose admission year is less than 2156 and diagnoses short title is end stage renal disease?", "key": "82aadfda89214e944236208a17e79c41"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2167], [1, 3, 0, "Pressure ulcer, hip"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2167", "and", "diagnoses", "short", "title", "is", "pressure", "ulcer", ",", "hip", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2167\"", "and", "diagnoses.\"short_title\"", "=", "\"pressure", "ulcer", "hip\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2167\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Pressure ulcer, hip\"", "question_refine": "provide the number of patients whose admission year is less than 2167 and diagnoses short title is pressure ulcer, hip?", "key": "0f533a4efe5b16ca5cac6a6fd8a1fa29"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2195], [2, 3, 0, "Clo endosc bx bile duct"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2195", "and", "procedure", "short", "title", "is", "clo", "endosc", "bx", "bile", "duct", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2195\"", "and", "procedures.\"short_title\"", "=", "\"clo", "endosc", "bx", "bile", "duct\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2195\" AND PROCEDURES.\"SHORT_TITLE\" = \"Clo endosc bx bile duct\"", "question_refine": "count the number of patients whose admission year is less than 2195 and procedure short title is clo endosc bx bile duct?", "key": "f56e7c7d02d1680bf0394fcb4c7b8c09"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2180], [2, 3, 0, "Thoracentesis"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2180", "and", "procedure", "short", "title", "is", "thoracentesis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2180\"", "and", "procedures.\"short_title\"", "=", "\"thoracentesis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2180\" AND PROCEDURES.\"SHORT_TITLE\" = \"Thoracentesis\"", "question_refine": "count the number of patients whose admission year is less than 2180 and procedure short title is thoracentesis?", "key": "70ee482c276557d3a4ecc22a8d53d243"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2162], [2, 3, 0, "Int insert dual-cham dev"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2162", "and", "procedure", "short", "title", "is", "int", "insert", "dual", "-", "cham", "dev", "?"], "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.\"short_title\"", "=", "\"int", "insert", "dual-cham", "dev\""], "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.\"SHORT_TITLE\" = \"Int insert dual-cham dev\"", "question_refine": "what is the number of patients whose admission year is less than 2162 and procedure short title is int insert dual-cham dev?", "key": "62fdce6133fee96a3bf2be9a1f58f1bf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2123], [2, 4, 0, "Percutaneous transluminal coronary angioplasty [PTCA]"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2123", "and", "procedure", "long", "title", "is", "percutaneous", "transluminal", "coronary", "angioplasty", "[", "ptca", "]", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2123\"", "and", "procedures.\"long_title\"", "=", "\"percutaneous", "transluminal", "coronary", "angioplasty", "[ptca]\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2123\" AND PROCEDURES.\"LONG_TITLE\" = \"Percutaneous transluminal coronary angioplasty [PTCA]\"", "question_refine": "provide the number of patients whose admission year is less than 2123 and procedure long title is percutaneous transluminal coronary angioplasty [ptca]?", "key": "12c4d44e08657ce2af64038c15943b02"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2139], [2, 4, 0, "Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2139", "and", "procedure", "long", "title", "is", "other", "closed", "[", "endoscopic", "]", "biopsy", "of", "biliary", "duct", "or", "sphincter", "of", "oddi", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2139\"", "and", "procedures.\"long_title\"", "=", "\"other", "closed", "[endoscopic]", "biopsy", "of", "biliary", "duct", "or", "sphincter", "of", "oddi\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2139\" AND PROCEDURES.\"LONG_TITLE\" = \"Other closed [endoscopic] biopsy of biliary duct or sphincter of Oddi\"", "question_refine": "what is the number of patients whose admission year is less than 2139 and procedure long title is other closed [endoscopic] biopsy of biliary duct or sphincter of oddi?", "key": "94e25e541838cbaa3cbd811f8910b79e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2146], [2, 4, 0, "Repair of fistula involving bladder and intestine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2146", "and", "procedure", "long", "title", "is", "repair", "of", "fistula", "involving", "bladder", "and", "intestine", "?"], "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.\"long_title\"", "=", "\"repair", "of", "fistula", "involving", "bladder", "and", "intestine\""], "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.\"LONG_TITLE\" = \"Repair of fistula involving bladder and intestine\"", "question_refine": "how many patients whose admission year is less than 2146 and procedure long title is repair of fistula involving bladder and intestine?", "key": "2e1710f8f12bab61552029f4fc1523e6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2179], [2, 4, 0, "Endovascular (total) embolization or occlusion of head and neck vessels"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2179", "and", "procedure", "long", "title", "is", "endovascular", "(", "total", ")", "embolization", "or", "occlusion", "of", "head", "and", "neck", "vessels", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2179\"", "and", "procedures.\"long_title\"", "=", "\"endovascular", "(total)", "embolization", "or", "occlusion", "of", "head", "and", "neck", "vessels\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2179\" AND PROCEDURES.\"LONG_TITLE\" = \"Endovascular (total) embolization or occlusion of head and neck vessels\"", "question_refine": "provide the number of patients whose admission year is less than 2179 and procedure long title is endovascular (total) embolization or occlusion of head and neck vessels?", "key": "40facd461112dae112da9f353549dbd8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2190], [2, 4, 0, "Other diagnostic procedures on nasal sinuses"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2190", "and", "procedure", "long", "title", "is", "other", "diagnostic", "procedures", "on", "nasal", "sinuses", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2190\"", "and", "procedures.\"long_title\"", "=", "\"other", "diagnostic", "procedures", "on", "nasal", "sinuses\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2190\" AND PROCEDURES.\"LONG_TITLE\" = \"Other diagnostic procedures on nasal sinuses\"", "question_refine": "count the number of patients whose admission year is less than 2190 and procedure long title is other diagnostic procedures on nasal sinuses?", "key": "bb96bab6979f8d1d7b20bef3f6ab1ef5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2177], [2, 4, 0, "Implant of pulsation balloon"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2177", "and", "procedure", "long", "title", "is", "implant", "of", "pulsation", "balloon", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2177\"", "and", "procedures.\"long_title\"", "=", "\"implant", "of", "pulsation", "balloon\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2177\" AND PROCEDURES.\"LONG_TITLE\" = \"Implant of pulsation balloon\"", "question_refine": "give me the number of patients whose admission year is less than 2177 and procedure long title is implant of pulsation balloon?", "key": "2122c86a202668d5875810e323f81c63"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2194], [3, 4, 0, "Magnesium Sulfate Replacement (Oncology)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2194", "and", "drug", "name", "is", "magnesium", "sulfate", "replacement", "(", "oncology", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2194\"", "and", "prescriptions.\"drug\"", "=", "\"magnesium", "sulfate", "replacement", "(oncology)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2194\" AND PRESCRIPTIONS.\"DRUG\" = \"Magnesium Sulfate Replacement (Oncology)\"", "question_refine": "provide the number of patients whose admission year is less than 2194 and drug name is magnesium sulfate replacement (oncology)?", "key": "8048d44d132ba4da5691b9a68e473eba"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2176], [3, 4, 0, "Montelukast Sodium"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2176", "and", "drug", "name", "is", "montelukast", "sodium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2176\"", "and", "prescriptions.\"drug\"", "=", "\"montelukast", "sodium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2176\" AND PRESCRIPTIONS.\"DRUG\" = \"Montelukast Sodium\"", "question_refine": "what is the number of patients whose admission year is less than 2176 and drug name is montelukast sodium?", "key": "96d9fa1ab52cff59ed8b1168e34ec4f6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2170], [3, 4, 0, "Clopidogrel Bisulfate"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2170", "and", "drug", "name", "is", "clopidogrel", "bisulfate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2170\"", "and", "prescriptions.\"drug\"", "=", "\"clopidogrel", "bisulfate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2170\" AND PRESCRIPTIONS.\"DRUG\" = \"Clopidogrel Bisulfate\"", "question_refine": "what is the number of patients whose admission year is less than 2170 and drug name is clopidogrel bisulfate?", "key": "0684cc250c5702f45956826697d749d3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2180], [3, 4, 0, "CefazoLIN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2180", "and", "drug", "name", "is", "cefazolin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2180\"", "and", "prescriptions.\"drug\"", "=", "\"cefazolin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2180\" AND PRESCRIPTIONS.\"DRUG\" = \"CefazoLIN\"", "question_refine": "count the number of patients whose admission year is less than 2180 and drug name is cefazolin?", "key": "3f812ad1e7b29185a89ad38e0e4d2cdb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2198], [3, 4, 0, "Gentamicin Sulfate"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2198", "and", "drug", "name", "is", "gentamicin", "sulfate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2198\"", "and", "prescriptions.\"drug\"", "=", "\"gentamicin", "sulfate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2198\" AND PRESCRIPTIONS.\"DRUG\" = \"Gentamicin Sulfate\"", "question_refine": "how many patients whose admission year is less than 2198 and drug name is gentamicin sulfate?", "key": "79d74006be76f9ccf51f7301e4184aa0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2170], [3, 4, 0, "Clobetasol Propionate 0.05% Ointment"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2170", "and", "drug", "name", "is", "clobetasol", "propionate", "0.05", "%", "ointment", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2170\"", "and", "prescriptions.\"drug\"", "=", "\"clobetasol", "propionate", "0.05%", "ointment\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2170\" AND PRESCRIPTIONS.\"DRUG\" = \"Clobetasol Propionate 0.05% Ointment\"", "question_refine": "provide the number of patients whose admission year is less than 2170 and drug name is clobetasol propionate 0.05% ointment?", "key": "8f9acdab93d20f2be9c62232c1418c5b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2144], [4, 6, 0, "Heparin, LMW"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2144", "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.\"admityear\"", "<", "\"2144\"", "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.\"ADMITYEAR\" < \"2144\" AND LAB.\"LABEL\" = \"Heparin, LMW\"", "question_refine": "provide the number of patients whose admission year is less than 2144 and lab test name is heparin, lmw?", "key": "b08bc26a6f0a4a677878cad8a35d6c63"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2151], [4, 6, 0, "Granulocyte Count"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2151", "and", "lab", "test", "name", "is", "granulocyte", "count", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2151\"", "and", "lab.\"label\"", "=", "\"granulocyte", "count\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2151\" AND LAB.\"LABEL\" = \"Granulocyte Count\"", "question_refine": "what is the number of patients whose admission year is less than 2151 and lab test name is granulocyte count?", "key": "7a4b1dcc7a5f123844b1a9d78130590f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2127], [4, 6, 0, "Thyroxine (T4)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2127", "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\"", "<", "\"2127\"", "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\" < \"2127\" AND LAB.\"LABEL\" = \"Thyroxine (T4)\"", "question_refine": "count the number of patients whose admission year is less than 2127 and lab test name is thyroxine (t4)?", "key": "24812bdff654e2dba2339735f53e81ce"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2182], [4, 6, 0, "C4"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2182", "and", "lab", "test", "name", "is", "c4", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2182\"", "and", "lab.\"label\"", "=", "\"c4\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2182\" AND LAB.\"LABEL\" = \"C4\"", "question_refine": "what is the number of patients whose admission year is less than 2182 and lab test name is c4?", "key": "3236ca7d720929c0f146f877947e93ee"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2190], [4, 6, 0, "% Hemoglobin A1c"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2190", "and", "lab", "test", "name", "is", "%", "hemoglobin", "a1c", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2190\"", "and", "lab.\"label\"", "=", "\"%", "hemoglobin", "a1c\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2190\" AND LAB.\"LABEL\" = \"% Hemoglobin A1c\"", "question_refine": "give me the number of patients whose admission year is less than 2190 and lab test name is % hemoglobin a1c?", "key": "4fff1c4712c314924c473425274eee81"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2150], [4, 6, 0, "Cortisol"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2150", "and", "lab", "test", "name", "is", "cortisol", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2150\"", "and", "lab.\"label\"", "=", "\"cortisol\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2150\" AND LAB.\"LABEL\" = \"Cortisol\"", "question_refine": "count the number of patients whose admission year is less than 2150 and lab test name is cortisol?", "key": "b1bb1b38473a36c6cb8d1b37a1af6ad6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Urin tract infection NOS"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "urin", "tract", "infection", "nos", "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.\"short_title\"", "=", "\"urin", "tract", "infection", "nos\"", "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.\"SHORT_TITLE\" = \"Urin tract infection NOS\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "give me the number of patients whose diagnoses short title is urin tract infection nos and drug type is additive?", "key": "37fca4668b0829a3cbbec4746a34af9b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Poisoning-opiates NEC"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "poisoning", "-", "opiates", "nec", "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\"", "=", "\"poisoning-opiates", "nec\"", "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\" = \"Poisoning-opiates NEC\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "count the number of patients whose diagnoses short title is poisoning-opiates nec and drug type is main?", "key": "fbefbdfe3ab79f0e5a15c2d1027cff4f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Ulcer of heel & midfoot"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "ulcer", "of", "heel", "&", "midfoot", "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\"", "=", "\"ulcer", "of", "heel", "&", "midfoot\"", "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\" = \"Ulcer of heel & midfoot\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose diagnoses short title is ulcer of heel & midfoot and drug type is base?", "key": "d0cb410a3675afa164a801100f61802b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Adv eff cardiovasc NEC"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "adv", "eff", "cardiovasc", "nec", "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\"", "=", "\"adv", "eff", "cardiovasc", "nec\"", "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\" = \"Adv eff cardiovasc NEC\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "provide the number of patients whose diagnoses short title is adv eff cardiovasc nec and drug type is base?", "key": "71d70b338385c490e0fa5818bd8954df"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Hx TIA/stroke w/o resid"], [3, 4, 0, "Warfarin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "hx", "tia", "/", "stroke", "w/o", "resid", "and", "drug", "name", "is", "warfarin", "?"], "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\"", "=", "\"hx", "tia/stroke", "w/o", "resid\"", "and", "prescriptions.\"drug\"", "=", "\"warfarin\""], "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\" = \"Hx TIA/stroke w/o resid\" AND PRESCRIPTIONS.\"DRUG\" = \"Warfarin\"", "question_refine": "provide the number of patients whose diagnoses short title is hx tia/stroke w/o resid and drug name is warfarin?", "key": "8d6889fe421f4c94dc55fcd98a0b6219"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Crbl art ocl NOS w infrc"], [3, 6, 0, "SC"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "crbl", "art", "ocl", "nos", "w", "infrc", "and", "drug", "route", "is", "sc", "?"], "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\"", "=", "\"crbl", "art", "ocl", "nos", "w", "infrc\"", "and", "prescriptions.\"route\"", "=", "\"sc\""], "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\" = \"Crbl art ocl NOS w infrc\" AND PRESCRIPTIONS.\"ROUTE\" = \"SC\"", "question_refine": "count the number of patients whose diagnoses short title is crbl art ocl nos w infrc and drug route is sc?", "key": "76dc5de96ef0abd83df3cc52791de411"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Ca in situ oral cav/phar"], [3, 6, 0, "IM"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "ca", "in", "situ", "oral", "cav", "/", "phar", "and", "drug", "route", "is", "i", "m", "?"], "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\"", "=", "\"ca", "in", "situ", "oral", "cav/phar\"", "and", "prescriptions.\"route\"", "=", "\"im\""], "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\" = \"Ca in situ oral cav/phar\" AND PRESCRIPTIONS.\"ROUTE\" = \"IM\"", "question_refine": "count the number of patients whose diagnoses short title is ca in situ oral cav/phar and drug route is im?", "key": "8f33172e5cfd88dae55caea63bb8ae38"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Noninf gastroenterit NEC"], [3, 6, 0, "ORAL"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "noninf", "gastroenterit", "nec", "and", "drug", "route", "is", "oral", "?"], "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\"", "=", "\"noninf", "gastroenterit", "nec\"", "and", "prescriptions.\"route\"", "=", "\"oral\""], "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\" = \"Noninf gastroenterit NEC\" AND PRESCRIPTIONS.\"ROUTE\" = \"ORAL\"", "question_refine": "give me the number of patients whose diagnoses short title is noninf gastroenterit nec and drug route is oral?", "key": "c39eb5c07626b375cc28424dd91da2b5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Crbl art ocl NOS w infrc"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "crbl", "art", "ocl", "nos", "w", "infrc", "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.\"short_title\"", "=", "\"crbl", "art", "ocl", "nos", "w", "infrc\"", "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.\"SHORT_TITLE\" = \"Crbl art ocl NOS w infrc\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses short title is crbl art ocl nos w infrc and lab test abnormal status is abnormal?", "key": "d72765a5d55e246786426d2d3169ec30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Heart valve replac NEC"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "heart", "valve", "replac", "nec", "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.\"short_title\"", "=", "\"heart", "valve", "replac", "nec\"", "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.\"SHORT_TITLE\" = \"Heart valve replac NEC\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "give me the number of patients whose diagnoses short title is heart valve replac nec and lab test abnormal status is delta?", "key": "d6ca8becf215e511e8bbafab5721f24d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "AMI inferolateral, init"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "ami", "inferolateral", ",", "init", "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.\"short_title\"", "=", "\"ami", "inferolateral", "init\"", "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.\"SHORT_TITLE\" = \"AMI inferolateral, init\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "provide the number of patients whose diagnoses short title is ami inferolateral, init and lab test category is chemistry?", "key": "ad4b076a67c842c57e57d31e52fad53b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 2], "cond": [[1, 4, 0, "Encephalopathy, unspecified"], [2, 3, 0, "Spinal tap"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "encephalopathy", ",", "unspecified", "and", "procedure", "short", "title", "is", "spinal", "tap", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"encephalopathy", "unspecified\"", "and", "procedures.\"short_title\"", "=", "\"spinal", "tap\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Encephalopathy, unspecified\" AND PROCEDURES.\"SHORT_TITLE\" = \"Spinal tap\"", "question_refine": "what is the number of patients whose diagnoses long title is encephalopathy, unspecified and procedure short title is spinal tap?", "key": "b2a6ae72177163de047eccc48a036c30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Abdominal pain, other specified site"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "abdominal", "pain", ",", "other", "specified", "site", "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.\"long_title\"", "=", "\"abdominal", "pain", "other", "specified", "site\"", "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.\"LONG_TITLE\" = \"Abdominal pain, other specified site\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "what is the number of patients whose diagnoses long title is abdominal pain, other specified site and drug type is main?", "key": "e0f5e12e3bdbe972a3dffc3ffec9dd3c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Other dysphagia"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "other", "dysphagia", "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.\"long_title\"", "=", "\"other", "dysphagia\"", "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.\"LONG_TITLE\" = \"Other dysphagia\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose diagnoses long title is other dysphagia and drug type is base?", "key": "d9adfedbb2afe95094ae8ba14459eee2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Human immunodeficiency virus [HIV] disease"], [3, 6, 0, "NU"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "human", "immunodeficiency", "virus", "[", "hiv", "]", "disease", "and", "drug", "route", "is", "nu", "?"], "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\"", "=", "\"human", "immunodeficiency", "virus", "[hiv]", "disease\"", "and", "prescriptions.\"route\"", "=", "\"nu\""], "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\" = \"Human immunodeficiency virus [HIV] disease\" AND PRESCRIPTIONS.\"ROUTE\" = \"NU\"", "question_refine": "count the number of patients whose diagnoses long title is human immunodeficiency virus [hiv] disease and drug route is nu?", "key": "7a579974c9b7b3302b64cf2ffa4d390f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Osteoarthrosis, unspecified whether generalized or localized, site unspecified"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "osteoarthrosis", ",", "unspecified", "whether", "generalized", "or", "localized", ",", "site", "unspecified", "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\"", "=", "\"osteoarthrosis", "unspecified", "whether", "generalized", "or", "localized", "site", "unspecified\"", "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\" = \"Osteoarthrosis, unspecified whether generalized or localized, site unspecified\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "what is the number of patients whose diagnoses long title is osteoarthrosis, unspecified whether generalized or localized, site unspecified and lab test abnormal status is abnormal?", "key": "f946c12c43e4f32b7e596b3464f6d453"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Wegener's granulomatosis"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "wegener", "'s", "granulomatosis", "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\"", "=", "\"wegener's", "granulomatosis\"", "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\" = \"Wegener's granulomatosis\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "give me the number of patients whose diagnoses long title is wegener's granulomatosis and lab test category is hematology?", "key": "7c422ca5adf597749d65a8cb3ec8f313"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Other preterm infants, 1,750-1,999 grams"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "other", "preterm", "infants", ",", "1,750", "-", "1,999", "grams", "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\"", "=", "\"other", "preterm", "infants", "1", "750-1", "999", "grams\"", "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\" = \"Other preterm infants, 1,750-1,999 grams\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "how many patients whose diagnoses long title is other preterm infants, 1,750-1,999 grams and lab test category is hematology?", "key": "5f0aecb63f00e3ddaabe964b86e8cbad"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Residual foreign body in soft tissue"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "residual", "foreign", "body", "in", "soft", "tissue", "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\"", "=", "\"residual", "foreign", "body", "in", "soft", "tissue\"", "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\" = \"Residual foreign body in soft tissue\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "give me the number of patients whose diagnoses long title is residual foreign body in soft tissue and lab test category is blood gas?", "key": "2fd024b49b43e2dc395e2b9c27d000b6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Interstitial emphysema and related conditions"], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "interstitial", "emphysema", "and", "related", "conditions", "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\"", "=", "\"interstitial", "emphysema", "and", "related", "conditions\"", "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\" = \"Interstitial emphysema and related conditions\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "provide the number of patients whose diagnoses long title is interstitial emphysema and related conditions and lab test category is blood gas?", "key": "3aae548bf5d23991ff516e96fc312c1e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Morbid obesity"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "morbid", "obesity", "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.\"long_title\"", "=", "\"morbid", "obesity\"", "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.\"LONG_TITLE\" = \"Morbid obesity\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "count the number of patients whose diagnoses long title is morbid obesity and lab test category is chemistry?", "key": "dac93f2296cbfbd773c0717ee3224639"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "BASE"], [4, 6, 0, "Other Cell"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "drug", "type", "is", "base", "and", "lab", "test", "name", "is", "other", "cell", "?"], "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\"", "=", "\"base\"", "and", "lab.\"label\"", "=", "\"other", "cell\""], "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\" = \"BASE\" AND LAB.\"LABEL\" = \"Other Cell\"", "question_refine": "count the number of patients whose drug type is base and lab test name is other cell?", "key": "4b1e72cd06d6b4524a4dc8e32b039dc5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "MAIN"], [4, 6, 0, "Ammonia"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "type", "is", "main", "and", "lab", "test", "name", "is", "ammonia", "?"], "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\"", "=", "\"ammonia\""], "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\" = \"Ammonia\"", "question_refine": "give me the number of patients whose drug type is main and lab test name is ammonia?", "key": "c07160d198cc25370511b07a7625a86e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "MAIN"], [4, 6, 0, "Reticulocyte Count, Manual"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "type", "is", "main", "and", "lab", "test", "name", "is", "reticulocyte", "count", ",", "manual", "?"], "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\"", "=", "\"reticulocyte", "count", "manual\""], "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\" = \"Reticulocyte Count, Manual\"", "question_refine": "give me the number of patients whose drug type is main and lab test name is reticulocyte count, manual?", "key": "743e7b67c9ad4cedf1b116a34d215c02"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "MAIN"], [4, 6, 0, "Total Protein, Urine"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "type", "is", "main", "and", "lab", "test", "name", "is", "total", "protein", ",", "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\"", "=", "\"total", "protein", "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\" = \"Total Protein, Urine\"", "question_refine": "give me the number of patients whose drug type is main and lab test name is total protein, urine?", "key": "89b79c124b9fbca851ba5616d9f9beba"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 3, 0, "MAIN"], [4, 6, 0, "Total Protein, CSF"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "type", "is", "main", "and", "lab", "test", "name", "is", "total", "protein", ",", "csf", "?"], "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\"", "=", "\"total", "protein", "csf\""], "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\" = \"Total Protein, CSF\"", "question_refine": "give me the number of patients whose drug type is main and lab test name is total protein, csf?", "key": "d9b616b4fc406af58005c986b43528db"}
{"format": {"agg_col": [[0, 17]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "death", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is date of death of subject id 2560?", "key": "67c736a6f4e5e4473ee1e7cc26c05b5e"}
{"format": {"agg_col": [[0, 9], [0, 17]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "date", "of", "death", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"dod\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DOD\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and date of death of subject id 2560?", "key": "6c1a4019c9752aefec8106892db753f0"}
{"format": {"agg_col": [[0, 6], [0, 11]], "table": [0], "cond": [[0, 0, 0, 81923]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "insurance", "of", "subject", "i", "d", "81923", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"81923\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"81923\"", "question_refine": "what is gender and insurance of subject id 81923?", "key": "778e2189c47cd48d240a9341791cba25"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 0, 0, 29961]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "i", "d", "29961", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"29961\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"29961\"", "question_refine": "what is admission time of subject id 29961?", "key": "f835d16e0a87c71ecd874c2f9bc4a145"}
{"format": {"agg_col": [[0, 5], [0, 14]], "table": [0], "cond": [[0, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "location", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is date of birth and admission location of subject id 3343?", "key": "fedc7c6bd2c273480fd26c160fac4b3e"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is procedure short title of subject id 74032?", "key": "1da51c6d4fbd91753a91c335c9528835"}
{"format": {"agg_col": [[0, 10], [4, 4]], "table": [0, 4], "cond": [[0, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "lab.\"flag\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",LAB.\"FLAG\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is days of hospital stay and lab test abnormal status of subject id 74032?", "key": "659cbaf60b655535d03152dd92522d8b"}
{"format": {"agg_col": [[0, 20], [3, 7]], "table": [0, 3], "cond": [[0, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "drug", "dose", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "prescriptions.\"drug_dose\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",PRESCRIPTIONS.\"DRUG_DOSE\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is admission time and drug dose of subject id 74032?", "key": "9766f65ef8ac9782c4d77d5140943ca2"}
{"format": {"agg_col": [[2, 4], [3, 2]], "table": [2, 3], "cond": [[2, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "and", "icu", "stay", "i", "d", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "prescriptions.\"icustay_id\"", "from", "procedures", "inner", "join", "prescriptions", "on", "procedures.hadm_id", "=", "prescriptions.hadm_id", "where", "procedures.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\",PRESCRIPTIONS.\"ICUSTAY_ID\" FROM PROCEDURES INNER JOIN PRESCRIPTIONS on PROCEDURES.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PROCEDURES.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is procedure long title and icu stay id of subject id 74032?", "key": "dadf24528f301f6d49eff440e8ab8489"}
{"format": {"agg_col": [[3, 2], [3, 3]], "table": [3], "cond": [[3, 0, 0, 74032]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "and", "drug", "type", "of", "subject", "i", "d", "74032", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"74032\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\",PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"74032\"", "question_refine": "what is icu stay id and drug type of subject id 74032?", "key": "f2a104d87723f348b0ef34c938f922c2"}
{"format": {"agg_col": [[0, 10], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 52012]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "52012", "?"], "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\"", "=", "\"52012\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"52012\"", "question_refine": "what is days of hospital stay and diagnoses short title of subject id 52012?", "key": "2ec0f0b5be3791125b6a4d634004887b"}
{"format": {"agg_col": [[0, 9], [0, 13]], "table": [0], "cond": [[0, 0, 0, 16438]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "death", "status", "of", "subject", "i", "d", "16438", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"16438\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"16438\"", "question_refine": "what is admission type and death status of subject id 16438?", "key": "4787daf372f3f1e08135416fd6010671"}
{"format": {"agg_col": [[0, 2], [4, 3]], "table": [0, 4], "cond": [[0, 0, 0, 2110]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "lab", "test", "chart", "time", "of", "subject", "i", "d", "2110", "?"], "sql_tok": ["select", "demographic.\"name\"", "lab.\"charttime\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2110\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",LAB.\"CHARTTIME\" 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 chart time of subject id 2110?", "key": "66379c84c6761e5309ba5992a26e4ac2"}
{"format": {"agg_col": [[0, 12]], "table": [0], "cond": [[0, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is ethnicity of subject id 55094?", "key": "7d4514e883626263a436da907d3e3c05"}
{"format": {"agg_col": [[0, 9], [0, 14]], "table": [0], "cond": [[0, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "location", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is admission type and admission location of subject id 55094?", "key": "3ba0eba13032cd7c691dc20776e2df9f"}
{"format": {"agg_col": [[0, 10], [0, 14]], "table": [0], "cond": [[0, 0, 0, 55094]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "location", "of", "subject", "i", "d", "55094", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"55094\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"55094\"", "question_refine": "what is days of hospital stay and admission location of subject id 55094?", "key": "2545d68d28d95f3656e0e83d0a303686"}
{"format": {"agg_col": [[0, 4], [0, 11]], "table": [0], "cond": [[0, 0, 0, 31066]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "insurance", "of", "subject", "i", "d", "31066", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"31066\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"31066\"", "question_refine": "what is age and insurance of subject id 31066?", "key": "d3d59af266ec917ceecf8fae640bb2c9"}
{"format": {"agg_col": [[0, 20], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 30011]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "30011", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"30011\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"30011\"", "question_refine": "what is admission time and diagnoses short title of subject id 30011?", "key": "4a4094e21a6b09778c7e743ef99c8d43"}
{"format": {"agg_col": [[0, 2], [0, 4]], "table": [0], "cond": [[0, 0, 0, 81254]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "and", "age", "of", "subject", "i", "d", "81254", "?"], "sql_tok": ["select", "demographic.\"name\"", "demographic.\"age\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"81254\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\",DEMOGRAPHIC.\"AGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"81254\"", "question_refine": "what is subject name and age of subject id 81254?", "key": "15c7a99a1daf5318d4953dff69166611"}
{"format": {"agg_col": [[0, 10], [0, 21]], "table": [0], "cond": [[0, 0, 0, 9575]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "discharge", "time", "of", "subject", "i", "d", "9575", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"9575\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"9575\"", "question_refine": "what is days of hospital stay and discharge time of subject id 9575?", "key": "d60ddff280f9cfeb3f201e38ae43103d"}
{"format": {"agg_col": [[0, 5], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 66411]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "66411", "?"], "sql_tok": ["select", "demographic.\"dob\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"66411\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"66411\"", "question_refine": "what is date of birth and diagnoses icd9 code of subject id 66411?", "key": "68c99990db1a7c3f4df2f7a98be5703e"}
{"format": {"agg_col": [[0, 5], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 66411]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "66411", "?"], "sql_tok": ["select", "demographic.\"dob\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"66411\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"66411\"", "question_refine": "what is date of birth and diagnoses short title of subject id 66411?", "key": "b432007988ac14d4ac20a48c87ea0c44"}
{"format": {"agg_col": [[0, 5], [0, 6]], "table": [0], "cond": [[0, 0, 0, 17519]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "gender", "of", "subject", "i", "d", "17519", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17519\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17519\"", "question_refine": "what is date of birth and gender of subject id 17519?", "key": "c4e8f944083efdfb61a2ceca3877073c"}
{"format": {"agg_col": [[0, 6], [0, 8]], "table": [0], "cond": [[0, 0, 0, 71798]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "and", "religion", "of", "subject", "i", "d", "71798", "?"], "sql_tok": ["select", "demographic.\"gender\"", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"71798\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\",DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"71798\"", "question_refine": "what is gender and religion of subject id 71798?", "key": "5d5ff1cb3fad5f953b42fb8ba4e4f3c0"}
{"format": {"agg_col": [[0, 16]], "table": [0], "cond": [[0, 0, 0, 92796]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "of", "subject", "i", "d", "92796", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"92796\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"92796\"", "question_refine": "what is primary disease of subject id 92796?", "key": "5ea6bbf8e5194001b4365ae4b5f97c23"}
{"format": {"agg_col": [[0, 3], [0, 5]], "table": [0], "cond": [[0, 0, 0, 92796]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "date", "of", "birth", "of", "subject", "i", "d", "92796", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"92796\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"92796\"", "question_refine": "what is marital status and date of birth of subject id 92796?", "key": "fb33f03a3eff71239aa2854e1f80f72c"}
{"format": {"agg_col": [[0, 14], [0, 15]], "table": [0], "cond": [[0, 0, 0, 4589]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "discharge", "location", "of", "subject", "i", "d", "4589", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"4589\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"4589\"", "question_refine": "what is admission location and discharge location of subject id 4589?", "key": "3577c4c8c285b0dad7abf86b242c5756"}
{"format": {"agg_col": [[0, 15], [0, 16]], "table": [0], "cond": [[0, 0, 0, 91588]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "location", "and", "primary", "disease", "of", "subject", "i", "d", "91588", "?"], "sql_tok": ["select", "demographic.\"discharge_location\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"91588\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHARGE_LOCATION\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"91588\"", "question_refine": "what is discharge location and primary disease of subject id 91588?", "key": "271be6ecfeb4cf80e3f1f67dd241b64a"}
{"format": {"agg_col": [[0, 11]], "table": [0], "cond": [[0, 0, 0, 7578]], "sel": 0}, "question_refine_tok": ["what", "is", "insurance", "of", "subject", "i", "d", "7578", "?"], "sql_tok": ["select", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"7578\""], "sql": "SELECT DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"7578\"", "question_refine": "what is insurance of subject id 7578?", "key": "97f60050f98d63f539a43ba001ec748a"}
{"format": {"agg_col": [[0, 16], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 18077]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "18077", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18077\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18077\"", "question_refine": "what is primary disease and procedure icd9 code of subject id 18077?", "key": "4f47634496413da81de95871c42a237f"}
{"format": {"agg_col": [[0, 5], [0, 6]], "table": [0], "cond": [[0, 0, 0, 17570]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "gender", "of", "subject", "i", "d", "17570", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17570\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17570\"", "question_refine": "what is date of birth and gender of subject id 17570?", "key": "186398cf774e32c7e2a8605db0f9bd28"}
{"format": {"agg_col": [[0, 9], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 28588]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "28588", "?"], "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\"", "=", "\"28588\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"28588\"", "question_refine": "what is admission type and diagnoses icd9 code of subject id 28588?", "key": "6611b616560193aea09377f8cf86521b"}
{"format": {"agg_col": [[0, 4], [0, 7]], "table": [0], "cond": [[0, 0, 0, 17595]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "language", "of", "subject", "i", "d", "17595", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"17595\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"17595\"", "question_refine": "what is age and language of subject id 17595?", "key": "13d7568f21e2effcc05863e7e0b54f81"}
{"format": {"agg_col": [[0, 9], [1, 3]], "table": [0, 1], "cond": [[0, 0, 0, 18372]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "diagnoses", "short", "title", "of", "subject", "i", "d", "18372", "?"], "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\"", "=", "\"18372\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18372\"", "question_refine": "what is admission type and diagnoses short title of subject id 18372?", "key": "b2d82caa81fd21dce030820bdf5936e8"}
{"format": {"agg_col": [[0, 16], [4, 7]], "table": [0, 4], "cond": [[0, 0, 0, 18372]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "lab", "test", "fluid", "of", "subject", "i", "d", "18372", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "lab.\"fluid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"18372\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",LAB.\"FLUID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18372\"", "question_refine": "what is primary disease and lab test fluid of subject id 18372?", "key": "ec53ffd718b3d08414838e7e88b443ca"}
{"format": {"agg_col": [[0, 16], [0, 20]], "table": [0], "cond": [[0, 0, 0, 53707]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "admission", "time", "of", "subject", "i", "d", "53707", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"53707\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"53707\"", "question_refine": "what is primary disease and admission time of subject id 53707?", "key": "56ebb8e72b5f43dba29074209672cc58"}
{"format": {"agg_col": [[0, 9]], "table": [0], "cond": [[0, 0, 0, 42963]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "of", "subject", "i", "d", "42963", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"42963\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"42963\"", "question_refine": "what is admission type of subject id 42963?", "key": "3e8cc5f6e9a971033e26ff0d47e5137c"}
{"format": {"agg_col": [[0, 16], [2, 4]], "table": [0, 2], "cond": [[0, 2, 0, "Morgan Mcgee"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "long", "title", "of", "subject", "name", "morgan", "mcgee", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"morgan", "mcgee\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Morgan Mcgee\"", "question_refine": "what is primary disease and procedure long title of subject name morgan mcgee?", "key": "229d74f96a5e03b1713d2f1f8e4ec310"}
{"format": {"agg_col": [[0, 10], [0, 13]], "table": [0], "cond": [[0, 2, 0, "Elizabeth Bateman"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "death", "status", "of", "subject", "name", "elizabeth", "bateman", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"expire_flag\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"elizabeth", "bateman\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"EXPIRE_FLAG\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Elizabeth Bateman\"", "question_refine": "what is days of hospital stay and death status of subject name elizabeth bateman?", "key": "e4f0056f68c08b98b60a919c1ae7a703"}
{"format": {"agg_col": [[0, 4], [0, 6]], "table": [0], "cond": [[0, 2, 0, "Paul Dunn"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "gender", "of", "subject", "name", "paul", "dunn", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "dunn\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Dunn\"", "question_refine": "what is age and gender of subject name paul dunn?", "key": "76e5a01554bff892ab8d4158e244d320"}
{"format": {"agg_col": [[0, 16], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Lue White"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "short", "title", "of", "subject", "name", "lue", "white", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"lue", "white\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Lue White\"", "question_refine": "what is primary disease and procedure short title of subject name lue white?", "key": "e07e728f05b5b2f1925d99ddbd2c7063"}
{"format": {"agg_col": [[3, 3]], "table": [0, 3], "cond": [[0, 2, 0, "Evelyn Lawrence"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "subject", "name", "evelyn", "lawrence", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"evelyn", "lawrence\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Evelyn Lawrence\"", "question_refine": "what is drug type of subject name evelyn lawrence?", "key": "c1be4cefce1d8cdd93c899c42e6f1860"}
{"format": {"agg_col": [[0, 5], [3, 2]], "table": [0, 3], "cond": [[0, 2, 0, "Troy Friedman"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "icu", "stay", "i", "d", "of", "subject", "name", "troy", "friedman", "?"], "sql_tok": ["select", "demographic.\"dob\"", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"troy", "friedman\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Troy Friedman\"", "question_refine": "what is date of birth and icu stay id of subject name troy friedman?", "key": "b147d59318dc9821394cc7f2787ad0f5"}
{"format": {"agg_col": [[0, 4], [0, 10]], "table": [0], "cond": [[0, 2, 0, "Gus Marques"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "days", "of", "hospital", "stay", "of", "subject", "name", "gus", "marques", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"gus", "marques\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Gus Marques\"", "question_refine": "what is age and days of hospital stay of subject name gus marques?", "key": "6ba46bab3f8997046eafc57b6e55ced1"}
{"format": {"agg_col": [[0, 4], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Lawrence Wibbens"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "admission", "time", "of", "subject", "name", "lawrence", "wibbens", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"lawrence", "wibbens\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Lawrence Wibbens\"", "question_refine": "what is age and admission time of subject name lawrence wibbens?", "key": "fbcb3a9a9a5fed5bc40073057a8ffe21"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Robert Hyden"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "name", "robert", "hyden", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"robert", "hyden\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Robert Hyden\"", "question_refine": "what is primary disease and diagnoses short title of subject name robert hyden?", "key": "5c63d22cd46a81911c379aa729ec70a3"}
{"format": {"agg_col": [[0, 5]], "table": [0], "cond": [[0, 2, 0, "Jane Dillard"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "of", "subject", "name", "jane", "dillard", "?"], "sql_tok": ["select", "demographic.\"dob\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jane", "dillard\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jane Dillard\"", "question_refine": "what is date of birth of subject name jane dillard?", "key": "3e94dfaf4abc3fce69fa53ef0ba42c2f"}
{"format": {"agg_col": [[2, 4]], "table": [0, 2], "cond": [[0, 2, 0, "Jane Dillard"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "long", "title", "of", "subject", "name", "jane", "dillard", "?"], "sql_tok": ["select", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"jane", "dillard\""], "sql": "SELECT PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jane Dillard\"", "question_refine": "what is procedure long title of subject name jane dillard?", "key": "e37649b895c95b8f43377ae5b9f00fbc"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Michelle Skidmore"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "name", "michelle", "skidmore", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"michelle", "skidmore\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Michelle Skidmore\"", "question_refine": "what is primary disease and diagnoses short title of subject name michelle skidmore?", "key": "dd554d8ffe1ef6df30ca9631013364b0"}
{"format": {"agg_col": [[0, 16], [1, 4]], "table": [0, 1], "cond": [[0, 2, 0, "Bryant Johnson"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "long", "title", "of", "subject", "name", "bryant", "johnson", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"bryant", "johnson\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Bryant Johnson\"", "question_refine": "what is primary disease and diagnoses long title of subject name bryant johnson?", "key": "2ef2406ab9d7f92cabae08da49d07165"}
{"format": {"agg_col": [[0, 3], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Hector Blair"]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "primary", "disease", "of", "subject", "name", "hector", "blair", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"hector", "blair\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Hector Blair\"", "question_refine": "what is marital status and primary disease of subject name hector blair?", "key": "3f88184b88929ecfca8b1ee47c806f1e"}
{"format": {"agg_col": [[0, 9], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Dawn Cooper"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "procedure", "short", "title", "of", "subject", "name", "dawn", "cooper", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"dawn", "cooper\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Dawn Cooper\"", "question_refine": "what is admission type and procedure short title of subject name dawn cooper?", "key": "ae7c128a9e2f46c26321c1cfa076df85"}
{"format": {"agg_col": [[0, 5], [0, 7]], "table": [0], "cond": [[0, 2, 0, "Kurt Buczek"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "language", "of", "subject", "name", "kurt", "buczek", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kurt", "buczek\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kurt Buczek\"", "question_refine": "what is date of birth and language of subject name kurt buczek?", "key": "2fffb8e73dced41393d5c26fe9b489b9"}
{"format": {"agg_col": [[0, 16], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Travis Hofman"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "short", "title", "of", "subject", "name", "travis", "hofman", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"travis", "hofman\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Travis Hofman\"", "question_refine": "what is primary disease and procedure short title of subject name travis hofman?", "key": "dca96a41007587e69353e5c37acfbed1"}
{"format": {"agg_col": [[0, 14]], "table": [0], "cond": [[0, 2, 0, "Edward Schafer"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "of", "subject", "name", "edward", "schafer", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"edward", "schafer\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Edward Schafer\"", "question_refine": "what is admission location of subject name edward schafer?", "key": "d509d973e30cd2642829a5303f1f1045"}
{"format": {"agg_col": [[1, 4]], "table": [1], "cond": [[1, 2, 0, "42731"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "42731", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"42731\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"42731\"", "question_refine": "what is diagnoses long title of diagnoses icd9 code 42731?", "key": "d4e03ea265e33fc7c0055a9c7ac61f23"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 2, 0, 3606]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "procedure", "icd9", "code", "3606", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"3606\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"3606\"", "question_refine": "what is procedure short title of procedure icd9 code 3606?", "key": "3d5a7c0d6c92b1e5ee5e963a01340451"}
{"format": {"agg_col": [[2, 3], [2, 4]], "table": [2], "cond": [[2, 2, 0, 3891]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "and", "procedure", "long", "title", "of", "procedure", "icd9", "code", "3891", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "procedures.\"long_title\"", "from", "procedures", "where", "procedures.\"icd9_code\"", "=", "\"3891\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\",PROCEDURES.\"LONG_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"ICD9_CODE\" = \"3891\"", "question_refine": "what is procedure short title and procedure long title of procedure icd9 code 3891?", "key": "59ccf22c57b74980b817d9aa8aa58ef6"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Fat Emulsion 20%"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "name", "fat", "emulsion", "20", "%", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"fat", "emulsion", "20%\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Fat Emulsion 20%\"", "question_refine": "what is drug type and drug route of drug name fat emulsion 20%?", "key": "790868ebd814998e1d38e783f25e930f"}
{"format": {"agg_col": [[3, 5], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Ferrous Sulfate"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "and", "drug", "route", "of", "drug", "name", "ferrous", "sulfate", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"ferrous", "sulfate\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Ferrous Sulfate\"", "question_refine": "what is drug code and drug route of drug name ferrous sulfate?", "key": "67ea0b85b0f254811ef48ff70dd3c155"}
{"format": {"agg_col": [[3, 6], [3, 7]], "table": [3], "cond": [[3, 4, 0, "Methylene Blue 1%"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "and", "drug", "dose", "of", "drug", "name", "methylene", "blue", "1", "%", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "prescriptions.\"drug_dose\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"methylene", "blue", "1%\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\",PRESCRIPTIONS.\"DRUG_DOSE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Methylene Blue 1%\"", "question_refine": "what is drug route and drug dose of drug name methylene blue 1%?", "key": "013ff37676bc0ef9a4f63e8056c83cfc"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Sulfameth/Trimethoprim DS"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "name", "sulfameth", "/", "trimethoprim", "ds", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"sulfameth/trimethoprim", "ds\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Sulfameth/Trimethoprim DS\"", "question_refine": "what is drug type and drug route of drug name sulfameth/trimethoprim ds?", "key": "572b3ff24e5dee2f6f8e662c25ece890"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Aloe Vesta 2-n-1 Skin Cond"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "aloe", "vesta", "2-n-1", "skin", "cond", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"aloe", "vesta", "2-n-1", "skin", "cond\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Aloe Vesta 2-n-1 Skin Cond\"", "question_refine": "what is drug code of drug name aloe vesta 2-n-1 skin cond?", "key": "ef5968e86e0085fbec35b41929000479"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 5, 0, "ONDA4I"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "code", "onda4i", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"onda4i\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ONDA4I\"", "question_refine": "what is drug type and drug route of drug code onda4i?", "key": "1c79807e83392ff26ee1ab57ed2a4f6c"}
{"format": {"agg_col": [[3, 3], [3, 4]], "table": [3], "cond": [[3, 5, 0, "PANT40"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "name", "of", "drug", "code", "pant40", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"drug\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"pant40\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"DRUG\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"PANT40\"", "question_refine": "what is drug type and drug name of drug code pant40?", "key": "20e27c3693eca2ae52019447bc73aac7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 18, 2, 2034]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2034", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", "<", "\"2034\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2034\"", "question_refine": "provide the number of patients whose year of birth is less than 2034?", "key": "bc11782065b72d6cbe29b86824680bf7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Abn react-surg proc NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "abn", "react", "-", "surg", "proc", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"abn", "react-surg", "proc", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Abn react-surg proc NEC\"", "question_refine": "provide the number of patients whose diagnoses short title is abn react-surg proc nec?", "key": "6f44bc2c150c9f46afdcd87e13e36a6a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Accident in place NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "accident", "in", "place", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"accident", "in", "place", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Accident in place NEC\"", "question_refine": "what is the number of patients whose diagnoses short title is accident in place nec?", "key": "1391e38640d12259e26ecff906eba132"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Retention urine NOS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "retention", "urine", "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\"", "=", "\"retention", "urine", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Retention urine NOS\"", "question_refine": "give me the number of patients whose diagnoses short title is retention urine nos?", "key": "75909521438c24ff0eca00952662c83b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Abnormal coagulation profile"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "abnormal", "coagulation", "profile", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"abnormal", "coagulation", "profile\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Abnormal coagulation profile\"", "question_refine": "provide the number of patients whose diagnoses long title is abnormal coagulation profile?", "key": "fed1b8f8e275926988fb95c2e0c476bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 3, 0, "Aortocor bypas-2 cor art"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "short", "title", "is", "aortocor", "bypas-2", "cor", "art", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"short_title\"", "=", "\"aortocor", "bypas-2", "cor", "art\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"SHORT_TITLE\" = \"Aortocor bypas-2 cor art\"", "question_refine": "provide the number of patients whose procedure short title is aortocor bypas-2 cor art?", "key": "318f42563d93b3f821c0a3d1ec3b8fc1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "AMBI5"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "ambi5", "?"], "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\"", "=", "\"ambi5\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"AMBI5\"", "question_refine": "provide the number of patients whose drug code is ambi5?", "key": "aeec1acac06b2d226515b44311fe39e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "SENN187"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "senn187", "?"], "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\"", "=", "\"senn187\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"SENN187\"", "question_refine": "give me the number of patients whose drug code is senn187?", "key": "5ae263a7e899146db64b9cee0143be7d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50801]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50801", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"itemid\"", "=", "\"50801\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50801\"", "question_refine": "what is the number of patients whose item id is 50801?", "key": "3367d5b29f7e4f12f72481d51a5411a4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Renal Epithelial Cells"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "lab", "test", "name", "is", "renal", "epithelial", "cells", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"renal", "epithelial", "cells\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Renal Epithelial Cells\"", "question_refine": "how many patients whose lab test name is renal epithelial cells?", "key": "f2fa788bb250839d5c4fe0524d0c4031"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "MESENTERIC ISCHEMIA"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "mesenteric", "ischemia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"mesenteric", "ischemia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"MESENTERIC ISCHEMIA\"", "question_refine": "what is the number of patients whose gender is f and primary disease is mesenteric ischemia?", "key": "3bff4792c35493da9407769236522036"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 2, 0, "28521"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "icd9", "code", "is", "28521", "?"], "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\"", "=", "\"28521\""], "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\" = \"28521\"", "question_refine": "how many patients whose gender is m and diagnoses icd9 code is 28521?", "key": "be1db365bf03cf4cf809e3ed1c9e46a6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 4, 0, "Sarcoidosis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "long", "title", "is", "sarcoidosis", "?"], "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.\"long_title\"", "=", "\"sarcoidosis\""], "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.\"LONG_TITLE\" = \"Sarcoidosis\"", "question_refine": "what is the number of patients whose gender is m and diagnoses long title is sarcoidosis?", "key": "528663d0638608ad9cab0213d15fd034"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "EMERGENCY"], [1, 4, 0, "Coronary atherosclerosis of native coronary artery"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "diagnoses", "long", "title", "is", "coronary", "atherosclerosis", "of", "native", "coronary", "artery", "?"], "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.\"long_title\"", "=", "\"coronary", "atherosclerosis", "of", "native", "coronary", "artery\""], "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.\"LONG_TITLE\" = \"Coronary atherosclerosis of native coronary artery\"", "question_refine": "give me the number of patients whose admission type is emergency and diagnoses long title is coronary atherosclerosis of native coronary artery?", "key": "401828c92d77789fb225c5ea093183af"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 6, 0, "Triglycer"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "lab", "test", "name", "is", "triglycer", "?"], "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\"", "=", "\"triglycer\""], "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\" = \"Triglycer\"", "question_refine": "count the number of patients whose admission type is elective and lab test name is triglycer?", "key": "83c3956465688f779952ef36c242122e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicare"], [2, 4, 0, "Initial insertion of transvenous lead [electrode] into ventricle"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "procedure", "long", "title", "is", "initial", "insertion", "of", "transvenous", "lead", "[", "electrode", "]", "into", "ventricle", "?"], "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.\"long_title\"", "=", "\"initial", "insertion", "of", "transvenous", "lead", "[electrode]", "into", "ventricle\""], "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.\"LONG_TITLE\" = \"Initial insertion of transvenous lead [electrode] into ventricle\"", "question_refine": "give me the number of patients whose insurance is medicare and procedure long title is initial insertion of transvenous lead [electrode] into ventricle?", "key": "0ec59a1c6cc945133eed9da853d54595"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA"], [0, 18, 2, 2095]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda", "and", "year", "of", "birth", "is", "less", "than", "2095", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2095\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2095\"", "question_refine": "how many patients whose primary disease is coronary artery disease\\coronary artery bypass graft /sda and year of birth is less than 2095?", "key": "bbc51ab961495653985401af895a8b22"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "COLANGITIS"], [0, 18, 2, 2111]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "colangitis", "and", "year", "of", "birth", "is", "less", "than", "2111", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"colangitis\"", "and", "demographic.\"dob_year\"", "<", "\"2111\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COLANGITIS\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2111\"", "question_refine": "give me the number of patients whose primary disease is colangitis and year of birth is less than 2111?", "key": "24f5349f1e417803b5da59d400c8aac0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SEPSIS"], [0, 18, 2, 2101]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sepsis", "and", "year", "of", "birth", "is", "less", "than", "2101", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"sepsis\"", "and", "demographic.\"dob_year\"", "<", "\"2101\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SEPSIS\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2101\"", "question_refine": "give me the number of patients whose primary disease is sepsis and year of birth is less than 2101?", "key": "9f4af890c8fda10483d0039ff85316f7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "PNEUMONIA"], [0, 19, 4, 2155.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pneumonia", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2155", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pneumonia\"", "and", "demographic.\"dod_year\"", "<=", "\"2155.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2155.0\"", "question_refine": "count the number of patients whose primary disease is pneumonia and year of death is less than or equal to 2155?", "key": "0922b04bb36dea14cfc2fc847801c79e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA"], [0, 19, 4, 2131.0]], "sel": 1}, "question_refine_tok": ["provide", "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", "2131", "?"], "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\"", "<=", "\"2131.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\" <= \"2131.0\"", "question_refine": "provide 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 2131?", "key": "93a5af8a2b4c6a1a500244ac3e8f1540"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "BOWEL OBSTRUCTION"], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bowel", "obstruction", "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\"", "=", "\"bowel", "obstruction\"", "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\" = \"BOWEL OBSTRUCTION\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "give me the number of patients whose primary disease is bowel obstruction and lab test fluid is blood?", "key": "1ad6d4493378299b27dc304b91bb31cd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "LEFT COLON CANCER"], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "left", "colon", "cancer", "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.\"diagnosis\"", "=", "\"left", "colon", "cancer\"", "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.\"DIAGNOSIS\" = \"LEFT COLON CANCER\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "what is the number of patients whose primary disease is left colon cancer and lab test fluid is urine?", "key": "5197c430b4fc0faf3495a0cfccea3748"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 76], [0, 10, 1, 27]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "76", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "27", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"76\"", "and", "demographic.\"days_stay\"", ">", "\"27\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"76\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"27\"", "question_refine": "provide the number of patients whose age is less than 76 and days of hospital stay is greater than 27?", "key": "cb4cd33873a4173d4b8ab67734ddb41e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 56], [3, 4, 0, "Benztropine Mesylate"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "56", "and", "drug", "name", "is", "benztropine", "mesylate", "?"], "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\"", "=", "\"benztropine", "mesylate\""], "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\" = \"Benztropine Mesylate\"", "question_refine": "give me the number of patients whose age is less than 56 and drug name is benztropine mesylate?", "key": "c3e4e578ac7965c82b91300abf2705c6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 86], [3, 4, 0, "D5NS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "86", "and", "drug", "name", "is", "d5ns", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"86\"", "and", "prescriptions.\"drug\"", "=", "\"d5ns\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"86\" AND PRESCRIPTIONS.\"DRUG\" = \"D5NS\"", "question_refine": "count the number of patients whose age is less than 86 and drug name is d5ns?", "key": "779b68e1631823b86d4d5078407e5e69"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 83], [3, 5, 0, "FENT100T"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "83", "and", "drug", "code", "is", "fent100", "t", "?"], "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\"", "=", "\"fent100t\""], "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\" = \"FENT100T\"", "question_refine": "give me the number of patients whose age is less than 83 and drug code is fent100t?", "key": "61dc27fa7c4d1a9b9a05570373aa83ff"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 63], [4, 2, 0, 51098]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "63", "and", "item", "i", "d", "is", "51098", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"63\"", "and", "lab.\"itemid\"", "=", "\"51098\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"63\" AND LAB.\"ITEMID\" = \"51098\"", "question_refine": "give me the number of patients whose age is less than 63 and item id is 51098?", "key": "bededdf219afb8b676b5ed4081ffaed1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 50], [4, 2, 0, 50952]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "50", "and", "item", "i", "d", "is", "50952", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"50\"", "and", "lab.\"itemid\"", "=", "\"50952\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"50\" AND LAB.\"ITEMID\" = \"50952\"", "question_refine": "count the number of patients whose age is less than 50 and item id is 50952?", "key": "c61bb076234357e995b3b466c527ab4f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 77], [4, 2, 0, 51032]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "77", "and", "item", "i", "d", "is", "51032", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"77\"", "and", "lab.\"itemid\"", "=", "\"51032\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"77\" AND LAB.\"ITEMID\" = \"51032\"", "question_refine": "count the number of patients whose age is less than 77 and item id is 51032?", "key": "8da00131e873a8500bad5a6aa8da7da2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 56], [4, 2, 0, 51484]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "56", "and", "item", "i", "d", "is", "51484", "?"], "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.\"itemid\"", "=", "\"51484\""], "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.\"ITEMID\" = \"51484\"", "question_refine": "count the number of patients whose age is less than 56 and item id is 51484?", "key": "ff6fb9c92375cbb92db3b4ca92a1643f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 4], [1, 2, 0, "45821"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "and", "diagnoses", "icd9", "code", "is", "45821", "?"], "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\"", "=", "\"45821\""], "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\" = \"45821\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 4 and diagnoses icd9 code is 45821?", "key": "25acee98872aa77ef098fe638c532f69"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 9], [2, 4, 0, "Initial insertion of transvenous lead [electrode] into ventricle"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "9", "and", "procedure", "long", "title", "is", "initial", "insertion", "of", "transvenous", "lead", "[", "electrode", "]", "into", "ventricle", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"9\"", "and", "procedures.\"long_title\"", "=", "\"initial", "insertion", "of", "transvenous", "lead", "[electrode]", "into", "ventricle\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"9\" AND PROCEDURES.\"LONG_TITLE\" = \"Initial insertion of transvenous lead [electrode] into ventricle\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 9 and procedure long title is initial insertion of transvenous lead [electrode] into ventricle?", "key": "41d628d6610f7747a9a6276d41b62bfe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2157], [2, 4, 0, "Open reduction of fracture with internal fixation, femur"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2157", "and", "procedure", "long", "title", "is", "open", "reduction", "of", "fracture", "with", "internal", "fixation", ",", "femur", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2157\"", "and", "procedures.\"long_title\"", "=", "\"open", "reduction", "of", "fracture", "with", "internal", "fixation", "femur\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2157\" AND PROCEDURES.\"LONG_TITLE\" = \"Open reduction of fracture with internal fixation, femur\"", "question_refine": "how many patients whose admission year is less than 2157 and procedure long title is open reduction of fracture with internal fixation, femur?", "key": "2772a349ba8b871289a55f71877fc756"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Angioneurotic edema"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "angioneurotic", "edema", "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.\"short_title\"", "=", "\"angioneurotic", "edema\"", "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.\"SHORT_TITLE\" = \"Angioneurotic edema\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses short title is angioneurotic edema and lab test abnormal status is abnormal?", "key": "4db729f841b48be3484b601866bd3112"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Coronary atherosclerosis of unspecified type of vessel, native or graft"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "coronary", "atherosclerosis", "of", "unspecified", "type", "of", "vessel", ",", "native", "or", "graft", "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.\"long_title\"", "=", "\"coronary", "atherosclerosis", "of", "unspecified", "type", "of", "vessel", "native", "or", "graft\"", "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.\"LONG_TITLE\" = \"Coronary atherosclerosis of unspecified type of vessel, native or graft\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "what is the number of patients whose diagnoses long title is coronary atherosclerosis of unspecified type of vessel, native or graft and drug type is main?", "key": "2fc9629947cb270cccfd9a182d124766"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Cellulitis and abscess of leg, except foot"], [3, 6, 0, "PO"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "cellulitis", "and", "abscess", "of", "leg", ",", "except", "foot", "and", "drug", "route", "is", "po", "?"], "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\"", "=", "\"cellulitis", "and", "abscess", "of", "leg", "except", "foot\"", "and", "prescriptions.\"route\"", "=", "\"po\""], "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\" = \"Cellulitis and abscess of leg, except foot\" AND PRESCRIPTIONS.\"ROUTE\" = \"PO\"", "question_refine": "how many patients whose diagnoses long title is cellulitis and abscess of leg, except foot and drug route is po?", "key": "e7602e04cdb909c4f0ee9f7b4209b4ff"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Chronic obstructive asthma, unspecified"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "chronic", "obstructive", "asthma", ",", "unspecified", "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\"", "=", "\"chronic", "obstructive", "asthma", "unspecified\"", "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\" = \"Chronic obstructive asthma, unspecified\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "how many patients whose diagnoses long title is chronic obstructive asthma, unspecified and lab test category is hematology?", "key": "0dbc7ac4821026c20c4ce78cca2f9939"}
{"format": {"agg_col": [[1, 3]], "table": [1], "cond": [[1, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is diagnoses short title of subject id 2560?", "key": "c96ec93a617dda2baa0f80db114cf256"}
{"format": {"agg_col": [[1, 4], [2, 2]], "table": [1, 2], "cond": [[1, 0, 0, 7578]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "long", "title", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "7578", "?"], "sql_tok": ["select", "diagnoses.\"long_title\"", "procedures.\"icd9_code\"", "from", "diagnoses", "inner", "join", "procedures", "on", "diagnoses.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"7578\""], "sql": "SELECT DIAGNOSES.\"LONG_TITLE\",PROCEDURES.\"ICD9_CODE\" FROM DIAGNOSES INNER JOIN PROCEDURES on DIAGNOSES.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"7578\"", "question_refine": "what is diagnoses long title and procedure icd9 code of subject id 7578?", "key": "fc0d73ede81fca9198dcb2aa49698fea"}
{"format": {"agg_col": [[0, 10], [1, 2]], "table": [0, 1], "cond": [[0, 0, 0, 28588]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "icd9", "code", "of", "subject", "i", "d", "28588", "?"], "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\"", "=", "\"28588\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"28588\"", "question_refine": "what is days of hospital stay and diagnoses icd9 code of subject id 28588?", "key": "da8165af0bc363e4c4025cddebd76712"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 0, 0, 18112]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "18112", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"18112\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"18112\"", "question_refine": "what is days of hospital stay of subject id 18112?", "key": "6037fa02a262c20e36ca0bcc7630285e"}
{"format": {"agg_col": [[0, 10], [4, 6]], "table": [0, 4], "cond": [[0, 0, 0, 32418]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "lab", "test", "name", "of", "subject", "i", "d", "32418", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "lab.\"label\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"32418\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",LAB.\"LABEL\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"32418\"", "question_refine": "what is days of hospital stay and lab test name of subject id 32418?", "key": "fbf569d6a8a805987aa203137b34b902"}
{"format": {"agg_col": [[0, 16], [2, 4]], "table": [0, 2], "cond": [[0, 0, 0, 22377]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "long", "title", "of", "subject", "i", "d", "22377", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"22377\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"22377\"", "question_refine": "what is primary disease and procedure long title of subject id 22377?", "key": "2d7b5f2ea996f473197f42b1f3853e71"}
{"format": {"agg_col": [[0, 5], [0, 6]], "table": [0], "cond": [[0, 0, 0, 87275]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "gender", "of", "subject", "i", "d", "87275", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"87275\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"87275\"", "question_refine": "what is date of birth and gender of subject id 87275?", "key": "639674d632d3bad83273098102ab1eda"}
{"format": {"agg_col": [[0, 16], [2, 3]], "table": [0, 2], "cond": [[0, 0, 0, 1875]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "short", "title", "of", "subject", "i", "d", "1875", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"1875\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"1875\"", "question_refine": "what is primary disease and procedure short title of subject id 1875?", "key": "50dddbaf7f9f455a98d72dcb6f8b8807"}
{"format": {"agg_col": [[2, 3]], "table": [2], "cond": [[2, 0, 0, 42963]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "short", "title", "of", "subject", "i", "d", "42963", "?"], "sql_tok": ["select", "procedures.\"short_title\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"42963\""], "sql": "SELECT PROCEDURES.\"SHORT_TITLE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"42963\"", "question_refine": "what is procedure short title of subject id 42963?", "key": "6f5ef128921866ba5135f5ca3f1a9aca"}
{"format": {"agg_col": [[1, 3], [2, 4]], "table": [1, 2], "cond": [[1, 0, 0, 11221]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "procedure", "long", "title", "of", "subject", "i", "d", "11221", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "procedures.\"long_title\"", "from", "diagnoses", "inner", "join", "procedures", "on", "diagnoses.hadm_id", "=", "procedures.hadm_id", "where", "diagnoses.\"subject_id\"", "=", "\"11221\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",PROCEDURES.\"LONG_TITLE\" FROM DIAGNOSES INNER JOIN PROCEDURES on DIAGNOSES.HADM_ID = PROCEDURES.HADM_ID WHERE DIAGNOSES.\"SUBJECT_ID\" = \"11221\"", "question_refine": "what is diagnoses short title and procedure long title of subject id 11221?", "key": "99e479124ac68108075062cab6708828"}
{"format": {"agg_col": [[0, 10], [0, 20]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "admission", "time", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is days of hospital stay and admission time of subject name paul edwards?", "key": "ff8c8fafa620f655ad672e651ac0f559"}
{"format": {"agg_col": [[0, 21], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Cynthia Robinson"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "and", "diagnoses", "short", "title", "of", "subject", "name", "cynthia", "robinson", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"cynthia", "robinson\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Cynthia Robinson\"", "question_refine": "what is discharge time and diagnoses short title of subject name cynthia robinson?", "key": "d24b6f4ac480442953eb6fe4b34f655f"}
{"format": {"agg_col": [[1, 3], [2, 3]], "table": [0, 1, 2], "cond": [[0, 2, 0, "Lue White"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "procedure", "short", "title", "of", "subject", "name", "lue", "white", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"lue", "white\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Lue White\"", "question_refine": "what is diagnoses short title and procedure short title of subject name lue white?", "key": "dad12ce356ba1e3c126f8b176a8d99e2"}
{"format": {"agg_col": [[0, 10], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Claude Chipman"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "primary", "disease", "of", "subject", "name", "claude", "chipman", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"claude", "chipman\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Claude Chipman\"", "question_refine": "what is days of hospital stay and primary disease of subject name claude chipman?", "key": "d28a0db64d0f7b970590a639622a20cb"}
{"format": {"agg_col": [[0, 16], [2, 3]], "table": [0, 2], "cond": [[0, 2, 0, "Claude Chipman"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "procedure", "short", "title", "of", "subject", "name", "claude", "chipman", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "procedures.\"short_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"claude", "chipman\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PROCEDURES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Claude Chipman\"", "question_refine": "what is primary disease and procedure short title of subject name claude chipman?", "key": "d04db70d35f49c9fa23a0cb40bbd3358"}
{"format": {"agg_col": [[0, 4], [0, 6]], "table": [0], "cond": [[0, 2, 0, "Cynthia Gomez"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "gender", "of", "subject", "name", "cynthia", "gomez", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"cynthia", "gomez\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Cynthia Gomez\"", "question_refine": "what is age and gender of subject name cynthia gomez?", "key": "35445c971249c639d4ccb7f221843f01"}
{"format": {"agg_col": [[0, 20], [0, 21]], "table": [0], "cond": [[0, 2, 0, "Alice Nixon"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "discharge", "time", "of", "subject", "name", "alice", "nixon", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"alice", "nixon\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Alice Nixon\"", "question_refine": "what is admission time and discharge time of subject name alice nixon?", "key": "402c2bb7b6164aa0164625694046f7e6"}
{"format": {"agg_col": [[0, 10], [3, 4]], "table": [0, 3], "cond": [[0, 2, 0, "Dona Cole"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "drug", "name", "of", "subject", "name", "dona", "cole", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"dona", "cole\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Dona Cole\"", "question_refine": "what is days of hospital stay and drug name of subject name dona cole?", "key": "533ad6057e29f3ba6cf2bf96e35f7e59"}
{"format": {"agg_col": [[0, 16], [3, 4]], "table": [0, 3], "cond": [[0, 2, 0, "Marilyn Norvell"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "drug", "name", "of", "subject", "name", "marilyn", "norvell", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "prescriptions.\"drug\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"marilyn", "norvell\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",PRESCRIPTIONS.\"DRUG\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Marilyn Norvell\"", "question_refine": "what is primary disease and drug name of subject name marilyn norvell?", "key": "2f5fc16655ba8d03ca7beb4cbf63d8f9"}
{"format": {"agg_col": [[0, 10], [1, 2]], "table": [0, 1], "cond": [[0, 2, 0, "Troy Friedman"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "icd9", "code", "of", "subject", "name", "troy", "friedman", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "diagnoses.\"icd9_code\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"troy", "friedman\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Troy Friedman\"", "question_refine": "what is days of hospital stay and diagnoses icd9 code of subject name troy friedman?", "key": "3fb8b9a8e8b885e6de4af27b37d76480"}
{"format": {"agg_col": [[0, 16], [0, 21]], "table": [0], "cond": [[0, 2, 0, "Robert Hyden"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "discharge", "time", "of", "subject", "name", "robert", "hyden", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"robert", "hyden\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Robert Hyden\"", "question_refine": "what is primary disease and discharge time of subject name robert hyden?", "key": "16606a0fe5e97041a711afcf9761547f"}
{"format": {"agg_col": [[0, 20], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Thomas Nazario"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "diagnoses", "short", "title", "of", "subject", "name", "thomas", "nazario", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"thomas", "nazario\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Thomas Nazario\"", "question_refine": "what is admission time and diagnoses short title of subject name thomas nazario?", "key": "38a3d30ef5c6f1bee1c06ee36510f18e"}
{"format": {"agg_col": [[0, 20], [1, 4]], "table": [0, 1], "cond": [[0, 2, 0, "Roxanna Weaver"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "diagnoses", "long", "title", "of", "subject", "name", "roxanna", "weaver", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"roxanna", "weaver\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Roxanna Weaver\"", "question_refine": "what is admission time and diagnoses long title of subject name roxanna weaver?", "key": "2e771be856aa622d7ad42d640dae6b89"}
{"format": {"agg_col": [[0, 5], [0, 16]], "table": [0], "cond": [[0, 2, 0, "Brian Brock"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "primary", "disease", "of", "subject", "name", "brian", "brock", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"diagnosis\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"brian", "brock\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"DIAGNOSIS\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Brian Brock\"", "question_refine": "what is date of birth and primary disease of subject name brian brock?", "key": "29e9ce2a92a34008b2aa11f056cab5fc"}
{"format": {"agg_col": [[0, 13], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Travis Hofman"]], "sel": 0}, "question_refine_tok": ["what", "is", "death", "status", "and", "diagnoses", "short", "title", "of", "subject", "name", "travis", "hofman", "?"], "sql_tok": ["select", "demographic.\"expire_flag\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"travis", "hofman\""], "sql": "SELECT DEMOGRAPHIC.\"EXPIRE_FLAG\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Travis Hofman\"", "question_refine": "what is death status and diagnoses short title of subject name travis hofman?", "key": "f8018e9728f8f1c37a31cf358df8c203"}
{"format": {"agg_col": [[0, 16], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Caren Obrien"]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "diagnoses", "short", "title", "of", "subject", "name", "caren", "obrien", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"caren", "obrien\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Caren Obrien\"", "question_refine": "what is primary disease and diagnoses short title of subject name caren obrien?", "key": "4fbb49935114a0065ebba9e7777ed9b4"}
{"format": {"agg_col": [[0, 10], [1, 3]], "table": [0, 1], "cond": [[0, 2, 0, "Miguel Hodges"]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "and", "diagnoses", "short", "title", "of", "subject", "name", "miguel", "hodges", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "diagnoses.\"short_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"name\"", "=", "\"miguel", "hodges\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\",DIAGNOSES.\"SHORT_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Miguel Hodges\"", "question_refine": "what is days of hospital stay and diagnoses short title of subject name miguel hodges?", "key": "d5e3e02cbcff7b5615c6c023faa488a1"}
{"format": {"agg_col": [[1, 3], [1, 4]], "table": [1], "cond": [[1, 2, 0, "E912"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "e912", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"e912\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"E912\"", "question_refine": "what is diagnoses short title and diagnoses long title of diagnoses icd9 code e912?", "key": "b59c216686c91cc224cae8e21204c707"}
{"format": {"agg_col": [[1, 3], [1, 4]], "table": [1], "cond": [[1, 2, 0, "317"]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "and", "diagnoses", "long", "title", "of", "diagnoses", "icd9", "code", "317", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "diagnoses.\"long_title\"", "from", "diagnoses", "where", "diagnoses.\"icd9_code\"", "=", "\"317\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\",DIAGNOSES.\"LONG_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"ICD9_CODE\" = \"317\"", "question_refine": "what is diagnoses short title and diagnoses long title of diagnoses icd9 code 317?", "key": "50eae010a5de0cd0a1e77eeba4951215"}
{"format": {"agg_col": [[3, 6]], "table": [3], "cond": [[3, 4, 0, "Indomethacin"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "route", "of", "drug", "name", "indomethacin", "?"], "sql_tok": ["select", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"indomethacin\""], "sql": "SELECT PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Indomethacin\"", "question_refine": "what is drug route of drug name indomethacin?", "key": "fff2ce09bd5d347add8aa5a93941d1c5"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Enalaprilat"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "enalaprilat", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"enalaprilat\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Enalaprilat\"", "question_refine": "what is drug type of drug name enalaprilat?", "key": "60d56957a6c8b6b143ff548dd236b0aa"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 4, 0, "Nafcillin"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "name", "nafcillin", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"nafcillin\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Nafcillin\"", "question_refine": "what is drug type of drug name nafcillin?", "key": "32705c586cec77ef61f7bc812d558b73"}
{"format": {"agg_col": [[3, 5]], "table": [3], "cond": [[3, 4, 0, "Methylene Blue 1%"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "code", "of", "drug", "name", "methylene", "blue", "1", "%", "?"], "sql_tok": ["select", "prescriptions.\"formulary_drug_cd\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"methylene", "blue", "1%\""], "sql": "SELECT PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Methylene Blue 1%\"", "question_refine": "what is drug code of drug name methylene blue 1%?", "key": "3857715327d64d45e6fd391a0a11925b"}
{"format": {"agg_col": [[3, 3], [3, 6]], "table": [3], "cond": [[3, 4, 0, "Diazepam"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "and", "drug", "route", "of", "drug", "name", "diazepam", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "prescriptions.\"route\"", "from", "prescriptions", "where", "prescriptions.\"drug\"", "=", "\"diazepam\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\",PRESCRIPTIONS.\"ROUTE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"DRUG\" = \"Diazepam\"", "question_refine": "what is drug type and drug route of drug name diazepam?", "key": "d966807b7739763199a7427c0e27698f"}
{"format": {"agg_col": [[3, 3]], "table": [3], "cond": [[3, 5, 0, "CIPR500"]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "type", "of", "drug", "code", "cipr500", "?"], "sql_tok": ["select", "prescriptions.\"drug_type\"", "from", "prescriptions", "where", "prescriptions.\"formulary_drug_cd\"", "=", "\"cipr500\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG_TYPE\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"CIPR500\"", "question_refine": "what is drug type of drug code cipr500?", "key": "eea0dc17d5b370cb8df559714f74b156"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PTUN"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "ptun", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"ptun\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PTUN\"", "question_refine": "give me the number of patients whose language is ptun?", "key": "b6ba115e7fbbed31ba215e13b16d0bcf"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA\"", "question_refine": "count the number of patients whose primary disease is aortic valve insuffiency\\aortic valve replacement /sda?", "key": "e06141fac03a6630c1e4be80cc2b8d6e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CONGESTIVE HEART FAILURE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "congestive", "heart", "failure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"congestive", "heart", "failure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CONGESTIVE HEART FAILURE\"", "question_refine": "count the number of patients whose primary disease is congestive heart failure?", "key": "b06424a69570fc355b8490e98f70b837"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "COLANGITIS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "colangitis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"colangitis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COLANGITIS\"", "question_refine": "provide the number of patients whose primary disease is colangitis?", "key": "41504b36318be1e9941012af510d8623"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 70]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "70", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"70\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"70\"", "question_refine": "give me the number of patients whose age is less than 70?", "key": "dbbd62908dc0f45a10fd5d5a9ffc446b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 10, 1, 3]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "3", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", ">", "\"3\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"3\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 3?", "key": "429c40bd5e79acd6a0c2f08e70a07466"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 10, 1, 4]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", ">", "\"4\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"4\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 4?", "key": "46f2d3a95cd91f368585ee8daff0c2a6"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 10, 1, 6]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", ">", "\"6\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\"", "question_refine": "how many patients whose days of hospital stay is greater than 6?", "key": "52245cac97dbc051a180574c961543b8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 19, 4, 2122.0]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2122", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"dod_year\"", "<=", "\"2122.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2122.0\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2122?", "key": "c7f69e04609cdc57d3361bca277d2278"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Chr airway obstruct NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "chr", "airway", "obstruct", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"chr", "airway", "obstruct", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Chr airway obstruct NEC\"", "question_refine": "how many patients whose diagnoses short title is chr airway obstruct nec?", "key": "22a5522d87a5a46c85c84d359757da3e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Resp prob after brth NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "resp", "prob", "after", "brth", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"resp", "prob", "after", "brth", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Resp prob after brth NEC\"", "question_refine": "provide the number of patients whose diagnoses short title is resp prob after brth nec?", "key": "eab0a63ce305b457cae5f0cb62539c97"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Mv collision NOS-driver"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "mv", "collision", "nos", "-", "driver", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"mv", "collision", "nos-driver\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Mv collision NOS-driver\"", "question_refine": "count the number of patients whose diagnoses short title is mv collision nos-driver?", "key": "b264ae6993f1119675d0d3bebb3fbe29"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 3, 0, "Chr syst/diastl hrt fail"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "chr", "syst", "/", "diastl", "hrt", "fail", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"short_title\"", "=", "\"chr", "syst/diastl", "hrt", "fail\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"SHORT_TITLE\" = \"Chr syst/diastl hrt fail\"", "question_refine": "how many patients whose diagnoses short title is chr syst/diastl hrt fail?", "key": "e9e551debb56705a4e94d6727bdb677f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Cardiogenic shock"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "cardiogenic", "shock", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"cardiogenic", "shock\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Cardiogenic shock\"", "question_refine": "count the number of patients whose diagnoses long title is cardiogenic shock?", "key": "fc222f69e706b494850a4a9e4c9ab67b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Closed fracture of T1-T6 level with other specified spinal cord injury"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "closed", "fracture", "of", "t1-t6", "level", "with", "other", "specified", "spinal", "cord", "injury", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"closed", "fracture", "of", "t1-t6", "level", "with", "other", "specified", "spinal", "cord", "injury\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Closed fracture of T1-T6 level with other specified spinal cord injury\"", "question_refine": "provide the number of patients whose diagnoses long title is closed fracture of t1-t6 level with other specified spinal cord injury?", "key": "e5a1fc90b09d01683f5307a428fdb86f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[1, 4, 0, "Hemiplegia, unspecified, affecting dominant side"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "hemiplegia", ",", "unspecified", ",", "affecting", "dominant", "side", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "diagnoses.\"long_title\"", "=", "\"hemiplegia", "unspecified", "affecting", "dominant", "side\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DIAGNOSES.\"LONG_TITLE\" = \"Hemiplegia, unspecified, affecting dominant side\"", "question_refine": "provide the number of patients whose diagnoses long title is hemiplegia, unspecified, affecting dominant side?", "key": "5ef18e8b46298c9fea95408377ecd5a1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 4610]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "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", "procedures.\"icd9_code\"", "=", "\"4610\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"4610\"", "question_refine": "count the number of patients whose procedure icd9 code is 4610?", "key": "ff4c194ec419f633f971ff4935cf3c8a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 8968]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "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", "procedures.\"icd9_code\"", "=", "\"8968\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"8968\"", "question_refine": "how many patients whose procedure icd9 code is 8968?", "key": "3f8a067051dd991eeb5da7693a5e114a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 12]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "12", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "procedures.\"icd9_code\"", "=", "\"12\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"12\"", "question_refine": "give me the number of patients whose procedure icd9 code is 12?", "key": "c5f2b89e8a9ffae3ec0a37c89778049a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 9229]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "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", "procedures.\"icd9_code\"", "=", "\"9229\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"9229\"", "question_refine": "what is the number of patients whose procedure icd9 code is 9229?", "key": "154326341a174f053b1d1d8cfb7a38db"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[2, 2, 0, 17]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "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", "procedures.\"icd9_code\"", "=", "\"17\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE PROCEDURES.\"ICD9_CODE\" = \"17\"", "question_refine": "how many patients whose procedure icd9 code is 17?", "key": "62e62ee66eefc745181d92ee50995260"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "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", "prescriptions.\"drug_type\"", "=", "\"base\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose drug type is base?", "key": "d1a14616cd8a610bc9fb4c0a1d0b9f98"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "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", "prescriptions.\"drug_type\"", "=", "\"main\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose drug type is main?", "key": "9963de67fc76f27adf9a25fb6fbf958a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Sodium CITRATE 4%"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "name", "is", "sodium", "citrate", "4", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"sodium", "citrate", "4%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Sodium CITRATE 4%\"", "question_refine": "give me the number of patients whose drug name is sodium citrate 4%?", "key": "540fffbeff5b21b80910141eb1cbfc21"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "0.9% Sodium Chloride (Mini Bag Plus)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "name", "is", "0.9", "%", "sodium", "chloride", "(", "mini", "bag", "plus", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"0.9%", "sodium", "chloride", "(mini", "bag", "plus)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"0.9% Sodium Chloride (Mini Bag Plus)\"", "question_refine": "provide the number of patients whose drug name is 0.9% sodium chloride (mini bag plus)?", "key": "8fd7dd72c72e3270afaeea9cc0717b2d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 4, 0, "Methadone"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "name", "is", "methadone", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"drug\"", "=", "\"methadone\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"DRUG\" = \"Methadone\"", "question_refine": "provide the number of patients whose drug name is methadone?", "key": "fdca4f0ee874465fd6e26412ff0735ed"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "METO25"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "meto25", "?"], "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\"", "=", "\"meto25\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"METO25\"", "question_refine": "provide the number of patients whose drug code is meto25?", "key": "0be0344c4925413cc718eee2ea40ac53"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "LEVO500PM"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "levo500pm", "?"], "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\"", "=", "\"levo500pm\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"LEVO500PM\"", "question_refine": "provide the number of patients whose drug code is levo500pm?", "key": "c8b4b9525226915e453db709bc54c1e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "DIAZ5"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "drug", "code", "is", "diaz5", "?"], "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\"", "=", "\"diaz5\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"DIAZ5\"", "question_refine": "count the number of patients whose drug code is diaz5?", "key": "bcceb175039689ed800387cf1e8d4541"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "LORA1"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "lora1", "?"], "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\"", "=", "\"lora1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"LORA1\"", "question_refine": "provide the number of patients whose drug code is lora1?", "key": "cf32b929f833d1fd29e662f585f6161f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "GENT60PM"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "gent60pm", "?"], "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\"", "=", "\"gent60pm\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"GENT60PM\"", "question_refine": "how many patients whose drug code is gent60pm?", "key": "d233885a20766e75207a9052d9e40eb0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "CALCG2/100NS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "calcg2/100ns", "?"], "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\"", "=", "\"calcg2/100ns\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"CALCG2/100NS\"", "question_refine": "how many patients whose drug code is calcg2/100ns?", "key": "c90f3f1f4e74fe947cbff091844f7f26"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "PHOS250"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "phos250", "?"], "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\"", "=", "\"phos250\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"PHOS250\"", "question_refine": "how many patients whose drug code is phos250?", "key": "46eeafa97b453cd63d43b047ff4234ac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 5, 0, "CALC25"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "calc25", "?"], "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\"", "=", "\"calc25\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"CALC25\"", "question_refine": "give me the number of patients whose drug code is calc25?", "key": "fe55ffb6e78d1bb7c0254041e3a94003"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "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", "prescriptions.\"route\"", "=", "\"ivpca\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"IVPCA\"", "question_refine": "provide the number of patients whose drug route is ivpca?", "key": "8513c9922c6755d69808e26dd5691af9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[3, 6, 0, "IV"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "route", "is", "iv", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "prescriptions.\"route\"", "=", "\"iv\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE PRESCRIPTIONS.\"ROUTE\" = \"IV\"", "question_refine": "give me the number of patients whose drug route is iv?", "key": "f94ad5d9bdae2dcb09df043bb56c35de"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "WBC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "wbc", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"wbc\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"WBC\"", "question_refine": "provide the number of patients whose lab test name is wbc?", "key": "3e2e947d4f4f7c502c538d279654cc58"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 6, 0, "Gentamicin"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "lab", "test", "name", "is", "gentamicin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"label\"", "=", "\"gentamicin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"LABEL\" = \"Gentamicin\"", "question_refine": "what is the number of patients whose lab test name is gentamicin?", "key": "76248b88df027621e985aae26b60ac78"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 6, 0, "F"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "gender", "is", "f", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"gender\"", "=", "\"f\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"GENDER\" = \"F\"", "question_refine": "count the number of patients whose marital status is divorced and gender is f?", "key": "a8b4438c37e8fb67d8373e558ba580ac"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 12, 0, "WHITE - RUSSIAN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "divorced", "and", "ethnicity", "is", "white", "-", "russian", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\"", "question_refine": "how many patients whose marital status is divorced and ethnicity is white - russian?", "key": "eda983e8962ca038bf11e261fe854c97"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 12, 0, "WHITE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "divorced", "and", "ethnicity", "is", "white", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"ethnicity\"", "=", "\"white\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\"", "question_refine": "how many patients whose marital status is divorced and ethnicity is white?", "key": "1480ec4b5de7eae7ba0bdd3376814ad4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "married", "and", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\"", "question_refine": "how many patients whose marital status is married and ethnicity is american indian/alaska native?", "key": "d1536cd6070bf9bb0e55b9c718d5302f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 22, 2, 2178]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "admission", "year", "is", "less", "than", "2178", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"admityear\"", "<", "\"2178\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2178\"", "question_refine": "what is the number of patients whose marital status is single and admission year is less than 2178?", "key": "f2da170a4356abd35fad286ffa6734e8"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 22, 2, 2180]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "admission", "year", "is", "less", "than", "2180", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"admityear\"", "<", "\"2180\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2180\"", "question_refine": "what is the number of patients whose marital status is single and admission year is less than 2180?", "key": "9875b31db21ec231d6a86d347d3d2453"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 22, 2, 2103]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "admission", "year", "is", "less", "than", "2103", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"admityear\"", "<", "\"2103\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2103\"", "question_refine": "what is the number of patients whose marital status is married and admission year is less than 2103?", "key": "435cffe74d10c0150b5992ff15e8ed36"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 2, 0, "25541"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "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\"", "=", "\"married\"", "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\" = \"MARRIED\" AND DIAGNOSES.\"ICD9_CODE\" = \"25541\"", "question_refine": "what is the number of patients whose marital status is married and diagnoses icd9 code is 25541?", "key": "be9bbb661d96db2a94c6ba2c21d16c45"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "SINGLE"], [1, 2, 0, "4254"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "diagnoses", "icd9", "code", "is", "4254", "?"], "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.\"icd9_code\"", "=", "\"4254\""], "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.\"ICD9_CODE\" = \"4254\"", "question_refine": "give me the number of patients whose marital status is single and diagnoses icd9 code is 4254?", "key": "4db6fe3c70ac4f98054a0f6a027c5673"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "WIDOWED"], [1, 3, 0, "Vascular hamartomas"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "diagnoses", "short", "title", "is", "vascular", "hamartomas", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "diagnoses.\"short_title\"", "=", "\"vascular", "hamartomas\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Vascular hamartomas\"", "question_refine": "give me the number of patients whose marital status is widowed and diagnoses short title is vascular hamartomas?", "key": "6871f1256851b72b6bb4ddc3c3e10510"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 3, 0, "DMII renl nt st uncntrld"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "diagnoses", "short", "title", "is", "dmii", "renl", "nt", "st", "uncntrld", "?"], "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\"", "=", "\"dmii", "renl", "nt", "st", "uncntrld\""], "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\" = \"DMII renl nt st uncntrld\"", "question_refine": "count the number of patients whose marital status is married and diagnoses short title is dmii renl nt st uncntrld?", "key": "503875c64be0dd08d9f588deb06eaae8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "SINGLE"], [1, 3, 0, "Personality disorder NOS"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "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.\"marital_status\"", "=", "\"single\"", "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.\"MARITAL_STATUS\" = \"SINGLE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Personality disorder NOS\"", "question_refine": "count the number of patients whose marital status is single and diagnoses short title is personality disorder nos?", "key": "8a2549d7f3c0aef822c1a1ea65246cdd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "MARRIED"], [1, 4, 0, "Depressive disorder, not elsewhere classified"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "diagnoses", "long", "title", "is", "depressive", "disorder", ",", "not", "elsewhere", "classified", "?"], "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\"", "=", "\"depressive", "disorder", "not", "elsewhere", "classified\""], "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\" = \"Depressive disorder, not elsewhere classified\"", "question_refine": "provide the number of patients whose marital status is married and diagnoses long title is depressive disorder, not elsewhere classified?", "key": "3da60fe67dcc27bd4c07dd4c819f9661"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "WIDOWED"], [1, 4, 0, "Benign neoplasm of spinal meninges"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "widowed", "and", "diagnoses", "long", "title", "is", "benign", "neoplasm", "of", "spinal", "meninges", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "diagnoses.\"long_title\"", "=", "\"benign", "neoplasm", "of", "spinal", "meninges\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND DIAGNOSES.\"LONG_TITLE\" = \"Benign neoplasm of spinal meninges\"", "question_refine": "how many patients whose marital status is widowed and diagnoses long title is benign neoplasm of spinal meninges?", "key": "c6a50dd21d69570315d1af044aece5aa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "SINGLE"], [1, 4, 0, "Other chronic pulmonary heart diseases"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "diagnoses", "long", "title", "is", "other", "chronic", "pulmonary", "heart", "diseases", "?"], "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\"", "=", "\"other", "chronic", "pulmonary", "heart", "diseases\""], "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\" = \"Other chronic pulmonary heart diseases\"", "question_refine": "what is the number of patients whose marital status is single and diagnoses long title is other chronic pulmonary heart diseases?", "key": "cc792a19f50dde32d1f2635671a99142"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 3, 0, "SINGLE"], [1, 4, 0, "Late effects of cerebrovascular disease, hemiplegia affecting unspecified side"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "single", "and", "diagnoses", "long", "title", "is", "late", "effects", "of", "cerebrovascular", "disease", ",", "hemiplegia", "affecting", "unspecified", "side", "?"], "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\"", "=", "\"late", "effects", "of", "cerebrovascular", "disease", "hemiplegia", "affecting", "unspecified", "side\""], "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\" = \"Late effects of cerebrovascular disease, hemiplegia affecting unspecified side\"", "question_refine": "how many patients whose marital status is single and diagnoses long title is late effects of cerebrovascular disease, hemiplegia affecting unspecified side?", "key": "243795ba8fc3444e3faa2976f9062af4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 2, 0, 8960]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "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.\"marital_status\"", "=", "\"single\"", "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.\"MARITAL_STATUS\" = \"SINGLE\" AND PROCEDURES.\"ICD9_CODE\" = \"8960\"", "question_refine": "give me the number of patients whose marital status is single and procedure icd9 code is 8960?", "key": "fdbc41308183acc7f9b2efee20a3c131"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 3, 0, "Abdominal wall incision"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "procedure", "short", "title", "is", "abdominal", "wall", "incision", "?"], "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\"", "=", "\"abdominal", "wall", "incision\""], "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\" = \"Abdominal wall incision\"", "question_refine": "provide the number of patients whose marital status is single and procedure short title is abdominal wall incision?", "key": "399d78d5e1a661362d846f3a7018bebc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "WIDOWED"], [2, 4, 0, "Percutaneous (endoscopic) jejunostomy [PEJ]"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "procedure", "long", "title", "is", "percutaneous", "(", "endoscopic", ")", "jejunostomy", "[", "pej", "]", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "procedures.\"long_title\"", "=", "\"percutaneous", "(endoscopic)", "jejunostomy", "[pej]\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND PROCEDURES.\"LONG_TITLE\" = \"Percutaneous (endoscopic) jejunostomy [PEJ]\"", "question_refine": "provide the number of patients whose marital status is widowed and procedure long title is percutaneous (endoscopic) jejunostomy [pej]?", "key": "1d61a62087b0c19fb54992b1e1e28367"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "SINGLE"], [2, 4, 0, "Open and other replacement of aortic valve with tissue graft"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "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.\"marital_status\"", "=", "\"single\"", "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.\"MARITAL_STATUS\" = \"SINGLE\" AND PROCEDURES.\"LONG_TITLE\" = \"Open and other replacement of aortic valve with tissue graft\"", "question_refine": "what is the number of patients whose marital status is single and procedure long title is open and other replacement of aortic valve with tissue graft?", "key": "f4c5add760ad2859b3ea91ffe6b16be5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 4, 0, "Percutaneous [endoscopic] gastrostomy [PEG]"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "long", "title", "is", "percutaneous", "[", "endoscopic", "]", "gastrostomy", "[", "peg", "]", "?"], "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.\"long_title\"", "=", "\"percutaneous", "[endoscopic]", "gastrostomy", "[peg]\""], "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.\"LONG_TITLE\" = \"Percutaneous [endoscopic] gastrostomy [PEG]\"", "question_refine": "what is the number of patients whose marital status is married and procedure long title is percutaneous [endoscopic] gastrostomy [peg]?", "key": "34657fa3aae189689668f538b38d1ee9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 3, 0, "MARRIED"], [2, 4, 0, "Non-invasive mechanical ventilation"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "procedure", "long", "title", "is", "non", "-", "invasive", "mechanical", "ventilation", "?"], "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.\"long_title\"", "=", "\"non-invasive", "mechanical", "ventilation\""], "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.\"LONG_TITLE\" = \"Non-invasive mechanical ventilation\"", "question_refine": "give me the number of patients whose marital status is married and procedure long title is non-invasive mechanical ventilation?", "key": "467bc9195ded1b007acb96c617f186a9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 3, 0, "WIDOWED"], [3, 6, 0, "NG"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "drug", "route", "is", "ng", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "prescriptions.\"route\"", "=", "\"ng\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND PRESCRIPTIONS.\"ROUTE\" = \"NG\"", "question_refine": "count the number of patients whose marital status is widowed and drug route is ng?", "key": "62c69a5bc2601536a518a3b4b78aa03b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 3, 0, "SINGLE"], [3, 6, 0, "DIALYS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "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.\"marital_status\"", "=", "\"single\"", "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.\"MARITAL_STATUS\" = \"SINGLE\" AND PRESCRIPTIONS.\"ROUTE\" = \"DIALYS\"", "question_refine": "what is the number of patients whose marital status is single and drug route is dialys?", "key": "fd2bc1fbefdb30667f6ace551cb28cda"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 3, 0, "DIVORCED"], [3, 6, 0, "IV DRIP"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "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", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "prescriptions.\"route\"", "=", "\"iv", "drip\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV DRIP\"", "question_refine": "provide the number of patients whose marital status is divorced and drug route is iv drip?", "key": "464091bc88a44c8bed7aabd5df1e3659"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "MARRIED"], [4, 2, 0, 51382]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "item", "i", "d", "is", "51382", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "lab.\"itemid\"", "=", "\"51382\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND LAB.\"ITEMID\" = \"51382\"", "question_refine": "count the number of patients whose marital status is married and item id is 51382?", "key": "0de2484e6ec92d514464e9be2fb25cfb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "MARRIED"], [4, 2, 0, 51446]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "marital", "status", "is", "married", "and", "item", "i", "d", "is", "51446", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "lab.\"itemid\"", "=", "\"51446\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND LAB.\"ITEMID\" = \"51446\"", "question_refine": "give me the number of patients whose marital status is married and item id is 51446?", "key": "2413815f4cc87c5770e141030b757fac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "DIVORCED"], [4, 2, 0, 51181]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "item", "i", "d", "is", "51181", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "lab.\"itemid\"", "=", "\"51181\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND LAB.\"ITEMID\" = \"51181\"", "question_refine": "what is the number of patients whose marital status is divorced and item id is 51181?", "key": "1796f213414dfa22ae2aa0b469cc684e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "WIDOWED"], [4, 6, 0, "Hematocrit"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "marital", "status", "is", "widowed", "and", "lab", "test", "name", "is", "hematocrit", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "lab.\"label\"", "=", "\"hematocrit\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND LAB.\"LABEL\" = \"Hematocrit\"", "question_refine": "how many patients whose marital status is widowed and lab test name is hematocrit?", "key": "24aadee9ea47d06c797aa9506af6ff74"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "SINGLE"], [4, 6, 0, "Transferrin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "and", "lab", "test", "name", "is", "transferrin", "?"], "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.\"label\"", "=", "\"transferrin\""], "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.\"LABEL\" = \"Transferrin\"", "question_refine": "provide the number of patients whose marital status is single and lab test name is transferrin?", "key": "ea30665bc85db7ba36dbf1023783c809"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "WIDOWED"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "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.\"marital_status\"", "=", "\"widowed\"", "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.\"MARITAL_STATUS\" = \"WIDOWED\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "count the number of patients whose marital status is widowed and lab test fluid is cerebrospinal fluid (csf)?", "key": "5361c503c55b47ad826136a474237f44"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "WIDOWED"], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "marital", "status", "is", "widowed", "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.\"marital_status\"", "=", "\"widowed\"", "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.\"MARITAL_STATUS\" = \"WIDOWED\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "what is the number of patients whose marital status is widowed and lab test fluid is ascites?", "key": "9305cbd8c6e485176b237372cb81f485"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 3, 0, "SINGLE"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "marital", "status", "is", "single", "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.\"marital_status\"", "=", "\"single\"", "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.\"MARITAL_STATUS\" = \"SINGLE\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "count the number of patients whose marital status is single and lab test category is chemistry?", "key": "3acf5f50f64889ee23976662e1b13abd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 11, 0, "Medicaid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "insurance", "is", "medicaid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"insurance\"", "=", "\"medicaid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\"", "question_refine": "give me the number of patients whose gender is f and insurance is medicaid?", "key": "35ea620081b6db1e7caac1fb1fea760e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 11, 0, "Medicare"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "insurance", "is", "medicare", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"insurance\"", "=", "\"medicare\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\"", "question_refine": "how many patients whose gender is f and insurance is medicare?", "key": "2f090b25d4b7a64091e5ceee7950d954"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 12, 0, "BLACK/CAPE VERDEAN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "m", "and", "ethnicity", "is", "black", "/", "cape", "verdean", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\"", "question_refine": "how many patients whose gender is m and ethnicity is black/cape verdean?", "key": "f12d52ce7b64a66f629acddb45e4dff4"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\"", "question_refine": "what is the number of patients whose gender is m and ethnicity is american indian/alaska native?", "key": "c1bd118d614f31485d837e1b641d53e7"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 15, 0, "DEAD/EXPIRED"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "discharge", "location", "is", "dead", "/", "expired", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"discharge_location\"", "=", "\"dead/expired\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\"", "question_refine": "provide the number of patients whose gender is m and discharge location is dead/expired?", "key": "39e8275941fc8e1c791736e31bb70803"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "SDH"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "sdh", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"sdh\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SDH\"", "question_refine": "what is the number of patients whose gender is f and primary disease is sdh?", "key": "2378036cd5925293a6a4803aaa57c58e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "LEFT FEMUR FRACTURE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "left", "femur", "fracture", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"left", "femur", "fracture\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT FEMUR FRACTURE\"", "question_refine": "what is the number of patients whose gender is f and primary disease is left femur fracture?", "key": "7e4bc442c7d9e30956d5cf8363326ec9"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "LIVER TRANSPLANT"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "liver", "transplant", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"liver", "transplant\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LIVER TRANSPLANT\"", "question_refine": "how many patients whose gender is f and primary disease is liver transplant?", "key": "435b1d5dd999fbae1c4749744aa9041c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "OVERDOSE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "overdose", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"overdose\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\"", "question_refine": "provide the number of patients whose gender is f and primary disease is overdose?", "key": "68ad95dfccd915bcb1bb7320a99b562b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 16, 0, "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "primary", "disease", "is", "st", "-", "segment", "elevation", "myocardial", "infarction\\cardiac", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"diagnosis\"", "=", "\"st-segment", "elevation", "myocardial", "infarction\\cardiac", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH\"", "question_refine": "what is the number of patients whose gender is f and primary disease is st-segment elevation myocardial infarction\\cardiac cath?", "key": "b5cb984fea1889da4fc7c2308a721da1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 2, 67]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "less", "than", "67", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", "<", "\"67\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" < \"67\"", "question_refine": "what is the number of patients whose gender is f and age is less than 67?", "key": "1a524470769e8f41974429bf10b1a17b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 2, 41]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "age", "is", "less", "than", "41", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", "<", "\"41\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" < \"41\"", "question_refine": "how many patients whose gender is f and age is less than 41?", "key": "94ff317a11ba1aa781abe9227e79e9cf"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 2, 74]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "less", "than", "74", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", "<", "\"74\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" < \"74\"", "question_refine": "provide the number of patients whose gender is m and age is less than 74?", "key": "3bc09fbb94b91e344118fe868936ad25"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 10, 1, 9]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "9", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"days_stay\"", ">", "\"9\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"9\"", "question_refine": "what is the number of patients whose gender is f and days of hospital stay is greater than 9?", "key": "94627887d157cba0afc3c9cd22cfd2d9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Depress psychosis-unspec"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "depress", "psychosis", "-", "unspec", "?"], "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\"", "=", "\"depress", "psychosis-unspec\""], "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\" = \"Depress psychosis-unspec\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is depress psychosis-unspec?", "key": "94c7f4f6db335133207cfe8cff89f313"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Ulcer of heel & midfoot"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "ulcer", "of", "heel", "&", "midfoot", "?"], "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\"", "=", "\"ulcer", "of", "heel", "&", "midfoot\""], "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\" = \"Ulcer of heel & midfoot\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is ulcer of heel & midfoot?", "key": "3e635d17f64a17b71ec575da212a52a2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Follicular cyst of ovary"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "follicular", "cyst", "of", "ovary", "?"], "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\"", "=", "\"follicular", "cyst", "of", "ovary\""], "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\" = \"Follicular cyst of ovary\"", "question_refine": "count the number of patients whose gender is f and diagnoses short title is follicular cyst of ovary?", "key": "98b544264430cb1d13189b8907a4c66a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Joint replaced knee"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "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.\"gender\"", "=", "\"f\"", "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.\"GENDER\" = \"F\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Joint replaced knee\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is joint replaced knee?", "key": "32a932c5a2c1e04648783ead96c0f790"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Hx-skin malignancy NEC"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "hx", "-", "skin", "malignancy", "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\"", "=", "\"hx-skin", "malignancy", "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\" = \"Hx-skin malignancy NEC\"", "question_refine": "provide the number of patients whose gender is f and diagnoses short title is hx-skin malignancy nec?", "key": "d09aba7ac1f46482efede156db1b4780"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 3, 0, "Gram-neg septicemia NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "short", "title", "is", "gram", "-", "neg", "septicemia", "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\"", "=", "\"gram-neg", "septicemia", "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\" = \"Gram-neg septicemia NEC\"", "question_refine": "what is the number of patients whose gender is f and diagnoses short title is gram-neg septicemia nec?", "key": "4b9bc1a9bc8af68b84596f5b21e90be6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 4, 0, "Anemia in chronic kidney disease"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "long", "title", "is", "anemia", "in", "chronic", "kidney", "disease", "?"], "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.\"long_title\"", "=", "\"anemia", "in", "chronic", "kidney", "disease\""], "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.\"LONG_TITLE\" = \"Anemia in chronic kidney disease\"", "question_refine": "give me the number of patients whose gender is m and diagnoses long title is anemia in chronic kidney disease?", "key": "2c3e991659864048a46134e4f2ca7f62"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "F"], [1, 4, 0, "Kidney dialysis as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "diagnoses", "long", "title", "is", "kidney", "dialysis", "as", "the", "cause", "of", "abnormal", "reaction", "of", "patient", ",", "or", "of", "later", "complication", ",", "without", "mention", "of", "misadventure", "at", "time", "of", "procedure", "?"], "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\"", "=", "\"kidney", "dialysis", "as", "the", "cause", "of", "abnormal", "reaction", "of", "patient", "or", "of", "later", "complication", "without", "mention", "of", "misadventure", "at", "time", "of", "procedure\""], "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\" = \"Kidney dialysis as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure\"", "question_refine": "give me the number of patients whose gender is f and diagnoses long title is kidney dialysis as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure?", "key": "034bf36e59f94b32db9bfd68c81e7f8d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 4, 0, "Accidents occurring in residential institution"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "long", "title", "is", "accidents", "occurring", "in", "residential", "institution", "?"], "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.\"long_title\"", "=", "\"accidents", "occurring", "in", "residential", "institution\""], "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.\"LONG_TITLE\" = \"Accidents occurring in residential institution\"", "question_refine": "count the number of patients whose gender is m and diagnoses long title is accidents occurring in residential institution?", "key": "6f5ac6ce0b8e849f7c8cd543ff03319c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 6, 0, "M"], [1, 4, 0, "Anemia in neoplastic disease"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "diagnoses", "long", "title", "is", "anemia", "in", "neoplastic", "disease", "?"], "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.\"long_title\"", "=", "\"anemia", "in", "neoplastic", "disease\""], "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.\"LONG_TITLE\" = \"Anemia in neoplastic disease\"", "question_refine": "count the number of patients whose gender is m and diagnoses long title is anemia in neoplastic disease?", "key": "598a752066f799da4c909ae689634254"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "M"], [2, 3, 0, "Aortocor bypas-2 cor art"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "procedure", "short", "title", "is", "aortocor", "bypas-2", "cor", "art", "?"], "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.\"short_title\"", "=", "\"aortocor", "bypas-2", "cor", "art\""], "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.\"SHORT_TITLE\" = \"Aortocor bypas-2 cor art\"", "question_refine": "provide the number of patients whose gender is m and procedure short title is aortocor bypas-2 cor art?", "key": "6749884505f5340dee37299652703615"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 4, 0, "Intraoperative cardiac pacemaker"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "gender", "is", "f", "and", "procedure", "long", "title", "is", "intraoperative", "cardiac", "pacemaker", "?"], "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.\"long_title\"", "=", "\"intraoperative", "cardiac", "pacemaker\""], "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.\"LONG_TITLE\" = \"Intraoperative cardiac pacemaker\"", "question_refine": "how many patients whose gender is f and procedure long title is intraoperative cardiac pacemaker?", "key": "9edfd39c7451110bd16acc2c43476011"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 4, 0, "Replacement of tube or enterostomy device of small intestine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "long", "title", "is", "replacement", "of", "tube", "or", "enterostomy", "device", "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.\"gender\"", "=", "\"f\"", "and", "procedures.\"long_title\"", "=", "\"replacement", "of", "tube", "or", "enterostomy", "device", "of", "small", "intestine\""], "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.\"LONG_TITLE\" = \"Replacement of tube or enterostomy device of small intestine\"", "question_refine": "provide the number of patients whose gender is f and procedure long title is replacement of tube or enterostomy device of small intestine?", "key": "f9a2323ed7ed5eae0b88cf5dc99cff12"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "F"], [2, 4, 0, "Endovascular (total) embolization or occlusion of head and neck vessels"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "gender", "is", "f", "and", "procedure", "long", "title", "is", "endovascular", "(", "total", ")", "embolization", "or", "occlusion", "of", "head", "and", "neck", "vessels", "?"], "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.\"long_title\"", "=", "\"endovascular", "(total)", "embolization", "or", "occlusion", "of", "head", "and", "neck", "vessels\""], "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.\"LONG_TITLE\" = \"Endovascular (total) embolization or occlusion of head and neck vessels\"", "question_refine": "count the number of patients whose gender is f and procedure long title is endovascular (total) embolization or occlusion of head and neck vessels?", "key": "d749388b37e4f91340f997dc4bda17e4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 6, 0, "M"], [2, 4, 0, "Umbilical vein catheterization"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "procedure", "long", "title", "is", "umbilical", "vein", "catheterization", "?"], "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\"", "=", "\"umbilical", "vein", "catheterization\""], "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\" = \"Umbilical vein catheterization\"", "question_refine": "provide the number of patients whose gender is m and procedure long title is umbilical vein catheterization?", "key": "52ac14a8978e5a8f3990586711421ce3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 6, 0, "M"], [3, 4, 0, "Rosiglitazone Maleate"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "drug", "name", "is", "rosiglitazone", "maleate", "?"], "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.\"drug\"", "=", "\"rosiglitazone", "maleate\""], "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.\"DRUG\" = \"Rosiglitazone Maleate\"", "question_refine": "what is the number of patients whose gender is m and drug name is rosiglitazone maleate?", "key": "399ebe921ad1dbfcee3dd477863057b5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 6, 0, "M"], [4, 2, 0, 51144]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "gender", "is", "m", "and", "item", "i", "d", "is", "51144", "?"], "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\"", "=", "\"51144\""], "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\" = \"51144\"", "question_refine": "give me the number of patients whose gender is m and item id is 51144?", "key": "0092046d54210d9d4e066d02c63c13d5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 8, 0, "ROMANIAN EAST. ORTH"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "language", "is", "span", "and", "religion", "is", "romanian", "east", ".", "orth", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"religion\"", "=", "\"romanian", "east.", "orth\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"RELIGION\" = \"ROMANIAN EAST. ORTH\"", "question_refine": "how many patients whose language is span and religion is romanian east. orth?", "key": "2a7aea0517c8b148c1f5b940232cf4e0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "RUSS"], [0, 15, 0, "SNF"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "language", "is", "russ", "and", "discharge", "location", "is", "snf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"russ\"", "and", "demographic.\"discharge_location\"", "=", "\"snf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"RUSS\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\"", "question_refine": "how many patients whose language is russ and discharge location is snf?", "key": "8aa01d6b0371414a6cb67352b43c3938"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "ENGL"], [0, 4, 2, 36]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "language", "is", "engl", "and", "age", "is", "less", "than", "36", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "demographic.\"age\"", "<", "\"36\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND DEMOGRAPHIC.\"AGE\" < \"36\"", "question_refine": "provide the number of patients whose language is engl and age is less than 36?", "key": "4962facddae1a7def3a47618ab4ecdb0"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PORT"], [0, 10, 1, 4]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "language", "is", "port", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"port\"", "and", "demographic.\"days_stay\"", ">", "\"4\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PORT\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"4\"", "question_refine": "give me the number of patients whose language is port and days of hospital stay is greater than 4?", "key": "0ad32d89fec3798306a695b91c7ffe3d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "PTUN"], [0, 18, 2, 2064]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "language", "is", "ptun", "and", "year", "of", "birth", "is", "less", "than", "2064", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"ptun\"", "and", "demographic.\"dob_year\"", "<", "\"2064\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"PTUN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2064\"", "question_refine": "count the number of patients whose language is ptun and year of birth is less than 2064?", "key": "79893edb16cf032e8ef7e9acc3e7252c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 7, 0, "ENGL"], [0, 18, 2, 2069]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "language", "is", "engl", "and", "year", "of", "birth", "is", "less", "than", "2069", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"engl\"", "and", "demographic.\"dob_year\"", "<", "\"2069\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"ENGL\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2069\"", "question_refine": "count the number of patients whose language is engl and year of birth is less than 2069?", "key": "1b2f3f950a521b678d516bb264e82948"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "JEWISH"], [0, 22, 2, 2145]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "religion", "is", "jewish", "and", "admission", "year", "is", "less", "than", "2145", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"jewish\"", "and", "demographic.\"admityear\"", "<", "\"2145\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"JEWISH\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2145\"", "question_refine": "provide the number of patients whose religion is jewish and admission year is less than 2145?", "key": "4a6fc4eb733602cac814e4dced724056"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 8, 0, "JEWISH"], [0, 22, 2, 2146]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "religion", "is", "jewish", "and", "admission", "year", "is", "less", "than", "2146", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"religion\"", "=", "\"jewish\"", "and", "demographic.\"admityear\"", "<", "\"2146\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"RELIGION\" = \"JEWISH\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2146\"", "question_refine": "what is the number of patients whose religion is jewish and admission year is less than 2146?", "key": "123275d99f03243fd372355a7a46b1c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 8, 0, "ROMANIAN EAST. ORTH"], [1, 4, 0, "Accidents occurring in other specified places"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "religion", "is", "romanian", "east", ".", "orth", "and", "diagnoses", "long", "title", "is", "accidents", "occurring", "in", "other", "specified", "places", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"religion\"", "=", "\"romanian", "east.", "orth\"", "and", "diagnoses.\"long_title\"", "=", "\"accidents", "occurring", "in", "other", "specified", "places\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"ROMANIAN EAST. ORTH\" AND DIAGNOSES.\"LONG_TITLE\" = \"Accidents occurring in other specified places\"", "question_refine": "count the number of patients whose religion is romanian east. orth and diagnoses long title is accidents occurring in other specified places?", "key": "0804130c540746ad78af4f048ca76822"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 8, 0, "EPISCOPALIAN"], [1, 4, 0, "Personal history of malignant neoplasm of large intestine"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "religion", "is", "episcopalian", "and", "diagnoses", "long", "title", "is", "personal", "history", "of", "malignant", "neoplasm", "of", "large", "intestine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"religion\"", "=", "\"episcopalian\"", "and", "diagnoses.\"long_title\"", "=", "\"personal", "history", "of", "malignant", "neoplasm", "of", "large", "intestine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"EPISCOPALIAN\" AND DIAGNOSES.\"LONG_TITLE\" = \"Personal history of malignant neoplasm of large intestine\"", "question_refine": "count the number of patients whose religion is episcopalian and diagnoses long title is personal history of malignant neoplasm of large intestine?", "key": "46113b184d73a27b05f1ce2fe953464c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 8, 0, "ROMANIAN EAST. ORTH"], [4, 2, 0, 51251]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "religion", "is", "romanian", "east", ".", "orth", "and", "item", "i", "d", "is", "51251", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"religion\"", "=", "\"romanian", "east.", "orth\"", "and", "lab.\"itemid\"", "=", "\"51251\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"ROMANIAN EAST. ORTH\" AND LAB.\"ITEMID\" = \"51251\"", "question_refine": "what is the number of patients whose religion is romanian east. orth and item id is 51251?", "key": "b693977fa968f0a3985e37ebd83bf3a0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 8, 0, "CATHOLIC"], [4, 6, 0, "Absolute CD3 Count"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "religion", "is", "catholic", "and", "lab", "test", "name", "is", "absolute", "cd3", "count", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"religion\"", "=", "\"catholic\"", "and", "lab.\"label\"", "=", "\"absolute", "cd3", "count\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"RELIGION\" = \"CATHOLIC\" AND LAB.\"LABEL\" = \"Absolute CD3 Count\"", "question_refine": "what is the number of patients whose religion is catholic and lab test name is absolute cd3 count?", "key": "bbf4d8e02c8a60a3a16fb4916e755f35"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 14, 0, "PHYS REFERRAL/NORMAL DELI"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "and", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\"", "question_refine": "give me the number of patients whose admission type is newborn and admission location is phys referral/normal deli?", "key": "45fbde33343acb9963f391a212b20671"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 14, 0, "EMERGENCY ROOM ADMIT"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "admission", "location", "is", "emergency", "room", "admit", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\"", "question_refine": "what is the number of patients whose admission type is emergency and admission location is emergency room admit?", "key": "6ebf51becbfccd6987454dabe9af1879"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 16, 0, "STEMI"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "primary", "disease", "is", "stemi", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"diagnosis\"", "=", "\"stemi\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"STEMI\"", "question_refine": "what is the number of patients whose admission type is elective and primary disease is stemi?", "key": "472a90a26a3ffa0553b786c2d07beffa"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "squamous", "cell", "carcinoma", "oral", "tongue", "/", "sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"squamous", "cell", "carcinoma", "oral", "tongue/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA\"", "question_refine": "provide the number of patients whose admission type is emergency and primary disease is squamous cell carcinoma oral tongue/sda?", "key": "a7da800d6641542ffdf3c074abc7c41d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "BOWEL OBSTRUCTION"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "bowel", "obstruction", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"bowel", "obstruction\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BOWEL OBSTRUCTION\"", "question_refine": "provide the number of patients whose admission type is emergency and primary disease is bowel obstruction?", "key": "1876348c3bc540ce1f44a9ec1f72e215"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 4, 2, 68]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "age", "is", "less", "than", "68", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"age\"", "<", "\"68\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"AGE\" < \"68\"", "question_refine": "give me the number of patients whose admission type is emergency and age is less than 68?", "key": "b65a4995b183d67f75b1bac63931d00c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 10, 1, 4]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"days_stay\"", ">", "\"4\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"4\"", "question_refine": "count the number of patients whose admission type is urgent and days of hospital stay is greater than 4?", "key": "43286f58c33032354f6195f2ff7d8616"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "NEWBORN"], [0, 10, 1, 8]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "8", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "demographic.\"days_stay\"", ">", "\"8\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"8\"", "question_refine": "count the number of patients whose admission type is newborn and days of hospital stay is greater than 8?", "key": "a264484e2988c9273a946f72a7ce2eec"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 22, 2, 2203]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "admission", "year", "is", "less", "than", "2203", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"admityear\"", "<", "\"2203\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2203\"", "question_refine": "what is the number of patients whose admission type is elective and admission year is less than 2203?", "key": "38bec3beb6ed8e4b6059d83b4029e47e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 2, 0, "99813"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "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.\"admission_type\"", "=", "\"urgent\"", "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.\"ADMISSION_TYPE\" = \"URGENT\" AND DIAGNOSES.\"ICD9_CODE\" = \"99813\"", "question_refine": "count the number of patients whose admission type is urgent and diagnoses icd9 code is 99813?", "key": "d22e0b282ca9735ffb32673bb86db853"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 2, 0, "5939"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "diagnoses", "icd9", "code", "is", "5939", "?"], "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\"", "=", "\"5939\""], "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\" = \"5939\"", "question_refine": "provide the number of patients whose admission type is urgent and diagnoses icd9 code is 5939?", "key": "d77c95a219a5fe27c8063a15d56aa16a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "ELECTIVE"], [1, 2, 0, "42789"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "diagnoses", "icd9", "code", "is", "42789", "?"], "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\"", "=", "\"42789\""], "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\" = \"42789\"", "question_refine": "count the number of patients whose admission type is elective and diagnoses icd9 code is 42789?", "key": "dcc7044cfae720b6498e95106a613e03"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 3, 0, "Poison-psychotropic agt"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "diagnoses", "short", "title", "is", "poison", "-", "psychotropic", "agt", "?"], "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.\"short_title\"", "=", "\"poison-psychotropic", "agt\""], "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.\"SHORT_TITLE\" = \"Poison-psychotropic agt\"", "question_refine": "give me the number of patients whose admission type is urgent and diagnoses short title is poison-psychotropic agt?", "key": "e51ddfd422981b1a7f038b6d66982b62"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "ELECTIVE"], [1, 4, 0, "Blood in stool"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "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.\"admission_type\"", "=", "\"elective\"", "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.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DIAGNOSES.\"LONG_TITLE\" = \"Blood in stool\"", "question_refine": "provide the number of patients whose admission type is elective and diagnoses long title is blood in stool?", "key": "b2376360423a093741cbc3b9644a7764"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "ELECTIVE"], [1, 4, 0, "Other and unspecified open wound of head without mention of complication"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "diagnoses", "long", "title", "is", "other", "and", "unspecified", "open", "wound", "of", "head", "without", "mention", "of", "complication", "?"], "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\"", "=", "\"other", "and", "unspecified", "open", "wound", "of", "head", "without", "mention", "of", "complication\""], "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\" = \"Other and unspecified open wound of head without mention of complication\"", "question_refine": "provide the number of patients whose admission type is elective and diagnoses long title is other and unspecified open wound of head without mention of complication?", "key": "3daf7f6a2433ccb14c07a856a39df35d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 9, 0, "URGENT"], [1, 4, 0, "Other shock without mention of trauma"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "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", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "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 DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DIAGNOSES.\"LONG_TITLE\" = \"Other shock without mention of trauma\"", "question_refine": "give me the number of patients whose admission type is urgent and diagnoses long title is other shock without mention of trauma?", "key": "449b3ea74817cb58539ffdc559134722"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 2, 0, 4610]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "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.\"admission_type\"", "=", "\"urgent\"", "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.\"ADMISSION_TYPE\" = \"URGENT\" AND PROCEDURES.\"ICD9_CODE\" = \"4610\"", "question_refine": "how many patients whose admission type is urgent and procedure icd9 code is 4610?", "key": "c92e6f2e27389b8b2d53e47b003c87bc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 2, 0, 4611]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "icd9", "code", "is", "4611", "?"], "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\"", "=", "\"4611\""], "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\" = \"4611\"", "question_refine": "provide the number of patients whose admission type is elective and procedure icd9 code is 4611?", "key": "8fa57fea62a1a43bf60a7a6e2bebc925"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 2, 0, 309]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "icd9", "code", "is", "309", "?"], "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\"", "=", "\"309\""], "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\" = \"309\"", "question_refine": "how many patients whose admission type is emergency and procedure icd9 code is 309?", "key": "e3149e0980fea9c5b9ff5b9b286196ac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 2, 0, 5185]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "icd9", "code", "is", "5185", "?"], "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\"", "=", "\"5185\""], "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\" = \"5185\"", "question_refine": "provide the number of patients whose admission type is emergency and procedure icd9 code is 5185?", "key": "f1f5914b4d9ae710605213613ad68149"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 2, 0, 66]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "icd9", "code", "is", "66", "?"], "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\"", "=", "\"66\""], "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\" = \"66\"", "question_refine": "how many patients whose admission type is emergency and procedure icd9 code is 66?", "key": "4ccda2671985747d57b988a6ea0899e2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 3, 0, "Spinal tap"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "short", "title", "is", "spinal", "tap", "?"], "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\"", "=", "\"spinal", "tap\""], "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\" = \"Spinal tap\"", "question_refine": "count the number of patients whose admission type is urgent and procedure short title is spinal tap?", "key": "3e8aa882711cab4ded13c22a8ba50131"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 3, 0, "Nasal sinus dx proc NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "short", "title", "is", "nasal", "sinus", "dx", "proc", "nec", "?"], "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\"", "=", "\"nasal", "sinus", "dx", "proc", "nec\""], "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\" = \"Nasal sinus dx proc NEC\"", "question_refine": "what is the number of patients whose admission type is emergency and procedure short title is nasal sinus dx proc nec?", "key": "5e5968be48a2634b6e8c6f2749949a30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "URGENT"], [2, 4, 0, "Open and other right hemicolectomy"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "procedure", "long", "title", "is", "open", "and", "other", "right", "hemicolectomy", "?"], "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\"", "=", "\"open", "and", "other", "right", "hemicolectomy\""], "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\" = \"Open and other right hemicolectomy\"", "question_refine": "how many patients whose admission type is urgent and procedure long title is open and other right hemicolectomy?", "key": "d5284e11527e552c9c956e292b04061a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 4, 0, "(Aorto)coronary bypass of three coronary arteries"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "long", "title", "is", "(", "aorto)coronary", "bypass", "of", "three", "coronary", "arteries", "?"], "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\"", "=", "\"(aorto)coronary", "bypass", "of", "three", "coronary", "arteries\""], "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\" = \"(Aorto)coronary bypass of three coronary arteries\"", "question_refine": "what is the number of patients whose admission type is elective and procedure long title is (aorto)coronary bypass of three coronary arteries?", "key": "cc14181f553319768dbd319149256d0b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "ELECTIVE"], [2, 4, 0, "Fiber-optic bronchoscopy"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "procedure", "long", "title", "is", "fiber", "-", "optic", "bronchoscopy", "?"], "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\"", "=", "\"fiber-optic", "bronchoscopy\""], "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\" = \"Fiber-optic bronchoscopy\"", "question_refine": "what is the number of patients whose admission type is elective and procedure long title is fiber-optic bronchoscopy?", "key": "bad0ebad9a06faea4ff1ce877e81897c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 9, 0, "EMERGENCY"], [2, 4, 0, "Incision of vessel, abdominal arteries"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "procedure", "long", "title", "is", "incision", "of", "vessel", ",", "abdominal", "arteries", "?"], "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.\"long_title\"", "=", "\"incision", "of", "vessel", "abdominal", "arteries\""], "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.\"LONG_TITLE\" = \"Incision of vessel, abdominal arteries\"", "question_refine": "how many patients whose admission type is emergency and procedure long title is incision of vessel, abdominal arteries?", "key": "8d94b1135a3afe272b57bdc72ad3252b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "NEWBORN"], [3, 4, 0, "Metronidazole"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "and", "drug", "name", "is", "metronidazole", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "prescriptions.\"drug\"", "=", "\"metronidazole\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND PRESCRIPTIONS.\"DRUG\" = \"Metronidazole\"", "question_refine": "provide the number of patients whose admission type is newborn and drug name is metronidazole?", "key": "43f8995ee7a6333af6fbf7ac6e294c98"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "ELECTIVE"], [3, 4, 0, "Vitamin D"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "drug", "name", "is", "vitamin", "d", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "prescriptions.\"drug\"", "=", "\"vitamin", "d\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PRESCRIPTIONS.\"DRUG\" = \"Vitamin D\"", "question_refine": "provide the number of patients whose admission type is elective and drug name is vitamin d?", "key": "3747d5579f2eb799a253f02971ceb57d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "ELECTIVE"], [3, 4, 0, "Succinylcholine"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "drug", "name", "is", "succinylcholine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "prescriptions.\"drug\"", "=", "\"succinylcholine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PRESCRIPTIONS.\"DRUG\" = \"Succinylcholine\"", "question_refine": "what is the number of patients whose admission type is elective and drug name is succinylcholine?", "key": "0906b928beae931d3513e5d18f946381"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 4, 0, "Calcium Carbonate"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "name", "is", "calcium", "carbonate", "?"], "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\"", "=", "\"calcium", "carbonate\""], "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\" = \"Calcium Carbonate\"", "question_refine": "how many patients whose admission type is urgent and drug name is calcium carbonate?", "key": "08fe101ab8ea26652758d8ead557ab05"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 4, 0, "Vitamin B Complex"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "emergency", "and", "drug", "name", "is", "vitamin", "b", "complex", "?"], "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\"", "=", "\"vitamin", "b", "complex\""], "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\" = \"Vitamin B Complex\"", "question_refine": "how many patients whose admission type is emergency and drug name is vitamin b complex?", "key": "35360848cbc7d357ec599a16fe682a38"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "ELECTIVE"], [3, 4, 0, "Famvir"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "drug", "name", "is", "famvir", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "prescriptions.\"drug\"", "=", "\"famvir\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PRESCRIPTIONS.\"DRUG\" = \"Famvir\"", "question_refine": "provide the number of patients whose admission type is elective and drug name is famvir?", "key": "b99ebec3437824f46a70eca591690140"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 4, 0, "Aspirin"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "name", "is", "aspirin", "?"], "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\"", "=", "\"aspirin\""], "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\" = \"Aspirin\"", "question_refine": "give me the number of patients whose admission type is urgent and drug name is aspirin?", "key": "b3c2eca1c2d552072c951337fe42d4dc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "ELECTIVE"], [3, 4, 0, "Milk of Magnesia"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "elective", "and", "drug", "name", "is", "milk", "of", "magnesia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "prescriptions.\"drug\"", "=", "\"milk", "of", "magnesia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND PRESCRIPTIONS.\"DRUG\" = \"Milk of Magnesia\"", "question_refine": "how many patients whose admission type is elective and drug name is milk of magnesia?", "key": "4f7974404745e9c8059ab1b37e68cc71"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "URGENT"], [3, 6, 0, "OU"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "drug", "route", "is", "ou", "?"], "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\"", "=", "\"ou\""], "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\" = \"OU\"", "question_refine": "what is the number of patients whose admission type is urgent and drug route is ou?", "key": "f354233e961520137fa7dda9a7648856"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "NEWBORN"], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "newborn", "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\"", "=", "\"newborn\"", "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\" = \"NEWBORN\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "provide the number of patients whose admission type is newborn and drug route is neb?", "key": "7e3676f016f2962177752df1797464b8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 9, 0, "EMERGENCY"], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "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\"", "=", "\"emergency\"", "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\" = \"EMERGENCY\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "count the number of patients whose admission type is emergency and drug route is neb?", "key": "8d0f066f54f0127c5477a2379f6dba98"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "URGENT"], [4, 2, 0, 50980]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "item", "i", "d", "is", "50980", "?"], "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.\"itemid\"", "=", "\"50980\""], "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.\"ITEMID\" = \"50980\"", "question_refine": "provide the number of patients whose admission type is urgent and item id is 50980?", "key": "22d7f8d2b28696d487da0020021d429b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 2, 0, 51256]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "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", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "lab.\"itemid\"", "=", "\"51256\""], "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\" = \"51256\"", "question_refine": "provide the number of patients whose admission type is elective and item id is 51256?", "key": "34c89e2fdbc8025f2633d6008c19f1cd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 2, 0, 51466]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "item", "i", "d", "is", "51466", "?"], "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\"", "=", "\"51466\""], "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\" = \"51466\"", "question_refine": "what is the number of patients whose admission type is elective and item id is 51466?", "key": "87be58f3c79ee649ccff89abd4024e9d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 2, 0, 50927]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "elective", "and", "item", "i", "d", "is", "50927", "?"], "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\"", "=", "\"50927\""], "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\" = \"50927\"", "question_refine": "how many patients whose admission type is elective and item id is 50927?", "key": "a1e8dc79f144ddf7fa70d612f6b99ba2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "NEWBORN"], [4, 2, 0, 51276]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "type", "is", "newborn", "and", "item", "i", "d", "is", "51276", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_type\"", "=", "\"newborn\"", "and", "lab.\"itemid\"", "=", "\"51276\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"NEWBORN\" AND LAB.\"ITEMID\" = \"51276\"", "question_refine": "how many patients whose admission type is newborn and item id is 51276?", "key": "e00e61f23255dba85e68c2da59cac2b3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "URGENT"], [4, 6, 0, "Macrophage"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "lab", "test", "name", "is", "macrophage", "?"], "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.\"label\"", "=", "\"macrophage\""], "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.\"LABEL\" = \"Macrophage\"", "question_refine": "count the number of patients whose admission type is urgent and lab test name is macrophage?", "key": "74f8611927b988fe07c5d4f9d4a52eb5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "URGENT"], [4, 6, 0, "Glucose, Body Fluid"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "lab", "test", "name", "is", "glucose", ",", "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\"", "=", "\"urgent\"", "and", "lab.\"label\"", "=", "\"glucose", "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\" = \"URGENT\" AND LAB.\"LABEL\" = \"Glucose, Body Fluid\"", "question_refine": "provide the number of patients whose admission type is urgent and lab test name is glucose, body fluid?", "key": "b2566436bece8c95204c8d62dc47c773"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "ELECTIVE"], [4, 6, 0, "Mesothelial cells"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "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", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "lab.\"label\"", "=", "\"mesothelial", "cells\""], "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\" = \"Mesothelial cells\"", "question_refine": "give me the number of patients whose admission type is elective and lab test name is mesothelial cells?", "key": "213a05ddcd2aefec09dd3be67b17d1d6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "Lymphs"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "lymphs", "?"], "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\"", "=", "\"lymphs\""], "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\" = \"Lymphs\"", "question_refine": "count the number of patients whose admission type is emergency and lab test name is lymphs?", "key": "43bea1dff21d53159a8c6cca972fe92b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 9, 0, "EMERGENCY"], [4, 6, 0, "CD3 Cells, Percent"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "lab", "test", "name", "is", "cd3", "cells", ",", "percent", "?"], "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\"", "=", "\"cd3", "cells", "percent\""], "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\" = \"CD3 Cells, Percent\"", "question_refine": "give me the number of patients whose admission type is emergency and lab test name is cd3 cells, percent?", "key": "397fc066fe70992b9b1732358b5d40de"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Government"], [0, 14, 0, "EMERGENCY ROOM ADMIT"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "admission", "location", "is", "emergency", "room", "admit", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"government\"", "and", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\"", "question_refine": "give me the number of patients whose insurance is government and admission location is emergency room admit?", "key": "bdc6f0ece3e447ccfcce3bdffbcfc947"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "st", "elevated", "myocardial", "infarction\\cardiac", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"st", "elevated", "myocardial", "infarction\\cardiac", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH\"", "question_refine": "what is the number of patients whose insurance is medicaid and primary disease is st elevated myocardial infarction\\cardiac cath?", "key": "619f21c36fe2a388c3754575d37c1e3d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "PNEUMONIA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "pneumonia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"pneumonia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\"", "question_refine": "provide the number of patients whose insurance is medicaid and primary disease is pneumonia?", "key": "ef8e452d4923683c16dcda30915d61c6"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT /SDA\"", "question_refine": "what is the number of patients whose insurance is medicaid and primary disease is coronary artery disease\\coronary artery bypass graft /sda?", "key": "e1f014c0327f5ec282b28c5bd0703721"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 11, 0, "Private"], [0, 10, 1, 8]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "8", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"private\"", "and", "demographic.\"days_stay\"", ">", "\"8\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Private\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"8\"", "question_refine": "what is the number of patients whose insurance is private and days of hospital stay is greater than 8?", "key": "e2f141e3e486e4c12efbf072fec98e30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicare"], [1, 2, 0, "79439"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "diagnoses", "icd9", "code", "is", "79439", "?"], "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\"", "=", "\"79439\""], "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\" = \"79439\"", "question_refine": "provide the number of patients whose insurance is medicare and diagnoses icd9 code is 79439?", "key": "21b8dbcffe8d474b9a90040ebccf845b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicaid"], [1, 3, 0, "Drug induced neutropenia"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "diagnoses", "short", "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.\"insurance\"", "=", "\"medicaid\"", "and", "diagnoses.\"short_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.\"INSURANCE\" = \"Medicaid\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Drug induced neutropenia\"", "question_refine": "give me the number of patients whose insurance is medicaid and diagnoses short title is drug induced neutropenia?", "key": "8c239d0af31647450391ab8dad799230"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 3, 0, "Gstr/ddnts NOS w/o hmrhg"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "short", "title", "is", "gstr", "/", "ddnts", "nos", "w/o", "hmrhg", "?"], "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\"", "=", "\"gstr/ddnts", "nos", "w/o", "hmrhg\""], "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\" = \"Gstr/ddnts NOS w/o hmrhg\"", "question_refine": "provide the number of patients whose insurance is self pay and diagnoses short title is gstr/ddnts nos w/o hmrhg?", "key": "d57f7cdb6c4512f54a59b2ecca02fdfc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicare"], [1, 3, 0, "Iatrogenc hypotnsion NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicare", "and", "diagnoses", "short", "title", "is", "iatrogenc", "hypotnsion", "nec", "?"], "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.\"short_title\"", "=", "\"iatrogenc", "hypotnsion", "nec\""], "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.\"SHORT_TITLE\" = \"Iatrogenc hypotnsion NEC\"", "question_refine": "how many patients whose insurance is medicare and diagnoses short title is iatrogenc hypotnsion nec?", "key": "59421f626e36a47db0ac2881742dff27"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Self Pay"], [1, 3, 0, "Parox ventric tachycard"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "diagnoses", "short", "title", "is", "parox", "ventric", "tachycard", "?"], "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\"", "=", "\"parox", "ventric", "tachycard\""], "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\" = \"Parox ventric tachycard\"", "question_refine": "provide the number of patients whose insurance is self pay and diagnoses short title is parox ventric tachycard?", "key": "92a089c600dd35f09d1772668ad31543"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Government"], [1, 4, 0, "Alzheimer's disease"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "government", "and", "diagnoses", "long", "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.\"insurance\"", "=", "\"government\"", "and", "diagnoses.\"long_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.\"INSURANCE\" = \"Government\" AND DIAGNOSES.\"LONG_TITLE\" = \"Alzheimer's disease\"", "question_refine": "how many patients whose insurance is government and diagnoses long title is alzheimer's disease?", "key": "3527eedf5bf74743d07dea87cddcc583"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicare"], [1, 4, 0, "Body Mass Index less than 19, adult"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "diagnoses", "long", "title", "is", "body", "mass", "index", "less", "than", "19", ",", "adult", "?"], "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.\"long_title\"", "=", "\"body", "mass", "index", "less", "than", "19", "adult\""], "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.\"LONG_TITLE\" = \"Body Mass Index less than 19, adult\"", "question_refine": "give me the number of patients whose insurance is medicare and diagnoses long title is body mass index less than 19, adult?", "key": "68ba59121b26789c14a9c5a1b2221a48"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 11, 0, "Medicare"], [1, 4, 0, "Acute myocardial infarction of inferolateral wall, initial episode of care"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicare", "and", "diagnoses", "long", "title", "is", "acute", "myocardial", "infarction", "of", "inferolateral", "wall", ",", "initial", "episode", "of", "care", "?"], "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.\"long_title\"", "=", "\"acute", "myocardial", "infarction", "of", "inferolateral", "wall", "initial", "episode", "of", "care\""], "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.\"LONG_TITLE\" = \"Acute myocardial infarction of inferolateral wall, initial episode of care\"", "question_refine": "how many patients whose insurance is medicare and diagnoses long title is acute myocardial infarction of inferolateral wall, initial episode of care?", "key": "545caa9b0fbe20015858e7642a06c817"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Private"], [2, 3, 0, "Ureteral catheterization"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "private", "and", "procedure", "short", "title", "is", "ureteral", "catheterization", "?"], "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\"", "=", "\"ureteral", "catheterization\""], "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\" = \"Ureteral catheterization\"", "question_refine": "give me the number of patients whose insurance is private and procedure short title is ureteral catheterization?", "key": "b5834f5df75e247f031d44fd5e2d431e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 3, 0, "Incision of aorta"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "short", "title", "is", "incision", "of", "aorta", "?"], "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.\"short_title\"", "=", "\"incision", "of", "aorta\""], "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.\"SHORT_TITLE\" = \"Incision of aorta\"", "question_refine": "give me the number of patients whose insurance is government and procedure short title is incision of aorta?", "key": "e315412f936cbba076db8af18186cf9a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 3, 0, "Radiotherapeut proc NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "government", "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.\"insurance\"", "=", "\"government\"", "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.\"INSURANCE\" = \"Government\" AND PROCEDURES.\"SHORT_TITLE\" = \"Radiotherapeut proc NEC\"", "question_refine": "how many patients whose insurance is government and procedure short title is radiotherapeut proc nec?", "key": "1b30962d26f84d23868d180ee69e3331"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 3, 0, "Aortocor bypas-2 cor art"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "short", "title", "is", "aortocor", "bypas-2", "cor", "art", "?"], "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.\"short_title\"", "=", "\"aortocor", "bypas-2", "cor", "art\""], "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.\"SHORT_TITLE\" = \"Aortocor bypas-2 cor art\"", "question_refine": "what is the number of patients whose insurance is government and procedure short title is aortocor bypas-2 cor art?", "key": "1d538f9789e2b8a593254002beed8493"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 3, 0, "Open reduc-int fix femur"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "short", "title", "is", "open", "reduc", "-", "int", "fix", "femur", "?"], "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.\"short_title\"", "=", "\"open", "reduc-int", "fix", "femur\""], "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.\"SHORT_TITLE\" = \"Open reduc-int fix femur\"", "question_refine": "provide the number of patients whose insurance is government and procedure short title is open reduc-int fix femur?", "key": "65813b37af2ed65abdf3f6deb85f5730"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Medicaid"], [2, 3, 0, "Conduit left ventr-aorta"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "procedure", "short", "title", "is", "conduit", "left", "ventr", "-", "aorta", "?"], "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.\"short_title\"", "=", "\"conduit", "left", "ventr-aorta\""], "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.\"SHORT_TITLE\" = \"Conduit left ventr-aorta\"", "question_refine": "what is the number of patients whose insurance is medicaid and procedure short title is conduit left ventr-aorta?", "key": "77241ffd63218d442267cdde2f570c3b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Colonoscopy"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "title", "is", "colonoscopy", "?"], "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\"", "=", "\"colonoscopy\""], "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\" = \"Colonoscopy\"", "question_refine": "how many patients whose insurance is government and procedure long title is colonoscopy?", "key": "cc6cb4b64dd79b020489c3641bb5819d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Radical cystectomy"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "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", "demographic.\"insurance\"", "=", "\"government\"", "and", "procedures.\"long_title\"", "=", "\"radical", "cystectomy\""], "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\" = \"Radical cystectomy\"", "question_refine": "provide the number of patients whose insurance is government and procedure long title is radical cystectomy?", "key": "f0298876c57745092b4c723f0820eeb0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Drug detoxification"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "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", "demographic.\"insurance\"", "=", "\"government\"", "and", "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 DEMOGRAPHIC.\"INSURANCE\" = \"Government\" AND PROCEDURES.\"LONG_TITLE\" = \"Drug detoxification\"", "question_refine": "provide the number of patients whose insurance is government and procedure long title is drug detoxification?", "key": "0a04cc1f047716fdd956d5a7f44fe56a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Umbilical vein catheterization"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "title", "is", "umbilical", "vein", "catheterization", "?"], "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\"", "=", "\"umbilical", "vein", "catheterization\""], "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\" = \"Umbilical vein catheterization\"", "question_refine": "provide the number of patients whose insurance is government and procedure long title is umbilical vein catheterization?", "key": "a0cb5a9e1449b65cc0d6bc6c8ff0fb62"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Government"], [2, 4, 0, "Local excision of lesion or tissue of bone, scapula, clavicle, and thorax [ribs and sternum]"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "insurance", "is", "government", "and", "procedure", "long", "title", "is", "local", "excision", "of", "lesion", "or", "tissue", "of", "bone", ",", "scapula", ",", "clavicle", ",", "and", "thorax", "[", "ribs", "and", "sternum", "]", "?"], "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\"", "=", "\"local", "excision", "of", "lesion", "or", "tissue", "of", "bone", "scapula", "clavicle", "and", "thorax", "[ribs", "and", "sternum]\""], "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\" = \"Local excision of lesion or tissue of bone, scapula, clavicle, and thorax [ribs and sternum]\"", "question_refine": "provide the number of patients whose insurance is government and procedure long title is local excision of lesion or tissue of bone, scapula, clavicle, and thorax [ribs and sternum]?", "key": "5f9a87e7626d225e359c64d1fa5e1cb8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Self Pay"], [2, 4, 0, "Open biopsy of soft tissue"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "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.\"insurance\"", "=", "\"self", "pay\"", "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.\"INSURANCE\" = \"Self Pay\" AND PROCEDURES.\"LONG_TITLE\" = \"Open biopsy of soft tissue\"", "question_refine": "give me the number of patients whose insurance is self pay and procedure long title is open biopsy of soft tissue?", "key": "b6c2018646f23d1d30b7e5c6611e5e25"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 11, 0, "Self Pay"], [2, 4, 0, "Other unilateral salpingo-oophorectomy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "insurance", "is", "self", "pay", "and", "procedure", "long", "title", "is", "other", "unilateral", "salpingo", "-", "oophorectomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"insurance\"", "=", "\"self", "pay\"", "and", "procedures.\"long_title\"", "=", "\"other", "unilateral", "salpingo-oophorectomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\" AND PROCEDURES.\"LONG_TITLE\" = \"Other unilateral salpingo-oophorectomy\"", "question_refine": "count the number of patients whose insurance is self pay and procedure long title is other unilateral salpingo-oophorectomy?", "key": "83aba8eb2a1e70c5aa47f1b33c3fe82f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Medicare"], [4, 6, 0, "Albumin/Creatinine, Urine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "insurance", "is", "medicare", "and", "lab", "test", "name", "is", "albumin", "/", "creatinine", ",", "urine", "?"], "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\"", "=", "\"albumin/creatinine", "urine\""], "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\" = \"Albumin/Creatinine, Urine\"", "question_refine": "how many patients whose insurance is medicare and lab test name is albumin/creatinine, urine?", "key": "3acd04f56bd59cc5835f94aaa2f8216a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 11, 0, "Medicare"], [4, 6, 0, "Reticulocyte Count, Automated"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "insurance", "is", "medicare", "and", "lab", "test", "name", "is", "reticulocyte", "count", ",", "automated", "?"], "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\"", "=", "\"reticulocyte", "count", "automated\""], "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\" = \"Reticulocyte Count, Automated\"", "question_refine": "what is the number of patients whose insurance is medicare and lab test name is reticulocyte count, automated?", "key": "19e04a82bc85aeeb2f9cdd66fb895990"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"], [0, 16, 0, "AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "and", "primary", "disease", "is", "aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\"", "and", "demographic.\"diagnosis\"", "=", "\"aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA\"", "question_refine": "provide the number of patients whose ethnicity is black/cape verdean and primary disease is aortic valve insuffiency\\aortic valve replacement /sda?", "key": "faf45943b90f4ae99ba001bd318f8c53"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/AFRICAN AMERICAN"], [0, 4, 2, 80]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "african", "american", "and", "age", "is", "less", "than", "80", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/african", "american\"", "and", "demographic.\"age\"", "<", "\"80\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/AFRICAN AMERICAN\" AND DEMOGRAPHIC.\"AGE\" < \"80\"", "question_refine": "what is the number of patients whose ethnicity is black/african american and age is less than 80?", "key": "cb98f4c6bd087e7b8206506c4c214ed1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 4, 2, 47]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "age", "is", "less", "than", "47", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"age\"", "<", "\"47\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"AGE\" < \"47\"", "question_refine": "what is the number of patients whose ethnicity is asian and age is less than 47?", "key": "d727f4594fb718a14b8cf7cd4995e5c1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "BLACK/AFRICAN AMERICAN"], [0, 10, 1, 0]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "african", "american", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "0", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/african", "american\"", "and", "demographic.\"days_stay\"", ">", "\"0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/AFRICAN AMERICAN\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"0\"", "question_refine": "provide the number of patients whose ethnicity is black/african american and days of hospital stay is greater than 0?", "key": "d5ff49e45231ef5594b4fda278ae2184"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 18, 2, 2101]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "year", "of", "birth", "is", "less", "than", "2101", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"dob_year\"", "<", "\"2101\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2101\"", "question_refine": "provide the number of patients whose ethnicity is white - russian and year of birth is less than 2101?", "key": "fc0f9e241a8d95d5c90bce06e37ef94e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 18, 2, 1846]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "year", "of", "birth", "is", "less", "than", "1846", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"dob_year\"", "<", "\"1846\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1846\"", "question_refine": "what is the number of patients whose ethnicity is white - russian and year of birth is less than 1846?", "key": "b51be462226349b33f5a50ab05825910"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [0, 18, 2, 2109]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "year", "of", "birth", "is", "less", "than", "2109", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "demographic.\"dob_year\"", "<", "\"2109\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2109\"", "question_refine": "provide the number of patients whose ethnicity is hispanic or latino and year of birth is less than 2109?", "key": "e5ce8c035546cf1a53e4f29488ec4d5e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"], [0, 18, 2, 2200]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "and", "year", "of", "birth", "is", "less", "than", "2200", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\"", "and", "demographic.\"dob_year\"", "<", "\"2200\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2200\"", "question_refine": "give me the number of patients whose ethnicity is hispanic/latino - puerto rican and year of birth is less than 2200?", "key": "ccb4e4fc6b58520fdfe032873be71825"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "ASIAN"], [0, 19, 4, 2148.0]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2148", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"asian\"", "and", "demographic.\"dod_year\"", "<=", "\"2148.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"ASIAN\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2148.0\"", "question_refine": "give me the number of patients whose ethnicity is asian and year of death is less than or equal to 2148?", "key": "511ffd696cbc49848fbd58e6528f56cd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 22, 2, 2139]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "admission", "year", "is", "less", "than", "2139", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"admityear\"", "<", "\"2139\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2139\"", "question_refine": "what is the number of patients whose ethnicity is american indian/alaska native and admission year is less than 2139?", "key": "2362228a30eaa8948f4bbc84e34dc0a6"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [0, 22, 2, 2144]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "admission", "year", "is", "less", "than", "2144", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "demographic.\"admityear\"", "<", "\"2144\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2144\"", "question_refine": "give me the number of patients whose ethnicity is american indian/alaska native and admission year is less than 2144?", "key": "4b0397ddb5f2bbde620e81cedd1b9a7e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 2, 0, "7069"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "icd9", "code", "is", "7069", "?"], "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.\"icd9_code\"", "=", "\"7069\""], "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.\"ICD9_CODE\" = \"7069\"", "question_refine": "what is the number of patients whose ethnicity is white and diagnoses icd9 code is 7069?", "key": "35b737f5e83b39a26567716ab9ae880f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [1, 3, 0, "Crbl art ocl NOS w infrc"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "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", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "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 DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Crbl art ocl NOS w infrc\"", "question_refine": "count the number of patients whose ethnicity is hispanic or latino and diagnoses short title is crbl art ocl nos w infrc?", "key": "ac2ef63b4d7ebc1d3f0e18d97edcf5fe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 3, 0, "Retain plastic fragments"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "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", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "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 DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Retain plastic fragments\"", "question_refine": "provide the number of patients whose ethnicity is white and diagnoses short title is retain plastic fragments?", "key": "c1f14f3ff81a9ae21e3eaad790d7d81c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "ASIAN"], [1, 3, 0, "Suicidal ideation"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "diagnoses", "short", "title", "is", "suicidal", "ideation", "?"], "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.\"short_title\"", "=", "\"suicidal", "ideation\""], "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.\"SHORT_TITLE\" = \"Suicidal ideation\"", "question_refine": "count the number of patients whose ethnicity is asian and diagnoses short title is suicidal ideation?", "key": "724258cea2980fb0ae2b0b7ee15869be"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 4, 0, "Mechanical complication due to other implant and internal device, not elsewhere classified"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "long", "title", "is", "mechanical", "complication", "due", "to", "other", "implant", "and", "internal", "device", ",", "not", "elsewhere", "classified", "?"], "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.\"long_title\"", "=", "\"mechanical", "complication", "due", "to", "other", "implant", "and", "internal", "device", "not", "elsewhere", "classified\""], "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.\"LONG_TITLE\" = \"Mechanical complication due to other implant and internal device, not elsewhere classified\"", "question_refine": "count the number of patients whose ethnicity is white and diagnoses long title is mechanical complication due to other implant and internal device, not elsewhere classified?", "key": "ad1f4c01cb3b6ee1add51231944b2096"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "ASIAN"], [1, 4, 0, "Major depressive affective disorder, single episode, unspecified"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "diagnoses", "long", "title", "is", "major", "depressive", "affective", "disorder", ",", "single", "episode", ",", "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\"", "=", "\"major", "depressive", "affective", "disorder", "single", "episode", "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\" = \"Major depressive affective disorder, single episode, unspecified\"", "question_refine": "count the number of patients whose ethnicity is asian and diagnoses long title is major depressive affective disorder, single episode, unspecified?", "key": "6228fcc66389f1c036f5b3bf782c38aa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [1, 4, 0, "Unspecified septicemia"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "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.\"ethnicity\"", "=", "\"white", "-", "russian\"", "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.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DIAGNOSES.\"LONG_TITLE\" = \"Unspecified septicemia\"", "question_refine": "what is the number of patients whose ethnicity is white - russian and diagnoses long title is unspecified septicemia?", "key": "15324b051443c88ff0a569cd824dfb1e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 12, 0, "WHITE"], [1, 4, 0, "Panic disorder without agoraphobia"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "diagnoses", "long", "title", "is", "panic", "disorder", "without", "agoraphobia", "?"], "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.\"long_title\"", "=", "\"panic", "disorder", "without", "agoraphobia\""], "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.\"LONG_TITLE\" = \"Panic disorder without agoraphobia\"", "question_refine": "give me the number of patients whose ethnicity is white and diagnoses long title is panic disorder without agoraphobia?", "key": "a1c27c7de161b911bb766d21c771122f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [2, 2, 0, 3950]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "procedure", "icd9", "code", "is", "3950", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "procedures.\"icd9_code\"", "=", "\"3950\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND PROCEDURES.\"ICD9_CODE\" = \"3950\"", "question_refine": "count the number of patients whose ethnicity is hispanic or latino and procedure icd9 code is 3950?", "key": "7cacda703cc1d00f67982cee702ca660"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [2, 3, 0, "Closed liver biopsy"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "procedure", "short", "title", "is", "closed", "liver", "biopsy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "procedures.\"short_title\"", "=", "\"closed", "liver", "biopsy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND PROCEDURES.\"SHORT_TITLE\" = \"Closed liver biopsy\"", "question_refine": "what is the number of patients whose ethnicity is hispanic or latino and procedure short title is closed liver biopsy?", "key": "f8c6fbb3b66365595c3abb987a3d4996"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "ASIAN"], [2, 3, 0, "Open reduc-int fix femur"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "asian", "and", "procedure", "short", "title", "is", "open", "reduc", "-", "int", "fix", "femur", "?"], "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.\"short_title\"", "=", "\"open", "reduc-int", "fix", "femur\""], "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.\"SHORT_TITLE\" = \"Open reduc-int fix femur\"", "question_refine": "how many patients whose ethnicity is asian and procedure short title is open reduc-int fix femur?", "key": "b9f130f2658cd96982cb2cbed2d9c224"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "BLACK/AFRICAN AMERICAN"], [2, 3, 0, "Radiotherapeut proc NEC"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "black", "/", "african", "american", "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.\"ethnicity\"", "=", "\"black/african", "american\"", "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.\"ETHNICITY\" = \"BLACK/AFRICAN AMERICAN\" AND PROCEDURES.\"SHORT_TITLE\" = \"Radiotherapeut proc NEC\"", "question_refine": "how many patients whose ethnicity is black/african american and procedure short title is radiotherapeut proc nec?", "key": "325bf2df7dd30fa95fe54626f01cc6f6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 12, 0, "HISPANIC OR LATINO"], [2, 4, 0, "Other phototherapy"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "or", "latino", "and", "procedure", "long", "title", "is", "other", "phototherapy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"hispanic", "or", "latino\"", "and", "procedures.\"long_title\"", "=", "\"other", "phototherapy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC OR LATINO\" AND PROCEDURES.\"LONG_TITLE\" = \"Other phototherapy\"", "question_refine": "give me the number of patients whose ethnicity is hispanic or latino and procedure long title is other phototherapy?", "key": "6e28d7c976e2be2533293daa0422dccd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [3, 4, 0, "Epoetin Alfa"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "drug", "name", "is", "epoetin", "alfa", "?"], "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.\"drug\"", "=", "\"epoetin", "alfa\""], "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.\"DRUG\" = \"Epoetin Alfa\"", "question_refine": "give me the number of patients whose ethnicity is white - russian and drug name is epoetin alfa?", "key": "7cb30b7cd3f4bac9c6e7535663015b55"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"], [3, 4, 0, "Sucralfate"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "and", "drug", "name", "is", "sucralfate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\"", "and", "prescriptions.\"drug\"", "=", "\"sucralfate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\" AND PRESCRIPTIONS.\"DRUG\" = \"Sucralfate\"", "question_refine": "provide the number of patients whose ethnicity is hispanic/latino - puerto rican and drug name is sucralfate?", "key": "f8cbe2fa84d2dbe58e5c8e84939f4191"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "ASIAN"], [3, 4, 0, "Loperamide"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "drug", "name", "is", "loperamide", "?"], "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\"", "=", "\"loperamide\""], "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\" = \"Loperamide\"", "question_refine": "what is the number of patients whose ethnicity is asian and drug name is loperamide?", "key": "81f04767e8b6634b62a80b360f09947a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [3, 4, 0, "Magnesium Oxide"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "drug", "name", "is", "magnesium", "oxide", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "prescriptions.\"drug\"", "=", "\"magnesium", "oxide\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND PRESCRIPTIONS.\"DRUG\" = \"Magnesium Oxide\"", "question_refine": "count the number of patients whose ethnicity is american indian/alaska native and drug name is magnesium oxide?", "key": "0541b195cdbb22afabbac580ac5de161"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "ASIAN"], [3, 4, 0, "Talc"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "asian", "and", "drug", "name", "is", "talc", "?"], "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\"", "=", "\"talc\""], "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\" = \"Talc\"", "question_refine": "provide the number of patients whose ethnicity is asian and drug name is talc?", "key": "dbffe50f46dd3d6d01cac133f6371eca"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"], [3, 4, 0, "Syringe"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "and", "drug", "name", "is", "syringe", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\"", "and", "prescriptions.\"drug\"", "=", "\"syringe\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\" AND PRESCRIPTIONS.\"DRUG\" = \"Syringe\"", "question_refine": "how many patients whose ethnicity is hispanic/latino - puerto rican and drug name is syringe?", "key": "69dd41bfbfee5b1811c369c02623dce9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "WHITE"], [3, 6, 0, "OU"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "ethnicity", "is", "white", "and", "drug", "route", "is", "ou", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "prescriptions.\"route\"", "=", "\"ou\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND PRESCRIPTIONS.\"ROUTE\" = \"OU\"", "question_refine": "how many patients whose ethnicity is white and drug route is ou?", "key": "25c414989e06db14d6eb781d1c5d7ce0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [3, 6, 0, "ED"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "drug", "route", "is", "ed", "?"], "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.\"route\"", "=", "\"ed\""], "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.\"ROUTE\" = \"ED\"", "question_refine": "what is the number of patients whose ethnicity is black/haitian and drug route is ed?", "key": "3320c6a99e9842921dde7dd74664776b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "BLACK/CAPE VERDEAN"], [4, 6, 0, "Potassium, Urine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "cape", "verdean", "and", "lab", "test", "name", "is", "potassium", ",", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\"", "and", "lab.\"label\"", "=", "\"potassium", "urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\" AND LAB.\"LABEL\" = \"Potassium, Urine\"", "question_refine": "provide the number of patients whose ethnicity is black/cape verdean and lab test name is potassium, urine?", "key": "efae20aa6e0ca27d65011795eb40967a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "BLACK/HAITIAN"], [4, 6, 0, "Parathyroid Hormone"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "haitian", "and", "lab", "test", "name", "is", "parathyroid", "hormone", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"black/haitian\"", "and", "lab.\"label\"", "=", "\"parathyroid", "hormone\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/HAITIAN\" AND LAB.\"LABEL\" = \"Parathyroid Hormone\"", "question_refine": "give me the number of patients whose ethnicity is black/haitian and lab test name is parathyroid hormone?", "key": "ffc18daeac06046ea5fc6babdb3831ef"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"], [4, 6, 0, "pCO2"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "and", "lab", "test", "name", "is", "pco2", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\"", "and", "lab.\"label\"", "=", "\"pco2\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\" AND LAB.\"LABEL\" = \"pCO2\"", "question_refine": "what is the number of patients whose ethnicity is american indian/alaska native and lab test name is pco2?", "key": "afcc954352a2ee2137b7f5718f6dd346"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"], [4, 6, 0, "Potassium, Whole Blood"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "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.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\"", "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.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\" AND LAB.\"LABEL\" = \"Potassium, Whole Blood\"", "question_refine": "what is the number of patients whose ethnicity is hispanic/latino - puerto rican and lab test name is potassium, whole blood?", "key": "74331294decfd34545fc4d522d0942b1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "BLACK/AFRICAN AMERICAN"], [4, 6, 0, "Protein/Creatinine Ratio"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "ethnicity", "is", "black", "/", "african", "american", "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\"", "=", "\"black/african", "american\"", "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\" = \"BLACK/AFRICAN AMERICAN\" AND LAB.\"LABEL\" = \"Protein/Creatinine Ratio\"", "question_refine": "provide the number of patients whose ethnicity is black/african american and lab test name is protein/creatinine ratio?", "key": "0500d868b3191e497659b5a87428f9bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 12, 0, "WHITE"], [4, 6, 0, "Total Protein, Body Fluid"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "ethnicity", "is", "white", "and", "lab", "test", "name", "is", "total", "protein", ",", "body", "fluid", "?"], "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\"", "=", "\"total", "protein", "body", "fluid\""], "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\" = \"Total Protein, Body Fluid\"", "question_refine": "what is the number of patients whose ethnicity is white and lab test name is total protein, body fluid?", "key": "87f92b14b677dda5d91b72538681e43b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"aortic", "valve", "insuffiency\\aortic", "valve", "replacement", "/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC VALVE INSUFFIENCY\\AORTIC VALVE REPLACEMENT /SDA\"", "question_refine": "give me the number of patients whose death status is 1 and primary disease is aortic valve insuffiency\\aortic valve replacement /sda?", "key": "2bfec19e436b9eeeed474af61be87c69"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "COLANGITIS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "colangitis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"colangitis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COLANGITIS\"", "question_refine": "how many patients whose death status is 1 and primary disease is colangitis?", "key": "f0d27880d8c7543f16fa7a3966ce7d42"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 16, 0, "FEMORAL ARTERY THROMBOSIS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "primary", "disease", "is", "femoral", "artery", "thrombosis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\"", "question_refine": "provide the number of patients whose death status is 1 and primary disease is femoral artery thrombosis?", "key": "4374b40462f878ae198421540b8e5c45"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 10, 1, 26]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"days_stay\"", ">", "\"26\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"26\"", "question_refine": "provide the number of patients whose death status is 1 and days of hospital stay is greater than 26?", "key": "b9a6c4b77ff9066f1b9dc48e8634c29d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 18, 2, 2085]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "year", "of", "birth", "is", "less", "than", "2085", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"dob_year\"", "<", "\"2085\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2085\"", "question_refine": "count the number of patients whose death status is 1 and year of birth is less than 2085?", "key": "5d9625801cb27f5a15b84e62620ab031"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 18, 2, 2090]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "year", "of", "birth", "is", "less", "than", "2090", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"dob_year\"", "<", "\"2090\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2090\"", "question_refine": "what is the number of patients whose death status is 1 and year of birth is less than 2090?", "key": "dbb0b8f5ee992d18a3e42854db2d6057"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 13, 0, 1], [0, 18, 2, 2097]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "year", "of", "birth", "is", "less", "than", "2097", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "demographic.\"dob_year\"", "<", "\"2097\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2097\"", "question_refine": "count the number of patients whose death status is 1 and year of birth is less than 2097?", "key": "2d6471f40bd4b958d9d7a3b783295010"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 2, 0, "78052"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "icd9", "code", "is", "78052", "?"], "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\"", "=", "\"78052\""], "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\" = \"78052\"", "question_refine": "give me the number of patients whose death status is 0 and diagnoses icd9 code is 78052?", "key": "5d4e5ba550f88908e98e89b3cfd43d82"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 2, 0, "V4986"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "icd9", "code", "is", "v4986", "?"], "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\"", "=", "\"v4986\""], "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\" = \"V4986\"", "question_refine": "provide the number of patients whose death status is 0 and diagnoses icd9 code is v4986?", "key": "36196b3f702c2f62089e5a374a5523ce"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 2, 0, "53550"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "icd9", "code", "is", "53550", "?"], "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\"", "=", "\"53550\""], "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\" = \"53550\"", "question_refine": "count the number of patients whose death status is 1 and diagnoses icd9 code is 53550?", "key": "fefa8137003afb784658ea5b1476d506"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 2, 0, "99662"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "icd9", "code", "is", "99662", "?"], "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\"", "=", "\"99662\""], "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\" = \"99662\"", "question_refine": "what is the number of patients whose death status is 0 and diagnoses icd9 code is 99662?", "key": "b1e4c31a3d30b87c2d80ddcb94818cbe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 3, 0, "Alcoh dep NEC/NOS-unspec"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "short", "title", "is", "alcoh", "dep", "nec", "/", "nos", "-", "unspec", "?"], "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\"", "=", "\"alcoh", "dep", "nec/nos-unspec\""], "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\" = \"Alcoh dep NEC/NOS-unspec\"", "question_refine": "what is the number of patients whose death status is 1 and diagnoses short title is alcoh dep nec/nos-unspec?", "key": "50f0bc50f78462bb7f465c91bfc37445"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 3, 0, "Meth sus pneum d/t Staph"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "short", "title", "is", "meth", "sus", "pneum", "d", "/", "t", "staph", "?"], "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\"", "=", "\"meth", "sus", "pneum", "d/t", "staph\""], "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\" = \"Meth sus pneum d/t Staph\"", "question_refine": "give me the number of patients whose death status is 1 and diagnoses short title is meth sus pneum d/t staph?", "key": "fe665a2bff3e2c83b6900e082e234907"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 3, 0, "Esophageal reflux"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "short", "title", "is", "esophageal", "reflux", "?"], "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\"", "=", "\"esophageal", "reflux\""], "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\" = \"Esophageal reflux\"", "question_refine": "provide the number of patients whose death status is 1 and diagnoses short title is esophageal reflux?", "key": "e2025175d71392a8fceb94b507d7c227"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 4, 0, "Other persistent mental disorders due to conditions classified elsewhere"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "long", "title", "is", "other", "persistent", "mental", "disorders", "due", "to", "conditions", "classified", "elsewhere", "?"], "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.\"long_title\"", "=", "\"other", "persistent", "mental", "disorders", "due", "to", "conditions", "classified", "elsewhere\""], "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.\"LONG_TITLE\" = \"Other persistent mental disorders due to conditions classified elsewhere\"", "question_refine": "count the number of patients whose death status is 1 and diagnoses long title is other persistent mental disorders due to conditions classified elsewhere?", "key": "529e0793168110e1a028bdefe02e65e4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 4, 0, "Contusion of face, scalp, and neck except eye(s)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "diagnoses", "long", "title", "is", "contusion", "of", "face", ",", "scalp", ",", "and", "neck", "except", "eye(s", ")", "?"], "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.\"long_title\"", "=", "\"contusion", "of", "face", "scalp", "and", "neck", "except", "eye(s)\""], "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.\"LONG_TITLE\" = \"Contusion of face, scalp, and neck except eye(s)\"", "question_refine": "give me the number of patients whose death status is 1 and diagnoses long title is contusion of face, scalp, and neck except eye(s)?", "key": "52d9d9c4ce66232bdb1863482153b197"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 1], [1, 4, 0, "Tietze's disease"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "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.\"expire_flag\"", "=", "\"1\"", "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.\"EXPIRE_FLAG\" = \"1\" AND DIAGNOSES.\"LONG_TITLE\" = \"Tietze's disease\"", "question_refine": "count the number of patients whose death status is 1 and diagnoses long title is tietze's disease?", "key": "dce987b6f81fbe7dfeaebaf0e569257c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 13, 0, 0], [1, 4, 0, "Tobacco use disorder"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "diagnoses", "long", "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", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "diagnoses.\"long_title\"", "=", "\"tobacco", "use", "disorder\""], "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\" = \"Tobacco use disorder\"", "question_refine": "give me the number of patients whose death status is 0 and diagnoses long title is tobacco use disorder?", "key": "9b6efb5891024062f57142f2a4988679"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 540]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "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.\"expire_flag\"", "=", "\"0\"", "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.\"EXPIRE_FLAG\" = \"0\" AND PROCEDURES.\"ICD9_CODE\" = \"540\"", "question_refine": "count the number of patients whose death status is 0 and procedure icd9 code is 540?", "key": "f2a964ffe909e9d1a45b95863756abd3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 4513]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "icd9", "code", "is", "4513", "?"], "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\"", "=", "\"4513\""], "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\" = \"4513\"", "question_refine": "give me the number of patients whose death status is 0 and procedure icd9 code is 4513?", "key": "fb70556565ecf5540a303cbe5fc3b81e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 2, 0, 3512]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "icd9", "code", "is", "3512", "?"], "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\"", "=", "\"3512\""], "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\" = \"3512\"", "question_refine": "count the number of patients whose death status is 0 and procedure icd9 code is 3512?", "key": "69ad47bdf1d39556b7d223d99ef6e545"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 13, 0, 0], [2, 4, 0, "Fiber-optic bronchoscopy"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "death", "status", "is", "0", "and", "procedure", "long", "title", "is", "fiber", "-", "optic", "bronchoscopy", "?"], "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\"", "=", "\"fiber-optic", "bronchoscopy\""], "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\" = \"Fiber-optic bronchoscopy\"", "question_refine": "how many patients whose death status is 0 and procedure long title is fiber-optic bronchoscopy?", "key": "049d61d860667e76709955acab81ca32"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 13, 0, 1], [3, 4, 0, "Baclofen"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "drug", "name", "is", "baclofen", "?"], "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\"", "=", "\"baclofen\""], "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\" = \"Baclofen\"", "question_refine": "provide the number of patients whose death status is 1 and drug name is baclofen?", "key": "e8d8d27f92ae1a4d1d0ba8b93dd1dd7c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 13, 0, 1], [3, 4, 0, "Ondansetron ODT"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "drug", "name", "is", "ondansetron", "odt", "?"], "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\"", "=", "\"ondansetron", "odt\""], "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\" = \"Ondansetron ODT\"", "question_refine": "what is the number of patients whose death status is 1 and drug name is ondansetron odt?", "key": "cc3f91d00331f0516534c9930df0a098"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 13, 0, 1], [3, 5, 0, "ALTE1/5I"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "drug", "code", "is", "alte1/5i", "?"], "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.\"formulary_drug_cd\"", "=", "\"alte1/5i\""], "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.\"FORMULARY_DRUG_CD\" = \"ALTE1/5I\"", "question_refine": "provide the number of patients whose death status is 1 and drug code is alte1/5i?", "key": "011254b06fabb22f37730843144e1d0a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 13, 0, 0], [4, 6, 0, "Hemoglobin"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "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.\"expire_flag\"", "=", "\"0\"", "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.\"EXPIRE_FLAG\" = \"0\" AND LAB.\"LABEL\" = \"Hemoglobin\"", "question_refine": "provide the number of patients whose death status is 0 and lab test name is hemoglobin?", "key": "bdb34f623d004305786ecf607ea9bee2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 13, 0, 0], [4, 6, 0, "Vancomycin"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "0", "and", "lab", "test", "name", "is", "vancomycin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "lab.\"label\"", "=", "\"vancomycin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND LAB.\"LABEL\" = \"Vancomycin\"", "question_refine": "count the number of patients whose death status is 0 and lab test name is vancomycin?", "key": "99bce595811ef5dee23580be8361c841"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 13, 0, 1], [4, 6, 0, "Total Protein, Body Fluid"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "death", "status", "is", "1", "and", "lab", "test", "name", "is", "total", "protein", ",", "body", "fluid", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"expire_flag\"", "=", "\"1\"", "and", "lab.\"label\"", "=", "\"total", "protein", "body", "fluid\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\" AND LAB.\"LABEL\" = \"Total Protein, Body Fluid\"", "question_refine": "count the number of patients whose death status is 1 and lab test name is total protein, body fluid?", "key": "812230e8fc69a252f0f3d5f09112df1c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 15, 0, "SNF"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "discharge", "location", "is", "snf", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"discharge_location\"", "=", "\"snf\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\"", "question_refine": "give me the number of patients whose admission location is trsf within this facility and discharge location is snf?", "key": "16127cb06e302d7196eafc87a579e54d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 16, 0, "LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "primary", "disease", "is", "left", "internal", "jugular", "vein", "thrombosis;left", "arm", "edema", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"diagnosis\"", "=", "\"left", "internal", "jugular", "vein", "thrombosis;left", "arm", "edema\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT INTERNAL JUGULAR VEIN THROMBOSIS;LEFT ARM EDEMA\"", "question_refine": "how many patients whose admission location is emergency room admit and primary disease is left internal jugular vein thrombosis;left arm edema?", "key": "b842d38ab34d938d5d161bc2a52f4dca"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 16, 0, "VENTRICULAR TACHYCARDIA"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "primary", "disease", "is", "ventricular", "tachycardia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"diagnosis\"", "=", "\"ventricular", "tachycardia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"VENTRICULAR TACHYCARDIA\"", "question_refine": "what is the number of patients whose admission location is clinic referral/premature and primary disease is ventricular tachycardia?", "key": "1d57e85e04daa86cd6c105826d133228"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 16, 0, "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "primary", "disease", "is", "sigmoid", "diverticulitis", ",", "colovestical", "fistula", "/", "sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"diagnosis\"", "=", "\"sigmoid", "diverticulitis", "colovestical", "fistula/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA\"", "question_refine": "what is the number of patients whose admission location is clinic referral/premature and primary disease is sigmoid diverticulitis, colovestical fistula/sda?", "key": "fbc533c873ff0130401d926aabde3f2e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [0, 16, 0, "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "primary", "disease", "is", "neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "demographic.\"diagnosis\"", "=", "\"neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT\"", "question_refine": "what is the number of patients whose admission location is transfer from hosp/extram and primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\\bone marrow transplant?", "key": "e9a8c6cd0f825d95dc642b2cdfec2280"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [0, 16, 0, "COPD EXACERBATION"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "primary", "disease", "is", "copd", "exacerbation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\"", "question_refine": "give me the number of patients whose admission location is phys referral/normal deli and primary disease is copd exacerbation?", "key": "7696728fa19889a998b56092b568a598"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 16, 0, "COPD EXACERBATION"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "primary", "disease", "is", "copd", "exacerbation", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\"", "question_refine": "count the number of patients whose admission location is trsf within this facility and primary disease is copd exacerbation?", "key": "12728a2fbfa9c1f602f1b41b9851065d"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 18, 2, 2120]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "year", "of", "birth", "is", "less", "than", "2120", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"dob_year\"", "<", "\"2120\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2120\"", "question_refine": "how many patients whose admission location is clinic referral/premature and year of birth is less than 2120?", "key": "e49f5073c86242d00c05d8cd2bef2552"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 18, 2, 2121]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "year", "of", "birth", "is", "less", "than", "2121", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"dob_year\"", "<", "\"2121\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2121\"", "question_refine": "count the number of patients whose admission location is clinic referral/premature and year of birth is less than 2121?", "key": "f43fb3d9c8bc12055b907cef9ca2cdf1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 18, 2, 2089]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "year", "of", "birth", "is", "less", "than", "2089", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"dob_year\"", "<", "\"2089\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2089\"", "question_refine": "count the number of patients whose admission location is trsf within this facility and year of birth is less than 2089?", "key": "fcd03d8badd2ff7482e04b4a6411c4da"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 18, 2, 2092]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "year", "of", "birth", "is", "less", "than", "2092", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"dob_year\"", "<", "\"2092\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2092\"", "question_refine": "what is the number of patients whose admission location is trsf within this facility and year of birth is less than 2092?", "key": "7db378abc0ec4ebe6311c82c5f5d1b61"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 22, 2, 2121]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "admission", "year", "is", "less", "than", "2121", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"admityear\"", "<", "\"2121\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2121\"", "question_refine": "what is the number of patients whose admission location is clinic referral/premature and admission year is less than 2121?", "key": "e0a914ac286b8bd62b2e9400b059ea90"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [1, 2, 0, "E9530"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "diagnoses", "icd9", "code", "is", "e9530", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "diagnoses.\"icd9_code\"", "=", "\"e9530\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DIAGNOSES.\"ICD9_CODE\" = \"E9530\"", "question_refine": "what is the number of patients whose admission location is phys referral/normal deli and diagnoses icd9 code is e9530?", "key": "361a66d9cd4b2a4101bd833fa7847306"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [1, 2, 0, "431"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "diagnoses", "icd9", "code", "is", "431", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "diagnoses.\"icd9_code\"", "=", "\"431\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DIAGNOSES.\"ICD9_CODE\" = \"431\"", "question_refine": "how many patients whose admission location is clinic referral/premature and diagnoses icd9 code is 431?", "key": "3c46ee39323195cd989a0079ed875060"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [1, 2, 0, "25541"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "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.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "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.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DIAGNOSES.\"ICD9_CODE\" = \"25541\"", "question_refine": "count the number of patients whose admission location is clinic referral/premature and diagnoses icd9 code is 25541?", "key": "29852ca32eaf81a7a592ae3ff96c655e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [1, 3, 0, "Heart valve transplant"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "diagnoses", "short", "title", "is", "heart", "valve", "transplant", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "diagnoses.\"short_title\"", "=", "\"heart", "valve", "transplant\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Heart valve transplant\"", "question_refine": "give me the number of patients whose admission location is phys referral/normal deli and diagnoses short title is heart valve transplant?", "key": "ebc48216a33958af09a19b365f8629ab"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [1, 4, 0, "Esophageal varices in diseases classified elsewhere, with bleeding"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "diagnoses", "long", "title", "is", "esophageal", "varices", "in", "diseases", "classified", "elsewhere", ",", "with", "bleeding", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "diagnoses.\"long_title\"", "=", "\"esophageal", "varices", "in", "diseases", "classified", "elsewhere", "with", "bleeding\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND DIAGNOSES.\"LONG_TITLE\" = \"Esophageal varices in diseases classified elsewhere, with bleeding\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and diagnoses long title is esophageal varices in diseases classified elsewhere, with bleeding?", "key": "6357174f117daef9d895c0a42c72cec4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 2, 0, 9229]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "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.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "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.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND PROCEDURES.\"ICD9_CODE\" = \"9229\"", "question_refine": "provide the number of patients whose admission location is emergency room admit and procedure icd9 code is 9229?", "key": "aeca624f999a11e259964e4efc524035"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [2, 2, 0, 5781]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "procedure", "icd9", "code", "is", "5781", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "procedures.\"icd9_code\"", "=", "\"5781\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND PROCEDURES.\"ICD9_CODE\" = \"5781\"", "question_refine": "what is the number of patients whose admission location is clinic referral/premature and procedure icd9 code is 5781?", "key": "b3f4d34e5067d3e9512166c534ed9853"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [2, 2, 0, 40]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "procedure", "icd9", "code", "is", "40", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "procedures.\"icd9_code\"", "=", "\"40\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND PROCEDURES.\"ICD9_CODE\" = \"40\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and procedure icd9 code is 40?", "key": "714dc2a5ad2704b891d8cab53d0b999b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [2, 2, 0, 5091]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "procedure", "icd9", "code", "is", "5091", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "procedures.\"icd9_code\"", "=", "\"5091\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND PROCEDURES.\"ICD9_CODE\" = \"5091\"", "question_refine": "what is the number of patients whose admission location is phys referral/normal deli and procedure icd9 code is 5091?", "key": "65d0c60b4d84fd82c4f457d030c32a23"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 3, 0, "Closed biopsy of tongue"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "procedure", "short", "title", "is", "closed", "biopsy", "of", "tongue", "?"], "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\"", "=", "\"closed", "biopsy", "of", "tongue\""], "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\" = \"Closed biopsy of tongue\"", "question_refine": "give me the number of patients whose admission location is emergency room admit and procedure short title is closed biopsy of tongue?", "key": "472f3e4b718335803a6137e9158eeb6a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 3, 0, "Exc/dest hrt lesion open"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "procedure", "short", "title", "is", "exc", "/", "dest", "hrt", "lesion", "open", "?"], "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\"", "=", "\"exc/dest", "hrt", "lesion", "open\""], "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\" = \"Exc/dest hrt lesion open\"", "question_refine": "what is the number of patients whose admission location is emergency room admit and procedure short title is exc/dest hrt lesion open?", "key": "f17220e09a2713dbee2bf33a2a919659"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [2, 3, 0, "Open liver biopsy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "procedure", "short", "title", "is", "open", "liver", "biopsy", "?"], "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\"", "=", "\"open", "liver", "biopsy\""], "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\" = \"Open liver biopsy\"", "question_refine": "count the number of patients whose admission location is emergency room admit and procedure short title is open liver biopsy?", "key": "3918e7c19db626b9727b6f097b17fd5b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [3, 4, 0, "BuPROPion (Sustained Release)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "drug", "name", "is", "bupropion", "(", "sustained", "release", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "prescriptions.\"drug\"", "=", "\"bupropion", "(sustained", "release)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND PRESCRIPTIONS.\"DRUG\" = \"BuPROPion (Sustained Release)\"", "question_refine": "what is the number of patients whose admission location is phys referral/normal deli and drug name is bupropion (sustained release)?", "key": "74554226c65c19798e203c169540f9b7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [3, 4, 0, "Levothyroxine Sodium"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "drug", "name", "is", "levothyroxine", "sodium", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "prescriptions.\"drug\"", "=", "\"levothyroxine", "sodium\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND PRESCRIPTIONS.\"DRUG\" = \"Levothyroxine Sodium\"", "question_refine": "what is the number of patients whose admission location is trsf within this facility and drug name is levothyroxine sodium?", "key": "836b5c4d6ce8b16dcec03e2bb757d44b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [3, 4, 0, "Gentamicin"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "drug", "name", "is", "gentamicin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "prescriptions.\"drug\"", "=", "\"gentamicin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND PRESCRIPTIONS.\"DRUG\" = \"Gentamicin\"", "question_refine": "count the number of patients whose admission location is transfer from hosp/extram and drug name is gentamicin?", "key": "28db50d2d94118ce379812f695c8d403"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [3, 5, 0, "MYCO500T"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "drug", "code", "is", "myco500", "t", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"myco500t\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"MYCO500T\"", "question_refine": "count the number of patients whose admission location is clinic referral/premature and drug code is myco500t?", "key": "24a59fae22e1a227e0999eb0e5953b64"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [3, 5, 0, "CEFE1I"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "drug", "code", "is", "cefe1i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"cefe1i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"CEFE1I\"", "question_refine": "provide the number of patients whose admission location is phys referral/normal deli and drug code is cefe1i?", "key": "4ef06ab90dee03e0af4428323ec02d74"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [3, 5, 0, "ESMOBASE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "drug", "code", "is", "esmobase", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"esmobase\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"ESMOBASE\"", "question_refine": "give me the number of patients whose admission location is emergency room admit and drug code is esmobase?", "key": "c786a15db1acc246a4c1ddf56b521936"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [4, 2, 0, 50818]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "item", "i", "d", "is", "50818", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "lab.\"itemid\"", "=", "\"50818\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND LAB.\"ITEMID\" = \"50818\"", "question_refine": "provide the number of patients whose admission location is clinic referral/premature and item id is 50818?", "key": "d1c60bd6bb2d11807478869f944bb514"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [4, 2, 0, 51419]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "item", "i", "d", "is", "51419", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "lab.\"itemid\"", "=", "\"51419\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND LAB.\"ITEMID\" = \"51419\"", "question_refine": "count the number of patients whose admission location is trsf within this facility and item id is 51419?", "key": "6d825f7d49ee6fa7b90a6bf89b1e33d5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [4, 2, 0, 50976]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "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.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "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.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND LAB.\"ITEMID\" = \"50976\"", "question_refine": "provide the number of patients whose admission location is clinic referral/premature and item id is 50976?", "key": "8839200390d5c44a6fcc95ec57e919a8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [4, 6, 0, "Mesothelial Cells"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "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", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "lab.\"label\"", "=", "\"mesothelial", "cells\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND LAB.\"LABEL\" = \"Mesothelial Cells\"", "question_refine": "what is the number of patients whose admission location is emergency room admit and lab test name is mesothelial cells?", "key": "3124ea9af69f6012ce8e8acb2b6ac7d2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [4, 6, 0, "Monocytes"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "lab", "test", "name", "is", "monocytes", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "lab.\"label\"", "=", "\"monocytes\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND LAB.\"LABEL\" = \"Monocytes\"", "question_refine": "how many patients whose admission location is clinic referral/premature and lab test name is monocytes?", "key": "cc98483d8627f04747c48111e5e1c532"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [4, 6, 0, "Sedimentation Rate"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "and", "lab", "test", "name", "is", "sedimentation", "rate", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admission_location\"", "=", "\"transfer", "from", "hosp/extram\"", "and", "lab.\"label\"", "=", "\"sedimentation", "rate\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND LAB.\"LABEL\" = \"Sedimentation Rate\"", "question_refine": "provide the number of patients whose admission location is transfer from hosp/extram and lab test name is sedimentation rate?", "key": "c0f902e967f9e4304fad6d99daa8ffd0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 14, 0, "TRANSFER FROM HOSP/EXTRAM"], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "location", "is", "transfer", "from", "hosp", "/", "extram", "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_location\"", "=", "\"transfer", "from", "hosp/extram\"", "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_LOCATION\" = \"TRANSFER FROM HOSP/EXTRAM\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "how many patients whose admission location is transfer from hosp/extram and lab test fluid is joint fluid?", "key": "13f9677e61723b26e3a7b16b91c55454"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SNF"], [0, 16, 0, "HYPERGLYCEMIA"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "snf", "and", "primary", "disease", "is", "hyperglycemia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"snf\"", "and", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\"", "question_refine": "provide the number of patients whose discharge location is snf and primary disease is hyperglycemia?", "key": "bc92bb5866153a6116540acd053d2557"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 16, 0, "MORBID OBESITY/SDA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "primary", "disease", "is", "morbid", "obesity", "/", "sda", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"diagnosis\"", "=", "\"morbid", "obesity/sda\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"MORBID OBESITY/SDA\"", "question_refine": "give me the number of patients whose discharge location is home and primary disease is morbid obesity/sda?", "key": "9b967fde7cad1782fa8e9da8e34fde79"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 16, 0, "VENTRICULAR TACHYCARDIA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "primary", "disease", "is", "ventricular", "tachycardia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"diagnosis\"", "=", "\"ventricular", "tachycardia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"VENTRICULAR TACHYCARDIA\"", "question_refine": "give me the number of patients whose discharge location is home and primary disease is ventricular tachycardia?", "key": "2a7615e331a2a0563553e8b172eb9c1f"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 4, 2, 41]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "age", "is", "less", "than", "41", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"age\"", "<", "\"41\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"AGE\" < \"41\"", "question_refine": "what is the number of patients whose discharge location is home health care and age is less than 41?", "key": "3e355c94ba567b24e7a22ec51c62bcad"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "SNF"], [0, 10, 1, 17]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "snf", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "17", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"snf\"", "and", "demographic.\"days_stay\"", ">", "\"17\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"17\"", "question_refine": "provide the number of patients whose discharge location is snf and days of hospital stay is greater than 17?", "key": "5d61348e40e750d19912bec0dba0847e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 10, 1, 26]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "26", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"days_stay\"", ">", "\"26\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"26\"", "question_refine": "give me the number of patients whose discharge location is home and days of hospital stay is greater than 26?", "key": "3103b7232073cc1ef2887d6c9b7e99f3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "REHAB/DISTINCT PART HOSP"], [0, 10, 1, 1]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "rehab", "/", "distinct", "part", "hosp", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "1", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"rehab/distinct", "part", "hosp\"", "and", "demographic.\"days_stay\"", ">", "\"1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"REHAB/DISTINCT PART HOSP\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"1\"", "question_refine": "count the number of patients whose discharge location is rehab/distinct part hosp and days of hospital stay is greater than 1?", "key": "357a85eeb507e8d0052c63b0a8464342"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 15, 0, "LEFT AGAINST MEDICAL ADVI"], [0, 18, 2, 2150]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "left", "against", "medical", "advi", "and", "year", "of", "birth", "is", "less", "than", "2150", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"left", "against", "medical", "advi\"", "and", "demographic.\"dob_year\"", "<", "\"2150\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LEFT AGAINST MEDICAL ADVI\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2150\"", "question_refine": "count the number of patients whose discharge location is left against medical advi and year of birth is less than 2150?", "key": "aead37cf2ebd30f961072c7ae619f4d1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [1, 2, 0, "7906"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "diagnoses", "icd9", "code", "is", "7906", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "diagnoses.\"icd9_code\"", "=", "\"7906\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DIAGNOSES.\"ICD9_CODE\" = \"7906\"", "question_refine": "count the number of patients whose discharge location is short term hospital and diagnoses icd9 code is 7906?", "key": "181ee562b416c6c01e1d2441969b984c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "HOME"], [1, 2, 0, "5770"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "diagnoses", "icd9", "code", "is", "5770", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "diagnoses.\"icd9_code\"", "=", "\"5770\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DIAGNOSES.\"ICD9_CODE\" = \"5770\"", "question_refine": "what is the number of patients whose discharge location is home and diagnoses icd9 code is 5770?", "key": "d3a1937d2dbfbec10ef097360b314993"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "DEAD/EXPIRED"], [1, 2, 0, "28522"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "dead", "/", "expired", "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.\"discharge_location\"", "=", "\"dead/expired\"", "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.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\" AND DIAGNOSES.\"ICD9_CODE\" = \"28522\"", "question_refine": "count the number of patients whose discharge location is dead/expired and diagnoses icd9 code is 28522?", "key": "cba7fa714d331720552855035bf3e963"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "LONG TERM CARE HOSPITAL"], [1, 3, 0, "Neuropathy in diabetes"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "long", "term", "care", "hospital", "and", "diagnoses", "short", "title", "is", "neuropathy", "in", "diabetes", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"long", "term", "care", "hospital\"", "and", "diagnoses.\"short_title\"", "=", "\"neuropathy", "in", "diabetes\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LONG TERM CARE HOSPITAL\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Neuropathy in diabetes\"", "question_refine": "provide the number of patients whose discharge location is long term care hospital and diagnoses short title is neuropathy in diabetes?", "key": "23eac29584015db6c3ed8af114ed1d60"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"], [1, 4, 0, "Dehydration"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "and", "diagnoses", "long", "title", "is", "dehydration", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\"", "and", "diagnoses.\"long_title\"", "=", "\"dehydration\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\" AND DIAGNOSES.\"LONG_TITLE\" = \"Dehydration\"", "question_refine": "what is the number of patients whose discharge location is disch-tran to psych hosp and diagnoses long title is dehydration?", "key": "a783d20e8caffea6a366cd0ab645ec01"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME"], [2, 2, 0, 14]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "procedure", "icd9", "code", "is", "14", "?"], "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.\"icd9_code\"", "=", "\"14\""], "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.\"ICD9_CODE\" = \"14\"", "question_refine": "give me the number of patients whose discharge location is home and procedure icd9 code is 14?", "key": "4377f9912ac334185cfb06961c5e707f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [2, 2, 0, 8163]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "procedure", "icd9", "code", "is", "8163", "?"], "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", "health", "care\"", "and", "procedures.\"icd9_code\"", "=", "\"8163\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND PROCEDURES.\"ICD9_CODE\" = \"8163\"", "question_refine": "how many patients whose discharge location is home health care and procedure icd9 code is 8163?", "key": "06e6239b44a6ae31f762cffe8f4c9a78"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "LEFT AGAINST MEDICAL ADVI"], [2, 2, 0, 9960]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "left", "against", "medical", "advi", "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.\"discharge_location\"", "=", "\"left", "against", "medical", "advi\"", "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.\"DISCHARGE_LOCATION\" = \"LEFT AGAINST MEDICAL ADVI\" AND PROCEDURES.\"ICD9_CODE\" = \"9960\"", "question_refine": "count the number of patients whose discharge location is left against medical advi and procedure icd9 code is 9960?", "key": "7a812124c7e567dcab252548dee54b2e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "LONG TERM CARE HOSPITAL"], [2, 3, 0, "Form cutan ileoureterost"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "long", "term", "care", "hospital", "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.\"discharge_location\"", "=", "\"long", "term", "care", "hospital\"", "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.\"DISCHARGE_LOCATION\" = \"LONG TERM CARE HOSPITAL\" AND PROCEDURES.\"SHORT_TITLE\" = \"Form cutan ileoureterost\"", "question_refine": "provide the number of patients whose discharge location is long term care hospital and procedure short title is form cutan ileoureterost?", "key": "65311bd34930a1e0d01b6a1e1c047e2a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [2, 3, 0, "Opn mitral valvuloplasty"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "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.\"discharge_location\"", "=", "\"home", "health", "care\"", "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.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND PROCEDURES.\"SHORT_TITLE\" = \"Opn mitral valvuloplasty\"", "question_refine": "provide the number of patients whose discharge location is home health care and procedure short title is opn mitral valvuloplasty?", "key": "148fcfaad744c3422b17366f16609484"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [2, 3, 0, "Percu endosc jejunostomy"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "procedure", "short", "title", "is", "percu", "endosc", "jejunostomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "procedures.\"short_title\"", "=", "\"percu", "endosc", "jejunostomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND PROCEDURES.\"SHORT_TITLE\" = \"Percu endosc jejunostomy\"", "question_refine": "count the number of patients whose discharge location is short term hospital and procedure short title is percu endosc jejunostomy?", "key": "685a8a64991420257b32c454f74950b3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "DISC-TRAN CANCER/CHLDRN H"], [2, 3, 0, "Lap periton adhesiolysis"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "disc", "-", "tran", "cancer", "/", "chldrn", "h", "and", "procedure", "short", "title", "is", "lap", "periton", "adhesiolysis", "?"], "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.\"short_title\"", "=", "\"lap", "periton", "adhesiolysis\""], "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.\"SHORT_TITLE\" = \"Lap periton adhesiolysis\"", "question_refine": "count the number of patients whose discharge location is disc-tran cancer/chldrn h and procedure short title is lap periton adhesiolysis?", "key": "bac6d41d754a28a3e4b83be96cbfc135"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [2, 3, 0, "Endosc retro cholangiopa"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "procedure", "short", "title", "is", "endosc", "retro", "cholangiopa", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "procedures.\"short_title\"", "=", "\"endosc", "retro", "cholangiopa\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND PROCEDURES.\"SHORT_TITLE\" = \"Endosc retro cholangiopa\"", "question_refine": "count the number of patients whose discharge location is short term hospital and procedure short title is endosc retro cholangiopa?", "key": "5ee5e808afedbdfdb5da7a1cf7296579"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME"], [2, 4, 0, "Endoscopic sphincterotomy and papillotomy"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "procedure", "long", "title", "is", "endoscopic", "sphincterotomy", "and", "papillotomy", "?"], "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.\"long_title\"", "=", "\"endoscopic", "sphincterotomy", "and", "papillotomy\""], "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.\"LONG_TITLE\" = \"Endoscopic sphincterotomy and papillotomy\"", "question_refine": "what is the number of patients whose discharge location is home and procedure long title is endoscopic sphincterotomy and papillotomy?", "key": "f14c39de18313ad04c6b88fb3f7626f4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [2, 4, 0, "Insertion of non-drug-eluting coronary artery stent(s)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "procedure", "long", "title", "is", "insertion", "of", "non", "-", "drug", "-", "eluting", "coronary", "artery", "stent(s", ")", "?"], "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", "health", "care\"", "and", "procedures.\"long_title\"", "=", "\"insertion", "of", "non-drug-eluting", "coronary", "artery", "stent(s)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND PROCEDURES.\"LONG_TITLE\" = \"Insertion of non-drug-eluting coronary artery stent(s)\"", "question_refine": "how many patients whose discharge location is home health care and procedure long title is insertion of non-drug-eluting coronary artery stent(s)?", "key": "8ccd1fc959a6b5fb76e29540c64b01df"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ACIDOSIS"], [0, 4, 2, 47]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "acidosis", "and", "age", "is", "less", "than", "47", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"acidosis\"", "and", "demographic.\"age\"", "<", "\"47\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ACIDOSIS\" AND DEMOGRAPHIC.\"AGE\" < \"47\"", "question_refine": "how many patients whose primary disease is acidosis and age is less than 47?", "key": "d4feb5fe47ffd5019321cdb32d9928a5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "INFECTED RIGHT THIGH GRAFT"], [0, 4, 2, 43]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "infected", "right", "thigh", "graft", "and", "age", "is", "less", "than", "43", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"infected", "right", "thigh", "graft\"", "and", "demographic.\"age\"", "<", "\"43\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"INFECTED RIGHT THIGH GRAFT\" AND DEMOGRAPHIC.\"AGE\" < \"43\"", "question_refine": "how many patients whose primary disease is infected right thigh graft and age is less than 43?", "key": "6e24f311447816f166e90be6937b5f3a"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "LIVER TRANSPLANT"], [0, 4, 2, 81]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "liver", "transplant", "and", "age", "is", "less", "than", "81", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"liver", "transplant\"", "and", "demographic.\"age\"", "<", "\"81\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"LIVER TRANSPLANT\" AND DEMOGRAPHIC.\"AGE\" < \"81\"", "question_refine": "count the number of patients whose primary disease is liver transplant and age is less than 81?", "key": "a3ebe134d9ad77259450648016508ecc"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ANGIOEDEMA"], [0, 4, 2, 47]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "angioedema", "and", "age", "is", "less", "than", "47", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"angioedema\"", "and", "demographic.\"age\"", "<", "\"47\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ANGIOEDEMA\" AND DEMOGRAPHIC.\"AGE\" < \"47\"", "question_refine": "count the number of patients whose primary disease is angioedema and age is less than 47?", "key": "b7a01e77f49bad32dca3b55b38c323ef"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH"], [0, 4, 2, 70]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "st", "-", "segment", "elevation", "myocardial", "infarction\\cardiac", "cath", "and", "age", "is", "less", "than", "70", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"st-segment", "elevation", "myocardial", "infarction\\cardiac", "cath\"", "and", "demographic.\"age\"", "<", "\"70\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH\" AND DEMOGRAPHIC.\"AGE\" < \"70\"", "question_refine": "what is the number of patients whose primary disease is st-segment elevation myocardial infarction\\cardiac cath and age is less than 70?", "key": "c4f37e7ea58c5d0906ae2eb9e27098a5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "FEMORAL ARTERY THROMBOSIS"], [0, 4, 2, 85]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "femoral", "artery", "thrombosis", "and", "age", "is", "less", "than", "85", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"femoral", "artery", "thrombosis\"", "and", "demographic.\"age\"", "<", "\"85\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"FEMORAL ARTERY THROMBOSIS\" AND DEMOGRAPHIC.\"AGE\" < \"85\"", "question_refine": "give me the number of patients whose primary disease is femoral artery thrombosis and age is less than 85?", "key": "10d31ae830f84195a1cbcb4e381e13ee"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "CHEST PAIN"], [0, 4, 2, 54]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "chest", "pain", "and", "age", "is", "less", "than", "54", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"chest", "pain\"", "and", "demographic.\"age\"", "<", "\"54\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CHEST PAIN\" AND DEMOGRAPHIC.\"AGE\" < \"54\"", "question_refine": "count the number of patients whose primary disease is chest pain and age is less than 54?", "key": "9895fc06782b97da625ddb259bf5f4d1"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "RUQ PAIN"], [0, 4, 2, 71]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "ruq", "pain", "and", "age", "is", "less", "than", "71", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\"", "and", "demographic.\"age\"", "<", "\"71\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\" AND DEMOGRAPHIC.\"AGE\" < \"71\"", "question_refine": "what is the number of patients whose primary disease is ruq pain and age is less than 71?", "key": "448f6f9c125b0f27a972030ec379f31b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "GUILLAIN BARRE SYNDROME"], [0, 4, 2, 59]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "guillain", "barre", "syndrome", "and", "age", "is", "less", "than", "59", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"guillain", "barre", "syndrome\"", "and", "demographic.\"age\"", "<", "\"59\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GUILLAIN BARRE SYNDROME\" AND DEMOGRAPHIC.\"AGE\" < \"59\"", "question_refine": "count the number of patients whose primary disease is guillain barre syndrome and age is less than 59?", "key": "7da9b0263eb4535b31c3d81188259c60"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "COMPLETE HEART BLOCK"], [0, 4, 2, 51]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "complete", "heart", "block", "and", "age", "is", "less", "than", "51", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"complete", "heart", "block\"", "and", "demographic.\"age\"", "<", "\"51\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COMPLETE HEART BLOCK\" AND DEMOGRAPHIC.\"AGE\" < \"51\"", "question_refine": "what is the number of patients whose primary disease is complete heart block and age is less than 51?", "key": "7c263ed6ac47126a133032da891a85de"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ABDOMINAL PAIN"], [0, 10, 1, 3]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "abdominal", "pain", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "3", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"abdominal", "pain\"", "and", "demographic.\"days_stay\"", ">", "\"3\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ABDOMINAL PAIN\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"3\"", "question_refine": "what is the number of patients whose primary disease is abdominal pain and days of hospital stay is greater than 3?", "key": "0d93657dce4a06c06948b081e977f977"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ANGIOEDEMA"], [0, 18, 2, 2076]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "angioedema", "and", "year", "of", "birth", "is", "less", "than", "2076", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"angioedema\"", "and", "demographic.\"dob_year\"", "<", "\"2076\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ANGIOEDEMA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2076\"", "question_refine": "what is the number of patients whose primary disease is angioedema and year of birth is less than 2076?", "key": "3108beb01fb8681e2648ed497ff6c5bd"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"], [0, 18, 2, 2170]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "squamous", "cell", "carcinoma", "oral", "tongue", "/", "sda", "and", "year", "of", "birth", "is", "less", "than", "2170", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"squamous", "cell", "carcinoma", "oral", "tongue/sda\"", "and", "demographic.\"dob_year\"", "<", "\"2170\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2170\"", "question_refine": "count the number of patients whose primary disease is squamous cell carcinoma oral tongue/sda and year of birth is less than 2170?", "key": "dffd5ee0ebb84be7f3dfbe83dfe1e99c"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "COPD EXACERBATION"], [0, 18, 2, 1837]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "copd", "exacerbation", "and", "year", "of", "birth", "is", "less", "than", "1837", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\"", "and", "demographic.\"dob_year\"", "<", "\"1837\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"1837\"", "question_refine": "what is the number of patients whose primary disease is copd exacerbation and year of birth is less than 1837?", "key": "cd530f3f33c7eac83ad75947485ab83b"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "TRANSIENT ISCHEMIC ATTACK"], [0, 18, 2, 2134]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "transient", "ischemic", "attack", "and", "year", "of", "birth", "is", "less", "than", "2134", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"transient", "ischemic", "attack\"", "and", "demographic.\"dob_year\"", "<", "\"2134\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"TRANSIENT ISCHEMIC ATTACK\" AND DEMOGRAPHIC.\"DOB_YEAR\" < \"2134\"", "question_refine": "how many patients whose primary disease is transient ischemic attack and year of birth is less than 2134?", "key": "164d691872a750a7c89efede372ae6f5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "RUQ PAIN"], [0, 19, 4, 2164.0]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "ruq", "pain", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2164", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\"", "and", "demographic.\"dod_year\"", "<=", "\"2164.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2164.0\"", "question_refine": "count the number of patients whose primary disease is ruq pain and year of death is less than or equal to 2164?", "key": "df68fc1654da3611020744df848df0dc"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "BOWEL OBSTRUCTION"], [0, 19, 4, 2126.0]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "bowel", "obstruction", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2126", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"bowel", "obstruction\"", "and", "demographic.\"dod_year\"", "<=", "\"2126.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"BOWEL OBSTRUCTION\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2126.0\"", "question_refine": "what is the number of patients whose primary disease is bowel obstruction and year of death is less than or equal to 2126?", "key": "b687936fb274984c5417d42ea4f762c5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "STERNAL WOUND INFECTION"], [0, 19, 4, 2173.0]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sternal", "wound", "infection", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2173", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"sternal", "wound", "infection\"", "and", "demographic.\"dod_year\"", "<=", "\"2173.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"STERNAL WOUND INFECTION\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2173.0\"", "question_refine": "give me the number of patients whose primary disease is sternal wound infection and year of death is less than or equal to 2173?", "key": "644ef281e5f6df4e2eb81d2c9fb2e312"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "LEFT COLON CANCER"], [0, 19, 4, 2138.0]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "left", "colon", "cancer", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"left", "colon", "cancer\"", "and", "demographic.\"dod_year\"", "<=", "\"2138.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT COLON CANCER\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2138.0\"", "question_refine": "give me the number of patients whose primary disease is left colon cancer and year of death is less than or equal to 2138?", "key": "7417d05c78b7d913005a7507a0c00ea3"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "GUILLAIN BARRE SYNDROME"], [0, 19, 4, 2164.0]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "guillain", "barre", "syndrome", "and", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2164", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"guillain", "barre", "syndrome\"", "and", "demographic.\"dod_year\"", "<=", "\"2164.0\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GUILLAIN BARRE SYNDROME\" AND DEMOGRAPHIC.\"DOD_YEAR\" <= \"2164.0\"", "question_refine": "what is the number of patients whose primary disease is guillain barre syndrome and year of death is less than or equal to 2164?", "key": "288770ab3abb50b13f0531a779d391d5"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH"], [0, 22, 2, 2135]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "st", "elevated", "myocardial", "infarction\\cardiac", "cath", "and", "admission", "year", "is", "less", "than", "2135", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"st", "elevated", "myocardial", "infarction\\cardiac", "cath\"", "and", "demographic.\"admityear\"", "<", "\"2135\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2135\"", "question_refine": "provide the number of patients whose primary disease is st elevated myocardial infarction\\cardiac cath and admission year is less than 2135?", "key": "8813189851cf05adbb60340f712d2e52"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 16, 0, "RUQ PAIN"], [0, 22, 2, 2131]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "ruq", "pain", "and", "admission", "year", "is", "less", "than", "2131", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"ruq", "pain\"", "and", "demographic.\"admityear\"", "<", "\"2131\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RUQ PAIN\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2131\"", "question_refine": "how many patients whose primary disease is ruq pain and admission year is less than 2131?", "key": "8cfecfa68618e0b476421f57c837df1d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "NEWBORN"], [2, 2, 0, 5361]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "procedure", "icd9", "code", "is", "5361", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "procedures.\"icd9_code\"", "=", "\"5361\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND PROCEDURES.\"ICD9_CODE\" = \"5361\"", "question_refine": "give me the number of patients whose primary disease is newborn and procedure icd9 code is 5361?", "key": "23996211dbdaff427116c99b217e23c0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "HYPERGLYCEMIA"], [2, 2, 0, 4576]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "hyperglycemia", "and", "procedure", "icd9", "code", "is", "4576", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"hyperglycemia\"", "and", "procedures.\"icd9_code\"", "=", "\"4576\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERGLYCEMIA\" AND PROCEDURES.\"ICD9_CODE\" = \"4576\"", "question_refine": "provide the number of patients whose primary disease is hyperglycemia and procedure icd9 code is 4576?", "key": "ef1bf9985025b00a69bd30909aa0728a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "RASH"], [2, 2, 0, 5091]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "rash", "and", "procedure", "icd9", "code", "is", "5091", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"rash\"", "and", "procedures.\"icd9_code\"", "=", "\"5091\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"RASH\" AND PROCEDURES.\"ICD9_CODE\" = \"5091\"", "question_refine": "what is the number of patients whose primary disease is rash and procedure icd9 code is 5091?", "key": "235a867f6f6aeaaa1083cc4409d0650c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "COMPLETE HEART BLOCK"], [2, 2, 0, 3512]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "complete", "heart", "block", "and", "procedure", "icd9", "code", "is", "3512", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"complete", "heart", "block\"", "and", "procedures.\"icd9_code\"", "=", "\"3512\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COMPLETE HEART BLOCK\" AND PROCEDURES.\"ICD9_CODE\" = \"3512\"", "question_refine": "give me the number of patients whose primary disease is complete heart block and procedure icd9 code is 3512?", "key": "55082387467b6695cb4f9d331a5b70bc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS"], [2, 3, 0, "Aortocor bypas-2 cor art"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pneumonia;human", "immunodefiency", "virus;rule", "out", "tuberculosis", "and", "procedure", "short", "title", "is", "aortocor", "bypas-2", "cor", "art", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"pneumonia;human", "immunodefiency", "virus;rule", "out", "tuberculosis\"", "and", "procedures.\"short_title\"", "=", "\"aortocor", "bypas-2", "cor", "art\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA;HUMAN IMMUNODEFIENCY VIRUS;RULE OUT TUBERCULOSIS\" AND PROCEDURES.\"SHORT_TITLE\" = \"Aortocor bypas-2 cor art\"", "question_refine": "what is the number of patients whose primary disease is pneumonia;human immunodefiency virus;rule out tuberculosis and procedure short title is aortocor bypas-2 cor art?", "key": "fbd07a319d9db8ab3b6fadb06deecac0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "PNEUMONIA"], [2, 3, 0, "Circumcision"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pneumonia", "and", "procedure", "short", "title", "is", "circumcision", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"pneumonia\"", "and", "procedures.\"short_title\"", "=", "\"circumcision\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\" AND PROCEDURES.\"SHORT_TITLE\" = \"Circumcision\"", "question_refine": "count the number of patients whose primary disease is pneumonia and procedure short title is circumcision?", "key": "0e7be1f00ab9c11db3a68f2b38554946"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "SYNCOPE;TELEMETRY"], [2, 3, 0, "Partial glossectomy"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "syncope;telemetry", "and", "procedure", "short", "title", "is", "partial", "glossectomy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"syncope;telemetry\"", "and", "procedures.\"short_title\"", "=", "\"partial", "glossectomy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SYNCOPE;TELEMETRY\" AND PROCEDURES.\"SHORT_TITLE\" = \"Partial glossectomy\"", "question_refine": "give me the number of patients whose primary disease is syncope;telemetry and procedure short title is partial glossectomy?", "key": "6733587071058e03d4cf59c17327bd93"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "COPD EXACERBATION"], [2, 3, 0, "Exc chest cage bone les"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "copd", "exacerbation", "and", "procedure", "short", "title", "is", "exc", "chest", "cage", "bone", "les", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"copd", "exacerbation\"", "and", "procedures.\"short_title\"", "=", "\"exc", "chest", "cage", "bone", "les\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"COPD EXACERBATION\" AND PROCEDURES.\"SHORT_TITLE\" = \"Exc chest cage bone les\"", "question_refine": "provide the number of patients whose primary disease is copd exacerbation and procedure short title is exc chest cage bone les?", "key": "e11dad7fe2b5d9fca945b6521ccec205"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE"], [2, 3, 0, "Ven cath renal dialysis"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr", ";", "?", "maze", "and", "procedure", "short", "title", "is", "ven", "cath", "renal", "dialysis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"coronary", "artery", "disease\\coronary", "artery", "bypass", "graft", "with", "mvr;", "?", "maze\"", "and", "procedures.\"short_title\"", "=", "\"ven", "cath", "renal", "dialysis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"CORONARY ARTERY DISEASE\\CORONARY ARTERY BYPASS GRAFT WITH MVR; ? MAZE\" AND PROCEDURES.\"SHORT_TITLE\" = \"Ven cath renal dialysis\"", "question_refine": "provide the number of patients whose primary disease is coronary artery disease\\coronary artery bypass graft with mvr; ? maze and procedure short title is ven cath renal dialysis?", "key": "c58747ffe11d0c6a5659b879bb35437a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 16, 0, "HYPERGLYCEMIA;HYPONATREMIA"], [2, 3, 0, "Insert 2 vascular stents"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "hyperglycemia;hyponatremia", "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.\"diagnosis\"", "=", "\"hyperglycemia;hyponatremia\"", "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.\"DIAGNOSIS\" = \"HYPERGLYCEMIA;HYPONATREMIA\" AND PROCEDURES.\"SHORT_TITLE\" = \"Insert 2 vascular stents\"", "question_refine": "how many patients whose primary disease is hyperglycemia;hyponatremia and procedure short title is insert 2 vascular stents?", "key": "b0c559d13077f36af8ce296866ef4e46"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "OVERDOSE"], [3, 6, 0, "PR"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "overdose", "and", "drug", "route", "is", "pr", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"diagnosis\"", "=", "\"overdose\"", "and", "prescriptions.\"route\"", "=", "\"pr\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\" AND PRESCRIPTIONS.\"ROUTE\" = \"PR\"", "question_refine": "give me the number of patients whose primary disease is overdose and drug route is pr?", "key": "e7c1c46e37c6120451f4f70a444febb6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "PNEUMONIA"], [3, 6, 0, "IV DRIP"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "pneumonia", "and", "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", "demographic.\"diagnosis\"", "=", "\"pneumonia\"", "and", "prescriptions.\"route\"", "=", "\"iv", "drip\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PNEUMONIA\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV DRIP\"", "question_refine": "give me the number of patients whose primary disease is pneumonia and drug route is iv drip?", "key": "8048d41f9725b0811f11286dd327bfae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA"], [3, 6, 0, "DIALYS"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "sigmoid", "diverticulitis", ",", "colovestical", "fistula", "/", "sda", "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.\"diagnosis\"", "=", "\"sigmoid", "diverticulitis", "colovestical", "fistula/sda\"", "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.\"DIAGNOSIS\" = \"SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA\" AND PRESCRIPTIONS.\"ROUTE\" = \"DIALYS\"", "question_refine": "what is the number of patients whose primary disease is sigmoid diverticulitis, colovestical fistula/sda and drug route is dialys?", "key": "79080b93e8ba6f50c8cabcec2090fc83"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 16, 0, "GANGRENE"], [3, 6, 0, "TD"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "gangrene", "and", "drug", "route", "is", "td", "?"], "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\"", "=", "\"td\""], "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\" = \"TD\"", "question_refine": "what is the number of patients whose primary disease is gangrene and drug route is td?", "key": "3dd7d2a8e227b9e4fa09fa901d04b4be"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "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.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\"", "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.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "provide the number of patients whose primary disease is brain mass;intracranial hemorrhage and lab test abnormal status is delta?", "key": "bdeda253f589dedd5b5aa7e60d16434e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "LEFT FEMUR FRACTURE"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "left", "femur", "fracture", "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\"", "=", "\"left", "femur", "fracture\"", "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\" = \"LEFT FEMUR FRACTURE\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "what is the number of patients whose primary disease is left femur fracture and lab test abnormal status is abnormal?", "key": "f67a216485a2adbbd85137476a11c683"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "NEWBORN"], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "newborn", "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.\"diagnosis\"", "=", "\"newborn\"", "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.\"DIAGNOSIS\" = \"NEWBORN\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "give me the number of patients whose primary disease is newborn and lab test fluid is joint fluid?", "key": "d306938a24afaffb8b713739dbe541f4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "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.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\"", "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.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "how many patients whose primary disease is brain mass;intracranial hemorrhage and lab test fluid is urine?", "key": "75b78588a13a4ecd6fcc61e9079c7bce"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "MORBID OBESITY/SDA"], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "primary", "disease", "is", "morbid", "obesity", "/", "sda", "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\"", "=", "\"morbid", "obesity/sda\"", "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\" = \"MORBID OBESITY/SDA\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "give me the number of patients whose primary disease is morbid obesity/sda and lab test fluid is ascites?", "key": "0de90dcde51be36188b359fb70b6444b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 16, 0, "MORBID OBESITY/SDA"], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "primary", "disease", "is", "morbid", "obesity", "/", "sda", "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.\"diagnosis\"", "=", "\"morbid", "obesity/sda\"", "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.\"DIAGNOSIS\" = \"MORBID OBESITY/SDA\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "how many patients whose primary disease is morbid obesity/sda and lab test fluid is urine?", "key": "2d083a14a1d0a857d55990e8bde311bc"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 50], [0, 10, 1, 15]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "50", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "15", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"50\"", "and", "demographic.\"days_stay\"", ">", "\"15\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"50\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"15\"", "question_refine": "what is the number of patients whose age is less than 50 and days of hospital stay is greater than 15?", "key": "133721f20c40be81b8c655c9ac2d86ea"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 89], [0, 10, 1, 1]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "89", "and", "days", "of", "hospital", "stay", "is", "greater", "than", "1", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"89\"", "and", "demographic.\"days_stay\"", ">", "\"1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"89\" AND DEMOGRAPHIC.\"DAYS_STAY\" > \"1\"", "question_refine": "count the number of patients whose age is less than 89 and days of hospital stay is greater than 1?", "key": "d5f869643dee48338f722c7f38ec5a9e"}
{"format": {"agg_col": [[0, 0]], "table": [0], "cond": [[0, 4, 2, 76], [0, 22, 2, 2179]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "76", "and", "admission", "year", "is", "less", "than", "2179", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "where", "demographic.\"age\"", "<", "\"76\"", "and", "demographic.\"admityear\"", "<", "\"2179\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" < \"76\" AND DEMOGRAPHIC.\"ADMITYEAR\" < \"2179\"", "question_refine": "how many patients whose age is less than 76 and admission year is less than 2179?", "key": "56d406a2891185704722570dcf0cf8f6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 20], [1, 2, 0, "42731"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "20", "and", "diagnoses", "icd9", "code", "is", "42731", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"20\"", "and", "diagnoses.\"icd9_code\"", "=", "\"42731\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"20\" AND DIAGNOSES.\"ICD9_CODE\" = \"42731\"", "question_refine": "count the number of patients whose age is less than 20 and diagnoses icd9 code is 42731?", "key": "d986909363d35524b9fd008b71ea141b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 41], [1, 2, 0, "34291"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "41", "and", "diagnoses", "icd9", "code", "is", "34291", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"41\"", "and", "diagnoses.\"icd9_code\"", "=", "\"34291\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"41\" AND DIAGNOSES.\"ICD9_CODE\" = \"34291\"", "question_refine": "how many patients whose age is less than 41 and diagnoses icd9 code is 34291?", "key": "4e11cb528d766efd28fa0360b433294c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 76], [1, 2, 0, "99591"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "76", "and", "diagnoses", "icd9", "code", "is", "99591", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"76\"", "and", "diagnoses.\"icd9_code\"", "=", "\"99591\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"76\" AND DIAGNOSES.\"ICD9_CODE\" = \"99591\"", "question_refine": "what is the number of patients whose age is less than 76 and diagnoses icd9 code is 99591?", "key": "2721439d3171befac524caf343e499e1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 81], [1, 3, 0, "Hemochromatos-rbc trans"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "81", "and", "diagnoses", "short", "title", "is", "hemochromatos", "-", "rbc", "trans", "?"], "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.\"short_title\"", "=", "\"hemochromatos-rbc", "trans\""], "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.\"SHORT_TITLE\" = \"Hemochromatos-rbc trans\"", "question_refine": "give me the number of patients whose age is less than 81 and diagnoses short title is hemochromatos-rbc trans?", "key": "fa4124eafbd72ce96824d739f36fdd17"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 72], [1, 3, 0, "Stevens-Johnson-TEN syn"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "72", "and", "diagnoses", "short", "title", "is", "stevens", "-", "johnson", "-", "ten", "syn", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"72\"", "and", "diagnoses.\"short_title\"", "=", "\"stevens-johnson-ten", "syn\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"72\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Stevens-Johnson-TEN syn\"", "question_refine": "give me the number of patients whose age is less than 72 and diagnoses short title is stevens-johnson-ten syn?", "key": "fb835088e1d47998d03900d24a3f1c22"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 31], [1, 3, 0, "Crnry athrscl natve vssl"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "31", "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.\"age\"", "<", "\"31\"", "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.\"AGE\" < \"31\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Crnry athrscl natve vssl\"", "question_refine": "what is the number of patients whose age is less than 31 and diagnoses short title is crnry athrscl natve vssl?", "key": "6215636e6b00c6ad4f7d90065ce127a3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 27], [1, 3, 0, "Malig neo ascend colon"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "27", "and", "diagnoses", "short", "title", "is", "malig", "neo", "ascend", "colon", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"27\"", "and", "diagnoses.\"short_title\"", "=", "\"malig", "neo", "ascend", "colon\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"27\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Malig neo ascend colon\"", "question_refine": "how many patients whose age is less than 27 and diagnoses short title is malig neo ascend colon?", "key": "5e932de01fa503e7596f02f68f37dc36"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 59], [1, 3, 0, "Open wound of head NEC"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "59", "and", "diagnoses", "short", "title", "is", "open", "wound", "of", "head", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"59\"", "and", "diagnoses.\"short_title\"", "=", "\"open", "wound", "of", "head", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"59\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Open wound of head NEC\"", "question_refine": "what is the number of patients whose age is less than 59 and diagnoses short title is open wound of head nec?", "key": "2c4d5b33a95d1f5a1b023f67f0eabd5c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 27], [1, 4, 0, "Hypoxemia"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "27", "and", "diagnoses", "long", "title", "is", "hypoxemia", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"27\"", "and", "diagnoses.\"long_title\"", "=", "\"hypoxemia\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"27\" AND DIAGNOSES.\"LONG_TITLE\" = \"Hypoxemia\"", "question_refine": "what is the number of patients whose age is less than 27 and diagnoses long title is hypoxemia?", "key": "b1b1762817ef374e37999dcf4c4ed0ad"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 71], [1, 4, 0, "Other specified procedures as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "71", "and", "diagnoses", "long", "title", "is", "other", "specified", "procedures", "as", "the", "cause", "of", "abnormal", "reaction", "of", "patient", ",", "or", "of", "later", "complication", ",", "without", "mention", "of", "misadventure", "at", "time", "of", "procedure", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"71\"", "and", "diagnoses.\"long_title\"", "=", "\"other", "specified", "procedures", "as", "the", "cause", "of", "abnormal", "reaction", "of", "patient", "or", "of", "later", "complication", "without", "mention", "of", "misadventure", "at", "time", "of", "procedure\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"71\" AND DIAGNOSES.\"LONG_TITLE\" = \"Other specified procedures as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure\"", "question_refine": "count the number of patients whose age is less than 71 and diagnoses long title is other specified procedures as the cause of abnormal reaction of patient, or of later complication, without mention of misadventure at time of procedure?", "key": "12fec892044a956edace5ef92488641a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 74], [1, 4, 0, "Nonspecific elevation of levels of transaminase or lactic acid dehydrogenase [LDH]"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "74", "and", "diagnoses", "long", "title", "is", "nonspecific", "elevation", "of", "levels", "of", "transaminase", "or", "lactic", "acid", "dehydrogenase", "[", "ldh", "]", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"74\"", "and", "diagnoses.\"long_title\"", "=", "\"nonspecific", "elevation", "of", "levels", "of", "transaminase", "or", "lactic", "acid", "dehydrogenase", "[ldh]\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"74\" AND DIAGNOSES.\"LONG_TITLE\" = \"Nonspecific elevation of levels of transaminase or lactic acid dehydrogenase [LDH]\"", "question_refine": "give me the number of patients whose age is less than 74 and diagnoses long title is nonspecific elevation of levels of transaminase or lactic acid dehydrogenase [ldh]?", "key": "0d6ab010fccf65b586876ba8cc4e88a4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 4, 2, 36], [1, 4, 0, "Hypotension of hemodialysis"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "36", "and", "diagnoses", "long", "title", "is", "hypotension", "of", "hemodialysis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"age\"", "<", "\"36\"", "and", "diagnoses.\"long_title\"", "=", "\"hypotension", "of", "hemodialysis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"36\" AND DIAGNOSES.\"LONG_TITLE\" = \"Hypotension of hemodialysis\"", "question_refine": "give me the number of patients whose age is less than 36 and diagnoses long title is hypotension of hemodialysis?", "key": "f52b3fd03ff274fd003946363d43c067"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 76], [2, 2, 0, 3961]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "76", "and", "procedure", "icd9", "code", "is", "3961", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"76\"", "and", "procedures.\"icd9_code\"", "=", "\"3961\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"76\" AND PROCEDURES.\"ICD9_CODE\" = \"3961\"", "question_refine": "provide the number of patients whose age is less than 76 and procedure icd9 code is 3961?", "key": "7eca205d56061f2e851dae2436cf7916"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 55], [2, 2, 0, 540]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "55", "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.\"age\"", "<", "\"55\"", "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.\"AGE\" < \"55\" AND PROCEDURES.\"ICD9_CODE\" = \"540\"", "question_refine": "what is the number of patients whose age is less than 55 and procedure icd9 code is 540?", "key": "5d37bfd001285e782f91c2e04ae07b43"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 86], [2, 3, 0, "Sm bowel endoscopy NEC"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "86", "and", "procedure", "short", "title", "is", "sm", "bowel", "endoscopy", "nec", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"86\"", "and", "procedures.\"short_title\"", "=", "\"sm", "bowel", "endoscopy", "nec\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"86\" AND PROCEDURES.\"SHORT_TITLE\" = \"Sm bowel endoscopy NEC\"", "question_refine": "count the number of patients whose age is less than 86 and procedure short title is sm bowel endoscopy nec?", "key": "160a796406a26331d3691df744d92a77"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 56], [2, 3, 0, "Endovasc embol hd/nk ves"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "56", "and", "procedure", "short", "title", "is", "endovasc", "embol", "hd", "/", "nk", "ves", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"56\"", "and", "procedures.\"short_title\"", "=", "\"endovasc", "embol", "hd/nk", "ves\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"56\" AND PROCEDURES.\"SHORT_TITLE\" = \"Endovasc embol hd/nk ves\"", "question_refine": "provide the number of patients whose age is less than 56 and procedure short title is endovasc embol hd/nk ves?", "key": "5d908eb30934dd82df7c0fc57d56ca95"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 4, 2, 31], [2, 4, 0, "Enteral infusion of concentrated nutritional substances"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "31", "and", "procedure", "long", "title", "is", "enteral", "infusion", "of", "concentrated", "nutritional", "substances", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"age\"", "<", "\"31\"", "and", "procedures.\"long_title\"", "=", "\"enteral", "infusion", "of", "concentrated", "nutritional", "substances\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"31\" AND PROCEDURES.\"LONG_TITLE\" = \"Enteral infusion of concentrated nutritional substances\"", "question_refine": "provide the number of patients whose age is less than 31 and procedure long title is enteral infusion of concentrated nutritional substances?", "key": "12effe68754db28009eae4b7456dd01c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 80], [3, 4, 0, "Cefpodoxime Proxetil"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "80", "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.\"age\"", "<", "\"80\"", "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.\"AGE\" < \"80\" AND PRESCRIPTIONS.\"DRUG\" = \"Cefpodoxime Proxetil\"", "question_refine": "give me the number of patients whose age is less than 80 and drug name is cefpodoxime proxetil?", "key": "dc60aac5a890d048aee9b3a20704f520"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 43], [3, 4, 0, "Transplant Self Medication Program"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "43", "and", "drug", "name", "is", "transplant", "self", "medication", "program", "?"], "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.\"drug\"", "=", "\"transplant", "self", "medication", "program\""], "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.\"DRUG\" = \"Transplant Self Medication Program\"", "question_refine": "give me the number of patients whose age is less than 43 and drug name is transplant self medication program?", "key": "762c57bcb5f27c1dee99baa8ef472af1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 58], [3, 4, 0, "Nitroglycerin SL"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "58", "and", "drug", "name", "is", "nitroglycerin", "sl", "?"], "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.\"drug\"", "=", "\"nitroglycerin", "sl\""], "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.\"DRUG\" = \"Nitroglycerin SL\"", "question_refine": "count the number of patients whose age is less than 58 and drug name is nitroglycerin sl?", "key": "23e255f949108cdf9b493f42c2b82775"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 48], [3, 4, 0, "PHENYLEPHrine"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "48", "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.\"age\"", "<", "\"48\"", "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.\"AGE\" < \"48\" AND PRESCRIPTIONS.\"DRUG\" = \"PHENYLEPHrine\"", "question_refine": "give me the number of patients whose age is less than 48 and drug name is phenylephrine?", "key": "76c1aefdfef09861fbc4ac2156b1aea0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 76], [3, 4, 0, "Heparin Flush PICC (100 units/ml)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "76", "and", "drug", "name", "is", "heparin", "flush", "picc", "(", "100", "units", "/", "ml", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"76\"", "and", "prescriptions.\"drug\"", "=", "\"heparin", "flush", "picc", "(100", "units/ml)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"76\" AND PRESCRIPTIONS.\"DRUG\" = \"Heparin Flush PICC (100 units/ml)\"", "question_refine": "provide the number of patients whose age is less than 76 and drug name is heparin flush picc (100 units/ml)?", "key": "7c3cfb59de28f153ae52cb4f12f242f3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 80], [3, 5, 0, "AZTR1000FB"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "80", "and", "drug", "code", "is", "aztr1000fb", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"80\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"aztr1000fb\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"80\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"AZTR1000FB\"", "question_refine": "give me the number of patients whose age is less than 80 and drug code is aztr1000fb?", "key": "e047b0c085f60c0f0e9489f3cde9ace5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 64], [3, 5, 0, "WARF1"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "64", "and", "drug", "code", "is", "warf1", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"64\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"warf1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"64\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"WARF1\"", "question_refine": "count the number of patients whose age is less than 64 and drug code is warf1?", "key": "d9c750653f31b6bfbc3f46dbbc9b07cf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 55], [3, 5, 0, "SYRG1"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "55", "and", "drug", "code", "is", "syrg1", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"55\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"syrg1\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"55\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"SYRG1\"", "question_refine": "count the number of patients whose age is less than 55 and drug code is syrg1?", "key": "e1e450dbf28d8b89bab06972b279ad89"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 67], [3, 5, 0, "NS451000"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "67", "and", "drug", "code", "is", "ns451000", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"67\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"ns451000\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"67\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"NS451000\"", "question_refine": "count the number of patients whose age is less than 67 and drug code is ns451000?", "key": "d6581fcec2a0ff3b639e8379135855ca"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 31], [3, 5, 0, "NS100"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "31", "and", "drug", "code", "is", "ns100", "?"], "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.\"formulary_drug_cd\"", "=", "\"ns100\""], "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.\"FORMULARY_DRUG_CD\" = \"NS100\"", "question_refine": "how many patients whose age is less than 31 and drug code is ns100?", "key": "441766c7fa17df073dbf623a71f5362e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 79], [3, 5, 0, "LABE100I"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "79", "and", "drug", "code", "is", "labe100i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"79\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"labe100i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"79\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"LABE100I\"", "question_refine": "give me the number of patients whose age is less than 79 and drug code is labe100i?", "key": "563555bc05aa09e5e2bbd65d715b34c0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 81], [3, 5, 0, "PRISMAB32K25000"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "81", "and", "drug", "code", "is", "prismab32k25000", "?"], "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.\"formulary_drug_cd\"", "=", "\"prismab32k25000\""], "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.\"FORMULARY_DRUG_CD\" = \"PRISMAB32K25000\"", "question_refine": "count the number of patients whose age is less than 81 and drug code is prismab32k25000?", "key": "cc47c908328cf652ebbb1722b863f0ec"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 45], [3, 5, 0, "GLYC1R"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "45", "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.\"age\"", "<", "\"45\"", "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.\"AGE\" < \"45\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"GLYC1R\"", "question_refine": "give me the number of patients whose age is less than 45 and drug code is glyc1r?", "key": "6961f7e5922482fc78f61e0d647ec7f9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 4, 2, 80], [3, 6, 0, "NG"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "80", "and", "drug", "route", "is", "ng", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"age\"", "<", "\"80\"", "and", "prescriptions.\"route\"", "=", "\"ng\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"80\" AND PRESCRIPTIONS.\"ROUTE\" = \"NG\"", "question_refine": "give me the number of patients whose age is less than 80 and drug route is ng?", "key": "0812d1beaa8c0f11029df18c22becbfb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 71], [4, 2, 0, 50818]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "71", "and", "item", "i", "d", "is", "50818", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"71\"", "and", "lab.\"itemid\"", "=", "\"50818\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"71\" AND LAB.\"ITEMID\" = \"50818\"", "question_refine": "what is the number of patients whose age is less than 71 and item id is 50818?", "key": "e7e973eb81b9de1e049edc0ae649b488"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 83], [4, 6, 0, "Calculated Total CO2"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "83", "and", "lab", "test", "name", "is", "calculated", "total", "co2", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"age\"", "<", "\"83\"", "and", "lab.\"label\"", "=", "\"calculated", "total", "co2\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"AGE\" < \"83\" AND LAB.\"LABEL\" = \"Calculated Total CO2\"", "question_refine": "how many patients whose age is less than 83 and lab test name is calculated total co2?", "key": "80ee3f85230915524540a427d4f8f773"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 79], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "79", "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\"", "<", "\"79\"", "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\" < \"79\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "count the number of patients whose age is less than 79 and lab test fluid is joint fluid?", "key": "b40daf9861865b22b90021850b12a503"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 45], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "45", "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\"", "<", "\"45\"", "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\" < \"45\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "give me the number of patients whose age is less than 45 and lab test fluid is joint fluid?", "key": "2749fa45de5e435c68e571a49c1b5644"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 47], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "47", "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\"", "<", "\"47\"", "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\" < \"47\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "what is the number of patients whose age is less than 47 and lab test fluid is cerebrospinal fluid (csf)?", "key": "9477db2ed5deff7959e82cba99f03ccc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 47], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "age", "is", "less", "than", "47", "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\"", "<", "\"47\"", "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\" < \"47\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "how many patients whose age is less than 47 and lab test fluid is joint fluid?", "key": "9929ab98f8f699285174a732dcefa8fb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 4, 2, 61], [4, 8, 0, "Blood Gas"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "age", "is", "less", "than", "61", "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\"", "<", "\"61\"", "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\" < \"61\" AND LAB.\"CATEGORY\" = \"Blood Gas\"", "question_refine": "provide the number of patients whose age is less than 61 and lab test category is blood gas?", "key": "58a51b8b207344a9cfd6602bf16a5974"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 34], [1, 2, 0, "261"]], "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", "261", "?"], "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\"", "=", "\"261\""], "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\" = \"261\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 34 and diagnoses icd9 code is 261?", "key": "dac8ef3e72216586667d9798cef1a4f4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 10, 1, 6], [1, 4, 0, "Need for prophylactic vaccination and inoculation against viral hepatitis"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "diagnoses", "long", "title", "is", "need", "for", "prophylactic", "vaccination", "and", "inoculation", "against", "viral", "hepatitis", "?"], "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.\"long_title\"", "=", "\"need", "for", "prophylactic", "vaccination", "and", "inoculation", "against", "viral", "hepatitis\""], "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.\"LONG_TITLE\" = \"Need for prophylactic vaccination and inoculation against viral hepatitis\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 6 and diagnoses long title is need for prophylactic vaccination and inoculation against viral hepatitis?", "key": "c1f1c08a5022f846ef75fc5a44cdde21"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 7], [2, 2, 0, 5732]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "7", "and", "procedure", "icd9", "code", "is", "5732", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"7\"", "and", "procedures.\"icd9_code\"", "=", "\"5732\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"7\" AND PROCEDURES.\"ICD9_CODE\" = \"5732\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 7 and procedure icd9 code is 5732?", "key": "19b619bf2cb57190be0fb22e8618d105"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 13], [2, 2, 0, 4105]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "13", "and", "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", "demographic.\"days_stay\"", ">", "\"13\"", "and", "procedures.\"icd9_code\"", "=", "\"4105\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"13\" AND PROCEDURES.\"ICD9_CODE\" = \"4105\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 13 and procedure icd9 code is 4105?", "key": "cd5589bdc1f9a057b0d6b0824bb087f0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 10, 1, 29], [2, 2, 0, 5091]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "29", "and", "procedure", "icd9", "code", "is", "5091", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"29\"", "and", "procedures.\"icd9_code\"", "=", "\"5091\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"29\" AND PROCEDURES.\"ICD9_CODE\" = \"5091\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 29 and procedure icd9 code is 5091?", "key": "6f6415819ef9e03e1e78a3ca96b38382"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 2], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "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.\"days_stay\"", ">", "\"2\"", "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.\"DAYS_STAY\" > \"2\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 2 and drug type is main?", "key": "2682eceaeedf11522b6abc8e10d7e957"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 17], [3, 4, 0, "Sulfameth/Trimethoprim DS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "17", "and", "drug", "name", "is", "sulfameth", "/", "trimethoprim", "ds", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"17\"", "and", "prescriptions.\"drug\"", "=", "\"sulfameth/trimethoprim", "ds\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"17\" AND PRESCRIPTIONS.\"DRUG\" = \"Sulfameth/Trimethoprim DS\"", "question_refine": "how many patients whose days of hospital stay is greater than 17 and drug name is sulfameth/trimethoprim ds?", "key": "58bbfb154948177301fae8878c115125"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 29], [3, 4, 0, "Miconazole Powder 2%"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "29", "and", "drug", "name", "is", "miconazole", "powder", "2", "%", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"29\"", "and", "prescriptions.\"drug\"", "=", "\"miconazole", "powder", "2%\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"29\" AND PRESCRIPTIONS.\"DRUG\" = \"Miconazole Powder 2%\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 29 and drug name is miconazole powder 2%?", "key": "cccadd83cf78de2d4da29ed42b30df7b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 10, 1, 11], [3, 4, 0, "Chlorothiazide"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "11", "and", "drug", "name", "is", "chlorothiazide", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"11\"", "and", "prescriptions.\"drug\"", "=", "\"chlorothiazide\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"11\" AND PRESCRIPTIONS.\"DRUG\" = \"Chlorothiazide\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 11 and drug name is chlorothiazide?", "key": "f42855d790c60799f862200ab51bfbd3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 9], [4, 6, 0, "Promyelocytes"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "9", "and", "lab", "test", "name", "is", "promyelocytes", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"9\"", "and", "lab.\"label\"", "=", "\"promyelocytes\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"9\" AND LAB.\"LABEL\" = \"Promyelocytes\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 9 and lab test name is promyelocytes?", "key": "223770a07fb8c8203d65e98d3fb87958"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 6], [4, 6, 0, "Uptake Ratio"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "and", "lab", "test", "name", "is", "uptake", "ratio", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"6\"", "and", "lab.\"label\"", "=", "\"uptake", "ratio\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"6\" AND LAB.\"LABEL\" = \"Uptake Ratio\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 6 and lab test name is uptake ratio?", "key": "041c8acdd0d9dab2c05dcd9aae709c9c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 15], [4, 6, 0, "Homocysteine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "15", "and", "lab", "test", "name", "is", "homocysteine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"days_stay\"", ">", "\"15\"", "and", "lab.\"label\"", "=", "\"homocysteine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DAYS_STAY\" > \"15\" AND LAB.\"LABEL\" = \"Homocysteine\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 15 and lab test name is homocysteine?", "key": "c93f08326c096ef125416bd2da725911"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 2], [4, 6, 0, "Calcium, Total"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "and", "lab", "test", "name", "is", "calcium", ",", "total", "?"], "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.\"label\"", "=", "\"calcium", "total\""], "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.\"LABEL\" = \"Calcium, Total\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 2 and lab test name is calcium, total?", "key": "26ee297be63125c9cfd7f44a7f20b9b4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 27], [4, 6, 0, "Magnesium"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "27", "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.\"days_stay\"", ">", "\"27\"", "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.\"DAYS_STAY\" > \"27\" AND LAB.\"LABEL\" = \"Magnesium\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 27 and lab test name is magnesium?", "key": "45b261bc2672cfb0474bc7ef8702cd90"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 5], [4, 6, 0, "Iron"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "5", "and", "lab", "test", "name", "is", "iron", "?"], "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.\"label\"", "=", "\"iron\""], "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.\"LABEL\" = \"Iron\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 5 and lab test name is iron?", "key": "a40fd92f9acfa57c7590f47f47d476a9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 2], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "2", "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.\"days_stay\"", ">", "\"2\"", "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.\"DAYS_STAY\" > \"2\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "count the number of patients whose days of hospital stay is greater than 2 and lab test fluid is ascites?", "key": "cff2df672f7796494d24cc9f6f2c7fbe"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 2], [4, 7, 0, "Blood"]], "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", "blood", "?"], "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\"", "=", "\"blood\""], "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\" = \"Blood\"", "question_refine": "give me the number of patients whose days of hospital stay is greater than 2 and lab test fluid is blood?", "key": "9e0adb1842a05975ad394d23099df416"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 4], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "4", "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\"", ">", "\"4\"", "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\" > \"4\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "provide the number of patients whose days of hospital stay is greater than 4 and lab test category is chemistry?", "key": "b8fbc12935329c2b4a36acdeb8ad37af"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 10, 1, 6], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "greater", "than", "6", "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\"", ">", "\"6\"", "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\" > \"6\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "what is the number of patients whose days of hospital stay is greater than 6 and lab test category is chemistry?", "key": "12dc404ee1f1badb21b2675270f4742a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 18, 2, 2156], [1, 3, 0, "Chrnc hpt C wo hpat coma"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2156", "and", "diagnoses", "short", "title", "is", "chrnc", "hpt", "c", "wo", "hpat", "coma", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2156\"", "and", "diagnoses.\"short_title\"", "=", "\"chrnc", "hpt", "c", "wo", "hpat", "coma\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2156\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Chrnc hpt C wo hpat coma\"", "question_refine": "what is the number of patients whose year of birth is less than 2156 and diagnoses short title is chrnc hpt c wo hpat coma?", "key": "c43a3710a18e64ac1497eedc6ad00bb5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 18, 2, 2197], [1, 3, 0, "Neutropenia NOS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2197", "and", "diagnoses", "short", "title", "is", "neutropenia", "nos", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2197\"", "and", "diagnoses.\"short_title\"", "=", "\"neutropenia", "nos\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2197\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Neutropenia NOS\"", "question_refine": "provide the number of patients whose year of birth is less than 2197 and diagnoses short title is neutropenia nos?", "key": "c77d73f4a197fba59e043eadd4f111f7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 18, 2, 2095], [1, 3, 0, "Psoas muscle abscess"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2095", "and", "diagnoses", "short", "title", "is", "psoas", "muscle", "abscess", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2095\"", "and", "diagnoses.\"short_title\"", "=", "\"psoas", "muscle", "abscess\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2095\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Psoas muscle abscess\"", "question_refine": "provide the number of patients whose year of birth is less than 2095 and diagnoses short title is psoas muscle abscess?", "key": "1c00c5d2d9805f9930e13291bdf741f5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2101], [2, 3, 0, "Oth uni salpingo-oophor"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2101", "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.\"dob_year\"", "<", "\"2101\"", "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.\"DOB_YEAR\" < \"2101\" AND PROCEDURES.\"SHORT_TITLE\" = \"Oth uni salpingo-oophor\"", "question_refine": "provide the number of patients whose year of birth is less than 2101 and procedure short title is oth uni salpingo-oophor?", "key": "9aed504ab441968796072a87021380bd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2152], [2, 3, 0, "Left heart cardiac cath"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2152", "and", "procedure", "short", "title", "is", "left", "heart", "cardiac", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2152\"", "and", "procedures.\"short_title\"", "=", "\"left", "heart", "cardiac", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2152\" AND PROCEDURES.\"SHORT_TITLE\" = \"Left heart cardiac cath\"", "question_refine": "count the number of patients whose year of birth is less than 2152 and procedure short title is left heart cardiac cath?", "key": "4b0fdec025eab9185a47eabcc05bfc68"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2167], [2, 4, 0, "Incision of vessel, lower limb arteries"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2167", "and", "procedure", "long", "title", "is", "incision", "of", "vessel", ",", "lower", "limb", "arteries", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2167\"", "and", "procedures.\"long_title\"", "=", "\"incision", "of", "vessel", "lower", "limb", "arteries\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2167\" AND PROCEDURES.\"LONG_TITLE\" = \"Incision of vessel, lower limb arteries\"", "question_refine": "how many patients whose year of birth is less than 2167 and procedure long title is incision of vessel, lower limb arteries?", "key": "166eaf5275c5a5f710cebd477dd1d5e0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 18, 2, 2052], [2, 4, 0, "Combined right and left heart cardiac catheterization"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2052", "and", "procedure", "long", "title", "is", "combined", "right", "and", "left", "heart", "cardiac", "catheterization", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2052\"", "and", "procedures.\"long_title\"", "=", "\"combined", "right", "and", "left", "heart", "cardiac", "catheterization\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2052\" AND PROCEDURES.\"LONG_TITLE\" = \"Combined right and left heart cardiac catheterization\"", "question_refine": "give me the number of patients whose year of birth is less than 2052 and procedure long title is combined right and left heart cardiac catheterization?", "key": "fef5bfc1845bf60b6c8f0ec883f83c79"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2056], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2056", "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\"", "<", "\"2056\"", "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\" < \"2056\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "give me the number of patients whose year of birth is less than 2056 and drug type is additive?", "key": "8d788b16e6971a9a34287098e2dae8d0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2056], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2056", "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.\"dob_year\"", "<", "\"2056\"", "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.\"DOB_YEAR\" < \"2056\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose year of birth is less than 2056 and drug type is base?", "key": "dfe1f399cd6198c91d582898b32ac621"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2058], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2058", "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.\"dob_year\"", "<", "\"2058\"", "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.\"DOB_YEAR\" < \"2058\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose year of birth is less than 2058 and drug type is base?", "key": "8b337a6fe394db23cf83bb795f3857e4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2043], [3, 4, 0, "Multivitamins"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2043", "and", "drug", "name", "is", "multivitamins", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2043\"", "and", "prescriptions.\"drug\"", "=", "\"multivitamins\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2043\" AND PRESCRIPTIONS.\"DRUG\" = \"Multivitamins\"", "question_refine": "how many patients whose year of birth is less than 2043 and drug name is multivitamins?", "key": "912cffbe3cf8d92fdd16bffe6c0b48ac"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2089], [3, 4, 0, "MetFORMIN (Glucophage)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2089", "and", "drug", "name", "is", "metformin", "(", "glucophage", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2089\"", "and", "prescriptions.\"drug\"", "=", "\"metformin", "(glucophage)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2089\" AND PRESCRIPTIONS.\"DRUG\" = \"MetFORMIN (Glucophage)\"", "question_refine": "count the number of patients whose year of birth is less than 2089 and drug name is metformin (glucophage)?", "key": "13b4a89a04763233ceade13254e564cf"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2098], [3, 5, 0, "CSA50I"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2098", "and", "drug", "code", "is", "csa50i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2098\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"csa50i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2098\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"CSA50I\"", "question_refine": "count the number of patients whose year of birth is less than 2098 and drug code is csa50i?", "key": "04aaa830b65379f36ce981e5ed8eedc6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 1821], [3, 5, 0, "THIAM100I"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "1821", "and", "drug", "code", "is", "thiam100i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"1821\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"thiam100i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"1821\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"THIAM100I\"", "question_refine": "give me the number of patients whose year of birth is less than 1821 and drug code is thiam100i?", "key": "feca6eb3c6997a6031da4b5e17510e65"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2056], [3, 6, 0, "SL"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2056", "and", "drug", "route", "is", "sl", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2056\"", "and", "prescriptions.\"route\"", "=", "\"sl\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2056\" AND PRESCRIPTIONS.\"ROUTE\" = \"SL\"", "question_refine": "give me the number of patients whose year of birth is less than 2056 and drug route is sl?", "key": "f1398417a4f5f4700abc605d4f91232e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2168], [3, 6, 0, "BUCCAL"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2168", "and", "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", "demographic.\"dob_year\"", "<", "\"2168\"", "and", "prescriptions.\"route\"", "=", "\"buccal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2168\" AND PRESCRIPTIONS.\"ROUTE\" = \"BUCCAL\"", "question_refine": "give me the number of patients whose year of birth is less than 2168 and drug route is buccal?", "key": "9a94dd8ff3042346cf7d2ea10b9c5d65"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 18, 2, 2104], [3, 6, 0, "TD"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2104", "and", "drug", "route", "is", "td", "?"], "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.\"route\"", "=", "\"td\""], "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.\"ROUTE\" = \"TD\"", "question_refine": "what is the number of patients whose year of birth is less than 2104 and drug route is td?", "key": "4a463baeee1e485d0010bfbba8b0e6ae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2146], [4, 2, 0, 51067]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2146", "and", "item", "i", "d", "is", "51067", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2146\"", "and", "lab.\"itemid\"", "=", "\"51067\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2146\" AND LAB.\"ITEMID\" = \"51067\"", "question_refine": "provide the number of patients whose year of birth is less than 2146 and item id is 51067?", "key": "e93ef1bbc8ef8257c8d65de5dad94d61"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2097], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2097", "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.\"dob_year\"", "<", "\"2097\"", "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.\"DOB_YEAR\" < \"2097\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "how many patients whose year of birth is less than 2097 and lab test abnormal status is abnormal?", "key": "eebe2ccdc6204d9b548bbbf057ed69a7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2073], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2073", "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.\"dob_year\"", "<", "\"2073\"", "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.\"DOB_YEAR\" < \"2073\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "how many patients whose year of birth is less than 2073 and lab test abnormal status is delta?", "key": "43a7e0a235261a435001e2bf24d3bc49"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 1882], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "birth", "is", "less", "than", "1882", "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.\"dob_year\"", "<", "\"1882\"", "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.\"DOB_YEAR\" < \"1882\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "how many patients whose year of birth is less than 1882 and lab test abnormal status is abnormal?", "key": "dc5daeecb42a6a0379e46b0f350ff8dc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2123], [4, 6, 0, "Immunoglobulin A"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2123", "and", "lab", "test", "name", "is", "immunoglobulin", "a", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2123\"", "and", "lab.\"label\"", "=", "\"immunoglobulin", "a\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2123\" AND LAB.\"LABEL\" = \"Immunoglobulin A\"", "question_refine": "what is the number of patients whose year of birth is less than 2123 and lab test name is immunoglobulin a?", "key": "1e99f4b0c23ea07516b838f36e5a5537"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2129], [4, 6, 0, "Albumin"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2129", "and", "lab", "test", "name", "is", "albumin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2129\"", "and", "lab.\"label\"", "=", "\"albumin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2129\" AND LAB.\"LABEL\" = \"Albumin\"", "question_refine": "give me the number of patients whose year of birth is less than 2129 and lab test name is albumin?", "key": "b3de01b1a454516ab7099d613d81485a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2110], [4, 6, 0, "Asparate Aminotransferase (AST)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2110", "and", "lab", "test", "name", "is", "asparate", "aminotransferase", "(", "ast", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2110\"", "and", "lab.\"label\"", "=", "\"asparate", "aminotransferase", "(ast)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2110\" AND LAB.\"LABEL\" = \"Asparate Aminotransferase (AST)\"", "question_refine": "what is the number of patients whose year of birth is less than 2110 and lab test name is asparate aminotransferase (ast)?", "key": "36601300e3ae15c9c50278710a23aa38"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2058], [4, 6, 0, "Urea Nitrogen"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2058", "and", "lab", "test", "name", "is", "urea", "nitrogen", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dob_year\"", "<", "\"2058\"", "and", "lab.\"label\"", "=", "\"urea", "nitrogen\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOB_YEAR\" < \"2058\" AND LAB.\"LABEL\" = \"Urea Nitrogen\"", "question_refine": "what is the number of patients whose year of birth is less than 2058 and lab test name is urea nitrogen?", "key": "25c9d8b4ecaf1ee16c48316cc63d910d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2052], [4, 6, 0, "Alanine Aminotransferase (ALT)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2052", "and", "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", "demographic.\"dob_year\"", "<", "\"2052\"", "and", "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 DEMOGRAPHIC.\"DOB_YEAR\" < \"2052\" AND LAB.\"LABEL\" = \"Alanine Aminotransferase (ALT)\"", "question_refine": "provide the number of patients whose year of birth is less than 2052 and lab test name is alanine aminotransferase (alt)?", "key": "741f72c928a0d0a7a29bab48de56e559"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2089], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2089", "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.\"dob_year\"", "<", "\"2089\"", "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.\"DOB_YEAR\" < \"2089\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "what is the number of patients whose year of birth is less than 2089 and lab test fluid is blood?", "key": "b84e0c4803d8fe40224ac8b46a8e155c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 18, 2, 2121], [4, 7, 0, "Other Body Fluid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "birth", "is", "less", "than", "2121", "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.\"dob_year\"", "<", "\"2121\"", "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.\"DOB_YEAR\" < \"2121\" AND LAB.\"FLUID\" = \"Other Body Fluid\"", "question_refine": "give me the number of patients whose year of birth is less than 2121 and lab test fluid is other body fluid?", "key": "5056e4c6ec3434e614f30b7bb0ea9677"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 19, 4, 2154.0], [1, 2, 0, "78830"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2154", "and", "diagnoses", "icd9", "code", "is", "78830", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2154.0\"", "and", "diagnoses.\"icd9_code\"", "=", "\"78830\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2154.0\" AND DIAGNOSES.\"ICD9_CODE\" = \"78830\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2154 and diagnoses icd9 code is 78830?", "key": "1afa46be768678740333e3be46cfa110"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 19, 4, 2138.0], [1, 2, 0, "53190"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "and", "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", "demographic.\"dod_year\"", "<=", "\"2138.0\"", "and", "diagnoses.\"icd9_code\"", "=", "\"53190\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2138.0\" AND DIAGNOSES.\"ICD9_CODE\" = \"53190\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2138 and diagnoses icd9 code is 53190?", "key": "b2af01f906fc67da9194fb828cded436"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 19, 4, 2186.0], [1, 2, 0, "7778"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2186", "and", "diagnoses", "icd9", "code", "is", "7778", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2186.0\"", "and", "diagnoses.\"icd9_code\"", "=", "\"7778\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2186.0\" AND DIAGNOSES.\"ICD9_CODE\" = \"7778\"", "question_refine": "how many patients whose year of death is less than or equal to 2186 and diagnoses icd9 code is 7778?", "key": "7665a920d3d095a6ea138665bc64eafa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 19, 4, 2138.0], [1, 4, 0, "Acute on chronic systolic heart failure"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "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.\"dod_year\"", "<=", "\"2138.0\"", "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.\"DOD_YEAR\" <= \"2138.0\" AND DIAGNOSES.\"LONG_TITLE\" = \"Acute on chronic systolic heart failure\"", "question_refine": "what is the number of patients whose year of death is less than or equal to 2138 and diagnoses long title is acute on chronic systolic heart failure?", "key": "324d0aab32f8b49482e168eea3ab1d42"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 19, 4, 2186.0], [1, 4, 0, "Hyperacusis"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2186", "and", "diagnoses", "long", "title", "is", "hyperacusis", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2186.0\"", "and", "diagnoses.\"long_title\"", "=", "\"hyperacusis\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2186.0\" AND DIAGNOSES.\"LONG_TITLE\" = \"Hyperacusis\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2186 and diagnoses long title is hyperacusis?", "key": "d87537d0895d38e51ed199569b6b1b69"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2158.0], [2, 2, 0, 3607]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2158", "and", "procedure", "icd9", "code", "is", "3607", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2158.0\"", "and", "procedures.\"icd9_code\"", "=", "\"3607\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2158.0\" AND PROCEDURES.\"ICD9_CODE\" = \"3607\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2158 and procedure icd9 code is 3607?", "key": "93d86e3665bfdc28bf4f53f614f822e4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2174.0], [2, 2, 0, 3532]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2174", "and", "procedure", "icd9", "code", "is", "3532", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2174.0\"", "and", "procedures.\"icd9_code\"", "=", "\"3532\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2174.0\" AND PROCEDURES.\"ICD9_CODE\" = \"3532\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2174 and procedure icd9 code is 3532?", "key": "a0b072515d219e08b773a299e146e61e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2155.0], [2, 2, 0, 598]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2155", "and", "procedure", "icd9", "code", "is", "598", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2155.0\"", "and", "procedures.\"icd9_code\"", "=", "\"598\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2155.0\" AND PROCEDURES.\"ICD9_CODE\" = \"598\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2155 and procedure icd9 code is 598?", "key": "5994caba02909de60529e44302f6b2e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2138.0], [2, 3, 0, "Aortocor bypas-1 cor art"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "and", "procedure", "short", "title", "is", "aortocor", "bypas-1", "cor", "art", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2138.0\"", "and", "procedures.\"short_title\"", "=", "\"aortocor", "bypas-1", "cor", "art\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2138.0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Aortocor bypas-1 cor art\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2138 and procedure short title is aortocor bypas-1 cor art?", "key": "d3dd1e6f43d1a3ca1a500dbfc48b1d39"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2112.0], [2, 3, 0, "Coronar arteriogr-2 cath"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2112", "and", "procedure", "short", "title", "is", "coronar", "arteriogr-2", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2112.0\"", "and", "procedures.\"short_title\"", "=", "\"coronar", "arteriogr-2", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2112.0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Coronar arteriogr-2 cath\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2112 and procedure short title is coronar arteriogr-2 cath?", "key": "64d63f275d27d8d5f577ec8e9b46ce23"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2186.0], [2, 3, 0, "Chordae tendineae ops"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2186", "and", "procedure", "short", "title", "is", "chordae", "tendineae", "ops", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2186.0\"", "and", "procedures.\"short_title\"", "=", "\"chordae", "tendineae", "ops\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2186.0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Chordae tendineae ops\"", "question_refine": "what is the number of patients whose year of death is less than or equal to 2186 and procedure short title is chordae tendineae ops?", "key": "beb830d1eac3b8917dd1e48ea7c63a5f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2126.0], [2, 3, 0, "Umbilical vein cath"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2126", "and", "procedure", "short", "title", "is", "umbilical", "vein", "cath", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2126.0\"", "and", "procedures.\"short_title\"", "=", "\"umbilical", "vein", "cath\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2126.0\" AND PROCEDURES.\"SHORT_TITLE\" = \"Umbilical vein cath\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2126 and procedure short title is umbilical vein cath?", "key": "d42d307c4656f617c130ade46f6e4659"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 19, 4, 2183.0], [2, 4, 0, "Annuloplasty"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2183", "and", "procedure", "long", "title", "is", "annuloplasty", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2183.0\"", "and", "procedures.\"long_title\"", "=", "\"annuloplasty\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2183.0\" AND PROCEDURES.\"LONG_TITLE\" = \"Annuloplasty\"", "question_refine": "provide the number of patients whose year of death is less than or equal to 2183 and procedure long title is annuloplasty?", "key": "4883f4ed234f53bc5f65eaceb405fc4b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2164.0], [3, 4, 0, "Multivitamins"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2164", "and", "drug", "name", "is", "multivitamins", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2164.0\"", "and", "prescriptions.\"drug\"", "=", "\"multivitamins\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2164.0\" AND PRESCRIPTIONS.\"DRUG\" = \"Multivitamins\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2164 and drug name is multivitamins?", "key": "76836c47df5e75bc45ac3ac65c1fdd55"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2115.0], [3, 4, 0, "Docusate Sodium (Liquid)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2115", "and", "drug", "name", "is", "docusate", "sodium", "(", "liquid", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2115.0\"", "and", "prescriptions.\"drug\"", "=", "\"docusate", "sodium", "(liquid)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2115.0\" AND PRESCRIPTIONS.\"DRUG\" = \"Docusate Sodium (Liquid)\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2115 and drug name is docusate sodium (liquid)?", "key": "c3621207bc2277eb597aa153cf5b2935"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2158.0], [3, 4, 0, "Hydralazine HCl"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2158", "and", "drug", "name", "is", "hydralazine", "hcl", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2158.0\"", "and", "prescriptions.\"drug\"", "=", "\"hydralazine", "hcl\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2158.0\" AND PRESCRIPTIONS.\"DRUG\" = \"Hydralazine HCl\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2158 and drug name is hydralazine hcl?", "key": "ebf9189abbaade8c74ccccb10a3d577b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2179.0], [3, 5, 0, "METH10SY"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2179", "and", "drug", "code", "is", "meth10sy", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2179.0\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"meth10sy\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2179.0\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"METH10SY\"", "question_refine": "provide the number of patients whose year of death is less than or equal to 2179 and drug code is meth10sy?", "key": "a87c0978ba87e83f55173bebe12f1ca5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2155.0], [3, 5, 0, "OSEL75"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2155", "and", "drug", "code", "is", "osel75", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2155.0\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"osel75\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2155.0\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"OSEL75\"", "question_refine": "what is the number of patients whose year of death is less than or equal to 2155 and drug code is osel75?", "key": "1c668ee8fcd3e37920d04e2dfd819b41"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2186.0], [3, 5, 0, "HYDX25"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2186", "and", "drug", "code", "is", "hydx25", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2186.0\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"hydx25\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2186.0\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"HYDX25\"", "question_refine": "how many patients whose year of death is less than or equal to 2186 and drug code is hydx25?", "key": "774602436653179ac5977522d8579f44"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 19, 4, 2115.0], [3, 5, 0, "GLYB5"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2115", "and", "drug", "code", "is", "glyb5", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2115.0\"", "and", "prescriptions.\"formulary_drug_cd\"", "=", "\"glyb5\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2115.0\" AND PRESCRIPTIONS.\"FORMULARY_DRUG_CD\" = \"GLYB5\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2115 and drug code is glyb5?", "key": "2b5c1775820538d4ded33a563e27c2c9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2165.0], [4, 2, 0, 50967]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2165", "and", "item", "i", "d", "is", "50967", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2165.0\"", "and", "lab.\"itemid\"", "=", "\"50967\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2165.0\" AND LAB.\"ITEMID\" = \"50967\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2165 and item id is 50967?", "key": "732523f3076f1f35216ce2287b609655"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2138.0], [4, 2, 0, 51355]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2138", "and", "item", "i", "d", "is", "51355", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2138.0\"", "and", "lab.\"itemid\"", "=", "\"51355\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2138.0\" AND LAB.\"ITEMID\" = \"51355\"", "question_refine": "provide the number of patients whose year of death is less than or equal to 2138 and item id is 51355?", "key": "7985612f8518f8cea053272dc963ff7f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2158.0], [4, 2, 0, 51078]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2158", "and", "item", "i", "d", "is", "51078", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2158.0\"", "and", "lab.\"itemid\"", "=", "\"51078\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2158.0\" AND LAB.\"ITEMID\" = \"51078\"", "question_refine": "count the number of patients whose year of death is less than or equal to 2158 and item id is 51078?", "key": "75db1115cb726399a55ed335bc7d5dce"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2115.0], [4, 6, 0, "Hyaline Casts"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2115", "and", "lab", "test", "name", "is", "hyaline", "casts", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"dod_year\"", "<=", "\"2115.0\"", "and", "lab.\"label\"", "=", "\"hyaline", "casts\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"DOD_YEAR\" <= \"2115.0\" AND LAB.\"LABEL\" = \"Hyaline Casts\"", "question_refine": "what is the number of patients whose year of death is less than or equal to 2115 and lab test name is hyaline casts?", "key": "32c111942d460261e4c7b721b5db4963"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 19, 4, 2174.0], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "year", "of", "death", "is", "less", "than", "or", "equal", "to", "2174", "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.\"dod_year\"", "<=", "\"2174.0\"", "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.\"DOD_YEAR\" <= \"2174.0\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "give me the number of patients whose year of death is less than or equal to 2174 and lab test fluid is cerebrospinal fluid (csf)?", "key": "852c38805b02fde471c1b7ef1a27d8a7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2154], [1, 2, 0, "2449"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2154", "and", "diagnoses", "icd9", "code", "is", "2449", "?"], "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.\"icd9_code\"", "=", "\"2449\""], "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.\"ICD9_CODE\" = \"2449\"", "question_refine": "count the number of patients whose admission year is less than 2154 and diagnoses icd9 code is 2449?", "key": "7087b1072ba4b56d7a3da131e184b410"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2110], [1, 2, 0, "7885"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2110", "and", "diagnoses", "icd9", "code", "is", "7885", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2110\"", "and", "diagnoses.\"icd9_code\"", "=", "\"7885\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2110\" AND DIAGNOSES.\"ICD9_CODE\" = \"7885\"", "question_refine": "provide the number of patients whose admission year is less than 2110 and diagnoses icd9 code is 7885?", "key": "f52ffc5e9bd6419b782aedb8a57fbe56"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2156], [1, 2, 0, "70721"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2156", "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.\"admityear\"", "<", "\"2156\"", "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.\"ADMITYEAR\" < \"2156\" AND DIAGNOSES.\"ICD9_CODE\" = \"70721\"", "question_refine": "provide the number of patients whose admission year is less than 2156 and diagnoses icd9 code is 70721?", "key": "223eefbf9f9c20077e8424988afa3ac5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2151], [1, 2, 0, "V3001"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2151", "and", "diagnoses", "icd9", "code", "is", "v3001", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2151\"", "and", "diagnoses.\"icd9_code\"", "=", "\"v3001\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2151\" AND DIAGNOSES.\"ICD9_CODE\" = \"V3001\"", "question_refine": "count the number of patients whose admission year is less than 2151 and diagnoses icd9 code is v3001?", "key": "1cab69a98f8a66110d63a75ffda12005"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2127], [1, 3, 0, "Ath ext ntv at w claudct"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2127", "and", "diagnoses", "short", "title", "is", "ath", "ext", "ntv", "at", "w", "claudct", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2127\"", "and", "diagnoses.\"short_title\"", "=", "\"ath", "ext", "ntv", "at", "w", "claudct\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2127\" AND DIAGNOSES.\"SHORT_TITLE\" = \"Ath ext ntv at w claudct\"", "question_refine": "give me the number of patients whose admission year is less than 2127 and diagnoses short title is ath ext ntv at w claudct?", "key": "90a24153dace1eca212a0d305d842da2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2138], [1, 4, 0, "Adrenal cortical steroids causing adverse effects in therapeutic use"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2138", "and", "diagnoses", "long", "title", "is", "adrenal", "cortical", "steroids", "causing", "adverse", "effects", "in", "therapeutic", "use", "?"], "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\"", "=", "\"adrenal", "cortical", "steroids", "causing", "adverse", "effects", "in", "therapeutic", "use\""], "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\" = \"Adrenal cortical steroids causing adverse effects in therapeutic use\"", "question_refine": "how many patients whose admission year is less than 2138 and diagnoses long title is adrenal cortical steroids causing adverse effects in therapeutic use?", "key": "93f89fc335db93034b7522fab5f8f08a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2129], [1, 4, 0, "Other dependence on machines, supplemental oxygen"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2129", "and", "diagnoses", "long", "title", "is", "other", "dependence", "on", "machines", ",", "supplemental", "oxygen", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2129\"", "and", "diagnoses.\"long_title\"", "=", "\"other", "dependence", "on", "machines", "supplemental", "oxygen\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2129\" AND DIAGNOSES.\"LONG_TITLE\" = \"Other dependence on machines, supplemental oxygen\"", "question_refine": "count the number of patients whose admission year is less than 2129 and diagnoses long title is other dependence on machines, supplemental oxygen?", "key": "4e1de20e718d475140bfb90cc2319e4a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1], "cond": [[0, 22, 2, 2174], [1, 4, 0, "Ventricular septal defect"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2174", "and", "diagnoses", "long", "title", "is", "ventricular", "septal", "defect", "?"], "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\"", "=", "\"ventricular", "septal", "defect\""], "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\" = \"Ventricular septal defect\"", "question_refine": "how many patients whose admission year is less than 2174 and diagnoses long title is ventricular septal defect?", "key": "891b0bdb0e64dd2023700412b0aea84c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2137], [2, 2, 0, 3322]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2137", "and", "procedure", "icd9", "code", "is", "3322", "?"], "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\"", "=", "\"3322\""], "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\" = \"3322\"", "question_refine": "give me the number of patients whose admission year is less than 2137 and procedure icd9 code is 3322?", "key": "1e7dee5879bc0365443475bcf7ddc24a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2151], [2, 2, 0, 8841]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "admission", "year", "is", "less", "than", "2151", "and", "procedure", "icd9", "code", "is", "8841", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2151\"", "and", "procedures.\"icd9_code\"", "=", "\"8841\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2151\" AND PROCEDURES.\"ICD9_CODE\" = \"8841\"", "question_refine": "how many patients whose admission year is less than 2151 and procedure icd9 code is 8841?", "key": "fb11df5e2c7caab8df0bd9532d929d42"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2115], [2, 4, 0, "Insertion of non-drug-eluting coronary artery stent(s)"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2115", "and", "procedure", "long", "title", "is", "insertion", "of", "non", "-", "drug", "-", "eluting", "coronary", "artery", "stent(s", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2115\"", "and", "procedures.\"long_title\"", "=", "\"insertion", "of", "non-drug-eluting", "coronary", "artery", "stent(s)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2115\" AND PROCEDURES.\"LONG_TITLE\" = \"Insertion of non-drug-eluting coronary artery stent(s)\"", "question_refine": "give me the number of patients whose admission year is less than 2115 and procedure long title is insertion of non-drug-eluting coronary artery stent(s)?", "key": "35747a945c511646382b6b23a6a4cf70"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2], "cond": [[0, 22, 2, 2184], [2, 4, 0, "Other transplant of liver"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2184", "and", "procedure", "long", "title", "is", "other", "transplant", "of", "liver", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2184\"", "and", "procedures.\"long_title\"", "=", "\"other", "transplant", "of", "liver\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2184\" AND PROCEDURES.\"LONG_TITLE\" = \"Other transplant of liver\"", "question_refine": "provide the number of patients whose admission year is less than 2184 and procedure long title is other transplant of liver?", "key": "b72f367fbc5290c1b2581b39b2ca36d1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2170], [3, 6, 0, "IV BOLUS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2170", "and", "drug", "route", "is", "iv", "bolus", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2170\"", "and", "prescriptions.\"route\"", "=", "\"iv", "bolus\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2170\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV BOLUS\"", "question_refine": "give me the number of patients whose admission year is less than 2170 and drug route is iv bolus?", "key": "7b9305922778542953dff6ee9a03cde4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2124], [3, 6, 0, "IV BOLUS"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2124", "and", "drug", "route", "is", "iv", "bolus", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2124\"", "and", "prescriptions.\"route\"", "=", "\"iv", "bolus\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2124\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV BOLUS\"", "question_refine": "give me the number of patients whose admission year is less than 2124 and drug route is iv bolus?", "key": "46957458df45cc9fe61f46144e6f75a9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3], "cond": [[0, 22, 2, 2173], [3, 6, 0, "BUCCAL"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2173", "and", "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", "demographic.\"admityear\"", "<", "\"2173\"", "and", "prescriptions.\"route\"", "=", "\"buccal\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2173\" AND PRESCRIPTIONS.\"ROUTE\" = \"BUCCAL\"", "question_refine": "provide the number of patients whose admission year is less than 2173 and drug route is buccal?", "key": "46ef6f05747036e178f2db011ae4a6a0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2125], [4, 2, 0, 50970]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2125", "and", "item", "i", "d", "is", "50970", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2125\"", "and", "lab.\"itemid\"", "=", "\"50970\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2125\" AND LAB.\"ITEMID\" = \"50970\"", "question_refine": "give me the number of patients whose admission year is less than 2125 and item id is 50970?", "key": "a8a3e69b2bccb49ee4213577e46208d4"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2165], [4, 2, 0, 50990]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2165", "and", "item", "i", "d", "is", "50990", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2165\"", "and", "lab.\"itemid\"", "=", "\"50990\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2165\" AND LAB.\"ITEMID\" = \"50990\"", "question_refine": "give me the number of patients whose admission year is less than 2165 and item id is 50990?", "key": "d8c8f2d50d2da7bbfa176aea047e235b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2180], [4, 2, 0, 50927]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2180", "and", "item", "i", "d", "is", "50927", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2180\"", "and", "lab.\"itemid\"", "=", "\"50927\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2180\" AND LAB.\"ITEMID\" = \"50927\"", "question_refine": "give me the number of patients whose admission year is less than 2180 and item id is 50927?", "key": "1d928ab8e19ae7166f23c9286cd54e91"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2138], [4, 2, 0, 50817]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2138", "and", "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", "demographic.\"admityear\"", "<", "\"2138\"", "and", "lab.\"itemid\"", "=", "\"50817\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2138\" AND LAB.\"ITEMID\" = \"50817\"", "question_refine": "count the number of patients whose admission year is less than 2138 and item id is 50817?", "key": "147cc490a50cb56f2745baf4efcabb6a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2178], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2178", "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.\"admityear\"", "<", "\"2178\"", "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.\"ADMITYEAR\" < \"2178\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "count the number of patients whose admission year is less than 2178 and lab test abnormal status is abnormal?", "key": "97541fb2b4a6ee460241623f042e78ea"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2146], [4, 6, 0, "Immunoglobulin A"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2146", "and", "lab", "test", "name", "is", "immunoglobulin", "a", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"admityear\"", "<", "\"2146\"", "and", "lab.\"label\"", "=", "\"immunoglobulin", "a\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"ADMITYEAR\" < \"2146\" AND LAB.\"LABEL\" = \"Immunoglobulin A\"", "question_refine": "give me the number of patients whose admission year is less than 2146 and lab test name is immunoglobulin a?", "key": "822d525ceffa4dfa10268ef303e3c328"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2184], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2184", "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.\"admityear\"", "<", "\"2184\"", "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.\"ADMITYEAR\" < \"2184\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "provide the number of patients whose admission year is less than 2184 and lab test fluid is joint fluid?", "key": "93a3cbf76971e7fa1195994449f2388d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2110], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2110", "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.\"admityear\"", "<", "\"2110\"", "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.\"ADMITYEAR\" < \"2110\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "give me the number of patients whose admission year is less than 2110 and lab test fluid is joint fluid?", "key": "e023e89d81b49cd3689fb110a90ed538"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2111], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2111", "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.\"admityear\"", "<", "\"2111\"", "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.\"ADMITYEAR\" < \"2111\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "what is the number of patients whose admission year is less than 2111 and lab test fluid is ascites?", "key": "c8862894e4023ffed105a24b14ab13d5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2151], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2151", "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.\"admityear\"", "<", "\"2151\"", "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.\"ADMITYEAR\" < \"2151\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "provide the number of patients whose admission year is less than 2151 and lab test fluid is urine?", "key": "06a0fa04c35db6ad945323f3d3364a2d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[0, 22, 2, 2151], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "admission", "year", "is", "less", "than", "2151", "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\"", "<", "\"2151\"", "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\" < \"2151\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "what is the number of patients whose admission year is less than 2151 and lab test category is chemistry?", "key": "b4ed8bc1c21e1a16c0c48ccb7bb553e8"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "V4962"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "v4962", "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.\"icd9_code\"", "=", "\"v4962\"", "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.\"ICD9_CODE\" = \"V4962\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is v4962 and drug type is main?", "key": "c250b32e178cadec365e2bd8c13ae7bc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "V433"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "v433", "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.\"icd9_code\"", "=", "\"v433\"", "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.\"ICD9_CODE\" = \"V433\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is v433 and drug type is main?", "key": "8140727ca0b4e8d1c89a1a5d0bfd774f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "28860"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "28860", "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\"", "=", "\"28860\"", "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\" = \"28860\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 28860 and drug type is base?", "key": "7399c196db75dfc2b59aa52fd6d4d56b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "9600"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "9600", "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.\"icd9_code\"", "=", "\"9600\"", "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.\"ICD9_CODE\" = \"9600\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is 9600 and drug type is additive?", "key": "4f18d436657d861047bffc9c97df4f2c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "5180"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "icd9", "code", "is", "5180", "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.\"icd9_code\"", "=", "\"5180\"", "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.\"ICD9_CODE\" = \"5180\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose diagnoses icd9 code is 5180 and drug type is main?", "key": "b3ccfa540e02ed9393781fe9779eeaf5"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "78791"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "78791", "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.\"icd9_code\"", "=", "\"78791\"", "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.\"ICD9_CODE\" = \"78791\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 78791 and drug type is additive?", "key": "2c76d6deaa30455efef598d41f1f05a3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "59080"], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "icd9", "code", "is", "59080", "and", "drug", "route", "is", "neb", "?"], "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\"", "=", "\"59080\"", "and", "prescriptions.\"route\"", "=", "\"neb\""], "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\" = \"59080\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "how many patients whose diagnoses icd9 code is 59080 and drug route is neb?", "key": "e51e38fc321b0879a92ec68eabd303b9"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "1173"], [3, 6, 0, "IH"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "1173", "and", "drug", "route", "is", "ih", "?"], "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\"", "=", "\"1173\"", "and", "prescriptions.\"route\"", "=", "\"ih\""], "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\" = \"1173\" AND PRESCRIPTIONS.\"ROUTE\" = \"IH\"", "question_refine": "what is the number of patients whose diagnoses icd9 code is 1173 and drug route is ih?", "key": "459311f3361d363927d81ab80fb13336"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "78559"], [3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "78559", "and", "drug", "route", "is", "ivpca", "?"], "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\"", "=", "\"78559\"", "and", "prescriptions.\"route\"", "=", "\"ivpca\""], "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\" = \"78559\" AND PRESCRIPTIONS.\"ROUTE\" = \"IVPCA\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 78559 and drug route is ivpca?", "key": "3a6153d3229832c18a5162e28ac4549a"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "56212"], [3, 6, 0, "ED"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "icd9", "code", "is", "56212", "and", "drug", "route", "is", "ed", "?"], "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\"", "=", "\"56212\"", "and", "prescriptions.\"route\"", "=", "\"ed\""], "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\" = \"56212\" AND PRESCRIPTIONS.\"ROUTE\" = \"ED\"", "question_refine": "how many patients whose diagnoses icd9 code is 56212 and drug route is ed?", "key": "02fa765e4b856c16191758316bd6d2e3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "E9429"], [3, 6, 0, "NU"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "e9429", "and", "drug", "route", "is", "nu", "?"], "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\"", "=", "\"e9429\"", "and", "prescriptions.\"route\"", "=", "\"nu\""], "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\" = \"E9429\" AND PRESCRIPTIONS.\"ROUTE\" = \"NU\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is e9429 and drug route is nu?", "key": "46c4151b52d10615988517fb70a839ab"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 2, 0, "25061"], [3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "25061", "and", "drug", "route", "is", "ivpca", "?"], "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\"", "=", "\"25061\"", "and", "prescriptions.\"route\"", "=", "\"ivpca\""], "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\" = \"25061\" AND PRESCRIPTIONS.\"ROUTE\" = \"IVPCA\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 25061 and drug route is ivpca?", "key": "39eb339e284a2fac548691117d2654e1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "48249"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "48249", "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\"", "=", "\"48249\"", "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\" = \"48249\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 48249 and lab test abnormal status is delta?", "key": "9b4eecf4c10d7fb67d36d7561b723b04"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "36202"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "36202", "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.\"icd9_code\"", "=", "\"36202\"", "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.\"ICD9_CODE\" = \"36202\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is 36202 and lab test abnormal status is abnormal?", "key": "7d70b50e919bd9af56c2082714c84654"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "29281"], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "29281", "and", "lab", "test", "fluid", "is", "blood", "?"], "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\"", "=", "\"29281\"", "and", "lab.\"fluid\"", "=", "\"blood\""], "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\" = \"29281\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 29281 and lab test fluid is blood?", "key": "af1596d5bd61f6a24473171af5eec2eb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "3310"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "3310", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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\"", "=", "\"3310\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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\" = \"3310\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 3310 and lab test fluid is pleural?", "key": "e811bb00e276a76754b20ea118a699ee"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "1173"], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "1173", "and", "lab", "test", "fluid", "is", "urine", "?"], "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\"", "=", "\"1173\"", "and", "lab.\"fluid\"", "=", "\"urine\""], "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\" = \"1173\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "what is the number of patients whose diagnoses icd9 code is 1173 and lab test fluid is urine?", "key": "e96f8abbf2000dfd229d296ad404e6ff"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "42831"], [4, 7, 0, "Other Body Fluid"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "42831", "and", "lab", "test", "fluid", "is", "other", "body", "fluid", "?"], "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\"", "=", "\"42831\"", "and", "lab.\"fluid\"", "=", "\"other", "body", "fluid\""], "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\" = \"42831\" AND LAB.\"FLUID\" = \"Other Body Fluid\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 42831 and lab test fluid is other body fluid?", "key": "901774d8681bc18531207235b43cfbe1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "V667"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "v667", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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\"", "=", "\"v667\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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\" = \"V667\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "count the number of patients whose diagnoses icd9 code is v667 and lab test fluid is cerebrospinal fluid (csf)?", "key": "fffc515eff2ef9e8510ba72b12502fc0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "74602"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "icd9", "code", "is", "74602", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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\"", "=", "\"74602\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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\" = \"74602\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "how many patients whose diagnoses icd9 code is 74602 and lab test fluid is cerebrospinal fluid (csf)?", "key": "5643660367b4e1b5fd05a198b5a164d0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "42613"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "42613", "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.\"icd9_code\"", "=", "\"42613\"", "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.\"ICD9_CODE\" = \"42613\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 42613 and lab test category is hematology?", "key": "04611ecff04eebf273968314ac625e6d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "53081"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "53081", "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.\"icd9_code\"", "=", "\"53081\"", "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.\"ICD9_CODE\" = \"53081\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "count the number of patients whose diagnoses icd9 code is 53081 and lab test category is hematology?", "key": "d0e55d63dbac1018360a5c7a149e37d2"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "6824"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "6824", "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\"", "=", "\"6824\"", "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\" = \"6824\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "provide the number of patients whose diagnoses icd9 code is 6824 and lab test category is chemistry?", "key": "179281ded41e9811dd596308005bc3a1"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 2, 0, "431"], [4, 8, 0, "Chemistry"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "icd9", "code", "is", "431", "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\"", "=", "\"431\"", "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\" = \"431\" AND LAB.\"CATEGORY\" = \"Chemistry\"", "question_refine": "give me the number of patients whose diagnoses icd9 code is 431 and lab test category is chemistry?", "key": "fe8c62876a5017fdd841c1e7e4a247a0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Perforation of intestine"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "perforation", "of", "intestine", "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\"", "=", "\"perforation", "of", "intestine\"", "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\" = \"Perforation of intestine\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "count the number of patients whose diagnoses short title is perforation of intestine and drug type is main?", "key": "28ef0bad5bee269b4798e0eec0459f96"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "DMI neuro nt st uncntrld"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "dmi", "neuro", "nt", "st", "uncntrld", "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\"", "=", "\"dmi", "neuro", "nt", "st", "uncntrld\"", "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\" = \"DMI neuro nt st uncntrld\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "give me the number of patients whose diagnoses short title is dmi neuro nt st uncntrld and drug type is main?", "key": "e4caf33a6c6941523646e4c1ea8ba885"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Skin disorders NEC"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "skin", "disorders", "nec", "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.\"short_title\"", "=", "\"skin", "disorders", "nec\"", "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.\"SHORT_TITLE\" = \"Skin disorders NEC\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "provide the number of patients whose diagnoses short title is skin disorders nec and drug type is additive?", "key": "383dc2ae523ce41f4ef0f2e1bfc5ee8e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Neutropenia NOS"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "neutropenia", "nos", "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\"", "=", "\"neutropenia", "nos\"", "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\" = \"Neutropenia NOS\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "count the number of patients whose diagnoses short title is neutropenia nos and drug type is main?", "key": "f55979a6b32893288cf688f7d63fa858"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Rec depr psych-psychotic"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "rec", "depr", "psych", "-", "psychotic", "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\"", "=", "\"rec", "depr", "psych-psychotic\"", "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\" = \"Rec depr psych-psychotic\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose diagnoses short title is rec depr psych-psychotic and drug type is base?", "key": "02b87ade0b4a32b59bb040c99ecfbf45"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Acute pancreatitis"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "acute", "pancreatitis", "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\"", "=", "\"acute", "pancreatitis\"", "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\" = \"Acute pancreatitis\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "count the number of patients whose diagnoses short title is acute pancreatitis and drug type is main?", "key": "85ce463d0d777e5816f6acc2cb653b1b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Mal neo descend colon"], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "mal", "neo", "descend", "colon", "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\"", "=", "\"mal", "neo", "descend", "colon\"", "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\" = \"Mal neo descend colon\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose diagnoses short title is mal neo descend colon and drug type is main?", "key": "34dd2e9d6e1d9dbdc99df23da843467e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Acidosis"], [3, 6, 0, "OU"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "acidosis", "and", "drug", "route", "is", "ou", "?"], "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\"", "=", "\"acidosis\"", "and", "prescriptions.\"route\"", "=", "\"ou\""], "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\" = \"Acidosis\" AND PRESCRIPTIONS.\"ROUTE\" = \"OU\"", "question_refine": "what is the number of patients whose diagnoses short title is acidosis and drug route is ou?", "key": "791be86773e48bb73f9d2211b9c2af36"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Long-term use of aspirin"], [3, 6, 0, "IV BOLUS"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "long", "-", "term", "use", "of", "aspirin", "and", "drug", "route", "is", "iv", "bolus", "?"], "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\"", "=", "\"long-term", "use", "of", "aspirin\"", "and", "prescriptions.\"route\"", "=", "\"iv", "bolus\""], "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\" = \"Long-term use of aspirin\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV BOLUS\"", "question_refine": "provide the number of patients whose diagnoses short title is long-term use of aspirin and drug route is iv bolus?", "key": "3bf967f624be8561a7ac7c2d3d9da42d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Regional enteritis NOS"], [3, 6, 0, "LEFT EYE"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "regional", "enteritis", "nos", "and", "drug", "route", "is", "left", "eye", "?"], "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\"", "=", "\"regional", "enteritis", "nos\"", "and", "prescriptions.\"route\"", "=", "\"left", "eye\""], "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\" = \"Regional enteritis NOS\" AND PRESCRIPTIONS.\"ROUTE\" = \"LEFT EYE\"", "question_refine": "give me the number of patients whose diagnoses short title is regional enteritis nos and drug route is left eye?", "key": "d51956c69958fc186a9fa32ddbbb99dd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Dvrtclo colon w hmrhg"], [3, 6, 0, "IV BOLUS"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "dvrtclo", "colon", "w", "hmrhg", "and", "drug", "route", "is", "iv", "bolus", "?"], "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\"", "=", "\"dvrtclo", "colon", "w", "hmrhg\"", "and", "prescriptions.\"route\"", "=", "\"iv", "bolus\""], "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\" = \"Dvrtclo colon w hmrhg\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV BOLUS\"", "question_refine": "how many patients whose diagnoses short title is dvrtclo colon w hmrhg and drug route is iv bolus?", "key": "d6d7734a0442f8336e56533393be8546"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Pneumonia, organism NOS"], [3, 6, 0, "IH"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "pneumonia", ",", "organism", "nos", "and", "drug", "route", "is", "ih", "?"], "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\"", "=", "\"pneumonia", "organism", "nos\"", "and", "prescriptions.\"route\"", "=", "\"ih\""], "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\" = \"Pneumonia, organism NOS\" AND PRESCRIPTIONS.\"ROUTE\" = \"IH\"", "question_refine": "how many patients whose diagnoses short title is pneumonia, organism nos and drug route is ih?", "key": "5a8ca5fee7a5b7c9e90477affc767ad3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Mv collision NOS-driver"], [3, 6, 0, "ID"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "mv", "collision", "nos", "-", "driver", "and", "drug", "route", "is", "i", "d", "?"], "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\"", "=", "\"mv", "collision", "nos-driver\"", "and", "prescriptions.\"route\"", "=", "\"id\""], "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\" = \"Mv collision NOS-driver\" AND PRESCRIPTIONS.\"ROUTE\" = \"ID\"", "question_refine": "what is the number of patients whose diagnoses short title is mv collision nos-driver and drug route is id?", "key": "79d0a95627e3c6cf55c2cd3cf8f6e9dc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 3, 0, "Hx of colonic malignancy"], [3, 6, 0, "IV"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "hx", "of", "colonic", "malignancy", "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\"", "=", "\"hx", "of", "colonic", "malignancy\"", "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\" = \"Hx of colonic malignancy\" AND PRESCRIPTIONS.\"ROUTE\" = \"IV\"", "question_refine": "count the number of patients whose diagnoses short title is hx of colonic malignancy and drug route is iv?", "key": "6f5475ea7a224ba97450d985069c588b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Pressure ulcer, buttock"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "pressure", "ulcer", ",", "buttock", "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.\"short_title\"", "=", "\"pressure", "ulcer", "buttock\"", "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.\"SHORT_TITLE\" = \"Pressure ulcer, buttock\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "give me the number of patients whose diagnoses short title is pressure ulcer, buttock and lab test abnormal status is delta?", "key": "36026de87a6e1632976c19b7fae59bcc"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Ocl crtd art wo infrct"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "ocl", "crtd", "art", "wo", "infrct", "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.\"short_title\"", "=", "\"ocl", "crtd", "art", "wo", "infrct\"", "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.\"SHORT_TITLE\" = \"Ocl crtd art wo infrct\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "give me the number of patients whose diagnoses short title is ocl crtd art wo infrct and lab test abnormal status is abnormal?", "key": "339f7134ce0cec6d5c09c2d77683a114"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Benign neo pituitary"], [4, 7, 0, "Blood"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "benign", "neo", "pituitary", "and", "lab", "test", "fluid", "is", "blood", "?"], "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\"", "=", "\"benign", "neo", "pituitary\"", "and", "lab.\"fluid\"", "=", "\"blood\""], "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\" = \"Benign neo pituitary\" AND LAB.\"FLUID\" = \"Blood\"", "question_refine": "how many patients whose diagnoses short title is benign neo pituitary and lab test fluid is blood?", "key": "d68cb34157ef7272f99d9c6e8daadf6f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Ac/chr syst/dia hrt fail"], [4, 7, 0, "Joint Fluid"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "ac", "/", "chr", "syst", "/", "dia", "hrt", "fail", "and", "lab", "test", "fluid", "is", "joint", "fluid", "?"], "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\"", "=", "\"ac/chr", "syst/dia", "hrt", "fail\"", "and", "lab.\"fluid\"", "=", "\"joint", "fluid\""], "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\" = \"Ac/chr syst/dia hrt fail\" AND LAB.\"FLUID\" = \"Joint Fluid\"", "question_refine": "what is the number of patients whose diagnoses short title is ac/chr syst/dia hrt fail and lab test fluid is joint fluid?", "key": "228c60031b45bb0e43d1202fc78f9acd"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Noninf gastroenterit NEC"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "noninf", "gastroenterit", "nec", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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\"", "=", "\"noninf", "gastroenterit", "nec\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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\" = \"Noninf gastroenterit NEC\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "provide the number of patients whose diagnoses short title is noninf gastroenterit nec and lab test fluid is pleural?", "key": "0c988900209bb7120996fcfe595d69e3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Adv eff benzodiaz tranq"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "adv", "eff", "benzodiaz", "tranq", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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\"", "=", "\"adv", "eff", "benzodiaz", "tranq\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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\" = \"Adv eff benzodiaz tranq\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "how many patients whose diagnoses short title is adv eff benzodiaz tranq and lab test fluid is pleural?", "key": "112dde4656dc9b22e05bde4ca45520d3"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Convulsions NEC"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "convulsions", "nec", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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\"", "=", "\"convulsions", "nec\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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\" = \"Convulsions NEC\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "provide the number of patients whose diagnoses short title is convulsions nec and lab test fluid is cerebrospinal fluid (csf)?", "key": "4b35399627cb77abdfd967869d101dae"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Do not resusctate status"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "short", "title", "is", "do", "not", "resusctate", "status", "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.\"short_title\"", "=", "\"do", "not", "resusctate", "status\"", "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.\"SHORT_TITLE\" = \"Do not resusctate status\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "what is the number of patients whose diagnoses short title is do not resusctate status and lab test category is hematology?", "key": "56f2e9acfdba3809c228415b8324b741"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 3, 0, "Disrup-external op wound"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "short", "title", "is", "disrup", "-", "external", "op", "wound", "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.\"short_title\"", "=", "\"disrup-external", "op", "wound\"", "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.\"SHORT_TITLE\" = \"Disrup-external op wound\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "how many patients whose diagnoses short title is disrup-external op wound and lab test category is hematology?", "key": "d23431bc201636b4ef96d85e99a8b11d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Tietze's disease"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "tietze", "'s", "disease", "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.\"long_title\"", "=", "\"tietze's", "disease\"", "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.\"LONG_TITLE\" = \"Tietze's disease\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose diagnoses long title is tietze's disease and drug type is base?", "key": "8cf25691d87ee3925fe980837602e400"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Secondary neuroendocrine tumor of bone"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "secondary", "neuroendocrine", "tumor", "of", "bone", "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.\"long_title\"", "=", "\"secondary", "neuroendocrine", "tumor", "of", "bone\"", "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.\"LONG_TITLE\" = \"Secondary neuroendocrine tumor of bone\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "provide the number of patients whose diagnoses long title is secondary neuroendocrine tumor of bone and drug type is base?", "key": "0942a6c9fb0b3b2d0c62439318419621"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Insomnia, unspecified"], [3, 3, 0, "ADDITIVE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "insomnia", ",", "unspecified", "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\"", "=", "\"insomnia", "unspecified\"", "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\" = \"Insomnia, unspecified\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"ADDITIVE\"", "question_refine": "provide the number of patients whose diagnoses long title is insomnia, unspecified and drug type is additive?", "key": "40f6151f7981dd5a7d625ebd5c2e7a75"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Acute kidney failure with lesion of tubular necrosis"], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "acute", "kidney", "failure", "with", "lesion", "of", "tubular", "necrosis", "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.\"long_title\"", "=", "\"acute", "kidney", "failure", "with", "lesion", "of", "tubular", "necrosis\"", "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.\"LONG_TITLE\" = \"Acute kidney failure with lesion of tubular necrosis\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "count the number of patients whose diagnoses long title is acute kidney failure with lesion of tubular necrosis and drug type is base?", "key": "31da8f844b164cd0fef0620e30768f3d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Diabetes mellitus without mention of complication, type II or unspecified type, not stated as uncontrolled"], [3, 6, 0, "ORAL"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "diabetes", "mellitus", "without", "mention", "of", "complication", ",", "type", "ii", "or", "unspecified", "type", ",", "not", "stated", "as", "uncontrolled", "and", "drug", "route", "is", "oral", "?"], "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\"", "=", "\"diabetes", "mellitus", "without", "mention", "of", "complication", "type", "ii", "or", "unspecified", "type", "not", "stated", "as", "uncontrolled\"", "and", "prescriptions.\"route\"", "=", "\"oral\""], "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\" = \"Diabetes mellitus without mention of complication, type II or unspecified type, not stated as uncontrolled\" AND PRESCRIPTIONS.\"ROUTE\" = \"ORAL\"", "question_refine": "how many patients whose diagnoses long title is diabetes mellitus without mention of complication, type ii or unspecified type, not stated as uncontrolled and drug route is oral?", "key": "07c1134129e6325a61483023154bec08"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Atherosclerosis of native arteries of the extremities with intermittent claudication"], [3, 6, 0, "REPLACE"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "atherosclerosis", "of", "native", "arteries", "of", "the", "extremities", "with", "intermittent", "claudication", "and", "drug", "route", "is", "replace", "?"], "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\"", "=", "\"atherosclerosis", "of", "native", "arteries", "of", "the", "extremities", "with", "intermittent", "claudication\"", "and", "prescriptions.\"route\"", "=", "\"replace\""], "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\" = \"Atherosclerosis of native arteries of the extremities with intermittent claudication\" AND PRESCRIPTIONS.\"ROUTE\" = \"REPLACE\"", "question_refine": "provide the number of patients whose diagnoses long title is atherosclerosis of native arteries of the extremities with intermittent claudication and drug route is replace?", "key": "3ba4dcd99eadbd6f0ce3c54a8552a3ed"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Opioid type dependence, unspecified"], [3, 6, 0, "IVPCA"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "opioid", "type", "dependence", ",", "unspecified", "and", "drug", "route", "is", "ivpca", "?"], "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\"", "=", "\"ivpca\""], "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\" = \"IVPCA\"", "question_refine": "how many patients whose diagnoses long title is opioid type dependence, unspecified and drug route is ivpca?", "key": "b1c6d36fede7197551db45a19d7cfb3f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 3], "cond": [[1, 4, 0, "Benign neoplasm of spinal meninges"], [3, 6, 0, "SL"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "benign", "neoplasm", "of", "spinal", "meninges", "and", "drug", "route", "is", "sl", "?"], "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\"", "=", "\"benign", "neoplasm", "of", "spinal", "meninges\"", "and", "prescriptions.\"route\"", "=", "\"sl\""], "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\" = \"Benign neoplasm of spinal meninges\" AND PRESCRIPTIONS.\"ROUTE\" = \"SL\"", "question_refine": "count the number of patients whose diagnoses long title is benign neoplasm of spinal meninges and drug route is sl?", "key": "57e705ccfd06923276352a06b3b97ee0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Migraine, unspecified, without mention of intractable migraine without mention of status migrainosus"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "migraine", ",", "unspecified", ",", "without", "mention", "of", "intractable", "migraine", "without", "mention", "of", "status", "migrainosus", "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.\"long_title\"", "=", "\"migraine", "unspecified", "without", "mention", "of", "intractable", "migraine", "without", "mention", "of", "status", "migrainosus\"", "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.\"LONG_TITLE\" = \"Migraine, unspecified, without mention of intractable migraine without mention of status migrainosus\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "what is the number of patients whose diagnoses long title is migraine, unspecified, without mention of intractable migraine without mention of status migrainosus and lab test abnormal status is delta?", "key": "0f2e8e2f9c969d49a43103b2b8009775"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Rheumatic heart failure (congestive)"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "diagnoses", "long", "title", "is", "rheumatic", "heart", "failure", "(", "congestive", ")", "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.\"long_title\"", "=", "\"rheumatic", "heart", "failure", "(congestive)\"", "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.\"LONG_TITLE\" = \"Rheumatic heart failure (congestive)\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "how many patients whose diagnoses long title is rheumatic heart failure (congestive) and lab test abnormal status is delta?", "key": "82430594bf8a41ab69b2756f10bc9771"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Encephalopathy, unspecified"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "encephalopathy", ",", "unspecified", "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\"", "=", "\"encephalopathy", "unspecified\"", "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\" = \"Encephalopathy, unspecified\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses long title is encephalopathy, unspecified and lab test abnormal status is abnormal?", "key": "93ff7129057c8298b15babd65718f719"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Embolism and thrombosis of iliac artery"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "embolism", "and", "thrombosis", "of", "iliac", "artery", "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.\"long_title\"", "=", "\"embolism", "and", "thrombosis", "of", "iliac", "artery\"", "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.\"LONG_TITLE\" = \"Embolism and thrombosis of iliac artery\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "count the number of patients whose diagnoses long title is embolism and thrombosis of iliac artery and lab test abnormal status is delta?", "key": "6cee6a121a7c2ae6d64cb583801f92a6"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Personal history of venous thrombosis and embolism"], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "personal", "history", "of", "venous", "thrombosis", "and", "embolism", "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.\"long_title\"", "=", "\"personal", "history", "of", "venous", "thrombosis", "and", "embolism\"", "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.\"LONG_TITLE\" = \"Personal history of venous thrombosis and embolism\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "count the number of patients whose diagnoses long title is personal history of venous thrombosis and embolism and lab test abnormal status is delta?", "key": "58fb10c8b562058c35e6662f72744f45"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Personal history of malignant neoplasm of bladder"], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "personal", "history", "of", "malignant", "neoplasm", "of", "bladder", "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", "malignant", "neoplasm", "of", "bladder\"", "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 malignant neoplasm of bladder\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "provide the number of patients whose diagnoses long title is personal history of malignant neoplasm of bladder and lab test abnormal status is abnormal?", "key": "0a0cc1bbc0b79fb4a74261a2cb2f485c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 1, 4], "cond": [[1, 4, 0, "Aftercare for healing traumatic fracture of lower leg"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "diagnoses", "long", "title", "is", "aftercare", "for", "healing", "traumatic", "fracture", "of", "lower", "leg", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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\"", "=", "\"aftercare", "for", "healing", "traumatic", "fracture", "of", "lower", "leg\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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\" = \"Aftercare for healing traumatic fracture of lower leg\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "provide the number of patients whose diagnoses long title is aftercare for healing traumatic fracture of lower leg and lab test fluid is pleural?", "key": "60573a087558e2adb1dc107d96846882"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 8960], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "icd9", "code", "is", "8960", "and", "drug", "type", "is", "main", "?"], "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\"", "=", "\"8960\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "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\" = \"8960\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "how many patients whose procedure icd9 code is 8960 and drug type is main?", "key": "4ba773eb5b8287f9fd70ca651bdadcc7"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 5771], [3, 3, 0, "MAIN"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "5771", "and", "drug", "type", "is", "main", "?"], "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\"", "=", "\"5771\"", "and", "prescriptions.\"drug_type\"", "=", "\"main\""], "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\" = \"5771\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"MAIN\"", "question_refine": "provide the number of patients whose procedure icd9 code is 5771 and drug type is main?", "key": "e0e65912713bd6a1f03b9de3f4a870eb"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 3799], [3, 3, 0, "BASE"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "procedure", "icd9", "code", "is", "3799", "and", "drug", "type", "is", "base", "?"], "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\"", "=", "\"3799\"", "and", "prescriptions.\"drug_type\"", "=", "\"base\""], "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\" = \"3799\" AND PRESCRIPTIONS.\"DRUG_TYPE\" = \"BASE\"", "question_refine": "what is the number of patients whose procedure icd9 code is 3799 and drug type is base?", "key": "7d3a45668bf1b2913c1ba6e177b0368e"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 3533], [3, 6, 0, "NEB"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "icd9", "code", "is", "3533", "and", "drug", "route", "is", "neb", "?"], "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\"", "=", "\"3533\"", "and", "prescriptions.\"route\"", "=", "\"neb\""], "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\" = \"3533\" AND PRESCRIPTIONS.\"ROUTE\" = \"NEB\"", "question_refine": "how many patients whose procedure icd9 code is 3533 and drug route is neb?", "key": "77be3d70a02c76e2bebbef9eb5e2ea02"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 3], "cond": [[2, 2, 0, 8105], [3, 6, 0, "REPLACE"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "procedure", "icd9", "code", "is", "8105", "and", "drug", "route", "is", "replace", "?"], "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\"", "=", "\"8105\"", "and", "prescriptions.\"route\"", "=", "\"replace\""], "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\" = \"8105\" AND PRESCRIPTIONS.\"ROUTE\" = \"REPLACE\"", "question_refine": "how many patients whose procedure icd9 code is 8105 and drug route is replace?", "key": "da99d0449176abe1af9bea00acd4c93f"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 4], "cond": [[2, 4, 0, "Closed biopsy of skin and subcutaneous tissue"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "closed", "biopsy", "of", "skin", "and", "subcutaneous", "tissue", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "procedures.\"long_title\"", "=", "\"closed", "biopsy", "of", "skin", "and", "subcutaneous", "tissue\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Closed biopsy of skin and subcutaneous tissue\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "what is the number of patients whose procedure long title is closed biopsy of skin and subcutaneous tissue and lab test fluid is cerebrospinal fluid (csf)?", "key": "3d90ca536d2df8ee828215ea6babab30"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 4], "cond": [[2, 4, 0, "Creation of conduit between left ventricle and aorta"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "creation", "of", "conduit", "between", "left", "ventricle", "and", "aorta", "and", "lab", "test", "fluid", "is", "pleural", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "procedures.\"long_title\"", "=", "\"creation", "of", "conduit", "between", "left", "ventricle", "and", "aorta\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Creation of conduit between left ventricle and aorta\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "provide the number of patients whose procedure long title is creation of conduit between left ventricle and aorta and lab test fluid is pleural?", "key": "80de77735536a9b08f1c40e9b11d0142"}
{"format": {"agg_col": [[0, 0]], "table": [0, 2, 4], "cond": [[2, 4, 0, "Intraoperative cardiac pacemaker"], [4, 8, 0, "Hematology"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "procedure", "long", "title", "is", "intraoperative", "cardiac", "pacemaker", "and", "lab", "test", "category", "is", "hematology", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "procedures.\"long_title\"", "=", "\"intraoperative", "cardiac", "pacemaker\"", "and", "lab.\"category\"", "=", "\"hematology\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE PROCEDURES.\"LONG_TITLE\" = \"Intraoperative cardiac pacemaker\" AND LAB.\"CATEGORY\" = \"Hematology\"", "question_refine": "provide the number of patients whose procedure long title is intraoperative cardiac pacemaker and lab test category is hematology?", "key": "003af473649d8b45f018a96b23553515"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "TERAZ5"], [4, 7, 0, "Urine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "teraz5", "and", "lab", "test", "fluid", "is", "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.\"formulary_drug_cd\"", "=", "\"teraz5\"", "and", "lab.\"fluid\"", "=", "\"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.\"FORMULARY_DRUG_CD\" = \"TERAZ5\" AND LAB.\"FLUID\" = \"Urine\"", "question_refine": "how many patients whose drug code is teraz5 and lab test fluid is urine?", "key": "ffcd18a5c74a898e2380d1ed0397ab98"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "RIS1L"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "drug", "code", "is", "ris1l", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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.\"formulary_drug_cd\"", "=", "\"ris1l\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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.\"FORMULARY_DRUG_CD\" = \"RIS1L\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "what is the number of patients whose drug code is ris1l and lab test fluid is pleural?", "key": "0309c95431907c871ade520a4cc64ed0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "METH10SY"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "drug", "code", "is", "meth10sy", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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.\"formulary_drug_cd\"", "=", "\"meth10sy\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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.\"FORMULARY_DRUG_CD\" = \"METH10SY\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "what is the number of patients whose drug code is meth10sy and lab test fluid is cerebrospinal fluid (csf)?", "key": "a7b019a738ce8ed884df23087141fb96"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "WARF2"], [4, 7, 0, "Other Body Fluid"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "warf2", "and", "lab", "test", "fluid", "is", "other", "body", "fluid", "?"], "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.\"formulary_drug_cd\"", "=", "\"warf2\"", "and", "lab.\"fluid\"", "=", "\"other", "body", "fluid\""], "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.\"FORMULARY_DRUG_CD\" = \"WARF2\" AND LAB.\"FLUID\" = \"Other Body Fluid\"", "question_refine": "provide the number of patients whose drug code is warf2 and lab test fluid is other body fluid?", "key": "4556aab4493c76026ea798722a6bc42c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "WARF1"], [4, 7, 0, "Pleural"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "drug", "code", "is", "warf1", "and", "lab", "test", "fluid", "is", "pleural", "?"], "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.\"formulary_drug_cd\"", "=", "\"warf1\"", "and", "lab.\"fluid\"", "=", "\"pleural\""], "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.\"FORMULARY_DRUG_CD\" = \"WARF1\" AND LAB.\"FLUID\" = \"Pleural\"", "question_refine": "give me the number of patients whose drug code is warf1 and lab test fluid is pleural?", "key": "b3e5b67995558b9b9c0bf6c7638e043c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "LANS30ST"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "lans30st", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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.\"formulary_drug_cd\"", "=", "\"lans30st\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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.\"FORMULARY_DRUG_CD\" = \"LANS30ST\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "how many patients whose drug code is lans30st and lab test fluid is cerebrospinal fluid (csf)?", "key": "30c70683e1b35c9ca6e7f9cbebae1036"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "NEOLEVO5"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "drug", "code", "is", "neolevo5", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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.\"formulary_drug_cd\"", "=", "\"neolevo5\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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.\"FORMULARY_DRUG_CD\" = \"NEOLEVO5\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "count the number of patients whose drug code is neolevo5 and lab test fluid is cerebrospinal fluid (csf)?", "key": "9042acc16c5783c2894af1c5d4794597"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "LIDO2/5J"], [4, 7, 0, "Cerebrospinal Fluid (CSF)"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "lido2/5j", "and", "lab", "test", "fluid", "is", "cerebrospinal", "fluid", "(", "csf", ")", "?"], "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.\"formulary_drug_cd\"", "=", "\"lido2/5j\"", "and", "lab.\"fluid\"", "=", "\"cerebrospinal", "fluid", "(csf)\""], "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.\"FORMULARY_DRUG_CD\" = \"LIDO2/5J\" AND LAB.\"FLUID\" = \"Cerebrospinal Fluid (CSF)\"", "question_refine": "how many patients whose drug code is lido2/5j and lab test fluid is cerebrospinal fluid (csf)?", "key": "d450ae961aa14c9919685a6d2dbc3377"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "HEPAPREMIX"], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["provide", "the", "number", "of", "patients", "whose", "drug", "code", "is", "hepapremix", "and", "lab", "test", "fluid", "is", "ascites", "?"], "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.\"formulary_drug_cd\"", "=", "\"hepapremix\"", "and", "lab.\"fluid\"", "=", "\"ascites\""], "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.\"FORMULARY_DRUG_CD\" = \"HEPAPREMIX\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "provide the number of patients whose drug code is hepapremix and lab test fluid is ascites?", "key": "09d9174613b832d6f0d07b37e7417b2b"}
{"format": {"agg_col": [[0, 0]], "table": [0, 3, 4], "cond": [[3, 5, 0, "DAPT500I"], [4, 7, 0, "Ascites"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "drug", "code", "is", "dapt500i", "and", "lab", "test", "fluid", "is", "ascites", "?"], "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.\"formulary_drug_cd\"", "=", "\"dapt500i\"", "and", "lab.\"fluid\"", "=", "\"ascites\""], "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.\"FORMULARY_DRUG_CD\" = \"DAPT500I\" AND LAB.\"FLUID\" = \"Ascites\"", "question_refine": "how many patients whose drug code is dapt500i and lab test fluid is ascites?", "key": "ceabaef98a0c091f47d53afec16e82d0"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 51213], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "51213", "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", "lab.\"itemid\"", "=", "\"51213\"", "and", "lab.\"flag\"", "=", "\"delta\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"51213\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "what is the number of patients whose item id is 51213 and lab test abnormal status is delta?", "key": "6d1eaa3f8947eb643cc5ed12fb4be508"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50803], [4, 4, 0, "delta"]], "sel": 1}, "question_refine_tok": ["give", "me", "the", "number", "of", "patients", "whose", "item", "i", "d", "is", "50803", "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", "lab.\"itemid\"", "=", "\"50803\"", "and", "lab.\"flag\"", "=", "\"delta\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"ITEMID\" = \"50803\" AND LAB.\"FLAG\" = \"delta\"", "question_refine": "give me the number of patients whose item id is 50803 and lab test abnormal status is delta?", "key": "833dfa2f7df5a10b714580af71c03815"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 2, 0, 50804], [4, 4, 0, "abnormal"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "item", "i", "d", "is", "50804", "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\"", "=", "\"50804\"", "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\" = \"50804\" AND LAB.\"FLAG\" = \"abnormal\"", "question_refine": "how many patients whose item id is 50804 and lab test abnormal status is abnormal?", "key": "fd956c6060e9dd63d0db99e8c2a5528c"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "abnormal"], [4, 6, 0, "Triiodothyronine (T3)"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "lab", "test", "abnormal", "status", "is", "abnormal", "and", "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.\"flag\"", "=", "\"abnormal\"", "and", "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.\"FLAG\" = \"abnormal\" AND LAB.\"LABEL\" = \"Triiodothyronine (T3)\"", "question_refine": "count the number of patients whose lab test abnormal status is abnormal and lab test name is triiodothyronine (t3)?", "key": "b3d9210b6e57073e3d914f2b973fe0fa"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "abnormal"], [4, 6, 0, "Phenytoin"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "lab", "test", "abnormal", "status", "is", "abnormal", "and", "lab", "test", "name", "is", "phenytoin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"flag\"", "=", "\"abnormal\"", "and", "lab.\"label\"", "=", "\"phenytoin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLAG\" = \"abnormal\" AND LAB.\"LABEL\" = \"Phenytoin\"", "question_refine": "what is the number of patients whose lab test abnormal status is abnormal and lab test name is phenytoin?", "key": "4ff477ccdc11dd4c60bedc8ee2106316"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "abnormal"], [4, 6, 0, "Troponin I"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "lab", "test", "abnormal", "status", "is", "abnormal", "and", "lab", "test", "name", "is", "troponin", "i", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"flag\"", "=", "\"abnormal\"", "and", "lab.\"label\"", "=", "\"troponin", "i\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLAG\" = \"abnormal\" AND LAB.\"LABEL\" = \"Troponin I\"", "question_refine": "count the number of patients whose lab test abnormal status is abnormal and lab test name is troponin i?", "key": "5e21212c409942fec38438436f90375d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "abnormal"], [4, 6, 0, "Potassium, Urine"]], "sel": 1}, "question_refine_tok": ["how", "many", "patients", "whose", "lab", "test", "abnormal", "status", "is", "abnormal", "and", "lab", "test", "name", "is", "potassium", ",", "urine", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"flag\"", "=", "\"abnormal\"", "and", "lab.\"label\"", "=", "\"potassium", "urine\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLAG\" = \"abnormal\" AND LAB.\"LABEL\" = \"Potassium, Urine\"", "question_refine": "how many patients whose lab test abnormal status is abnormal and lab test name is potassium, urine?", "key": "68e9a8742cd050fa56107736ba3b6e2d"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "abnormal"], [4, 6, 0, "Gentamicin"]], "sel": 1}, "question_refine_tok": ["what", "is", "the", "number", "of", "patients", "whose", "lab", "test", "abnormal", "status", "is", "abnormal", "and", "lab", "test", "name", "is", "gentamicin", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"flag\"", "=", "\"abnormal\"", "and", "lab.\"label\"", "=", "\"gentamicin\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLAG\" = \"abnormal\" AND LAB.\"LABEL\" = \"Gentamicin\"", "question_refine": "what is the number of patients whose lab test abnormal status is abnormal and lab test name is gentamicin?", "key": "5794e2fc7f9f1fb9762d7f94c4006f89"}
{"format": {"agg_col": [[0, 0]], "table": [0, 4], "cond": [[4, 4, 0, "delta"], [4, 6, 0, "C-Reactive Protein"]], "sel": 1}, "question_refine_tok": ["count", "the", "number", "of", "patients", "whose", "lab", "test", "abnormal", "status", "is", "delta", "and", "lab", "test", "name", "is", "c", "-", "reactive", "protein", "?"], "sql_tok": ["select", "count", "(", "distinct", "demographic.\"subject_id\"", ")", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "lab.\"flag\"", "=", "\"delta\"", "and", "lab.\"label\"", "=", "\"c-reactive", "protein\""], "sql": "SELECT COUNT ( DISTINCT DEMOGRAPHIC.\"SUBJECT_ID\" ) FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE LAB.\"FLAG\" = \"delta\" AND LAB.\"LABEL\" = \"C-Reactive Protein\"", "question_refine": "count the number of patients whose lab test abnormal status is delta and lab test name is c-reactive protein?", "key": "b128fdcc6531026127aed0ba15b521bb"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is language of subject id 2560?", "key": "2c34bb2817b09c6083d6771fe2b279ee"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "days", "of", "hospital", "stay", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is days of hospital stay of subject id 2560?", "key": "33fdbe86f189f7beec72a31c1739d572"}
{"format": {"agg_col": [[2, 2]], "table": [2], "cond": [[2, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "from", "procedures", "where", "procedures.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\" FROM PROCEDURES WHERE PROCEDURES.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is procedure icd9 code of subject id 2560?", "key": "5855238b0d0f64c0f8c93600ec7b1401"}
{"format": {"agg_col": [[0, 3], [0, 8]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "religion", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is marital status and religion of subject id 2560?", "key": "61541b8ed7346a1ce9e4477e3390fe7b"}
{"format": {"agg_col": [[0, 4], [0, 11]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "insurance", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"insurance\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"INSURANCE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is age and insurance of subject id 2560?", "key": "1bf20c5f3deff96197f8891b74ec78a6"}
{"format": {"agg_col": [[0, 9], [0, 14]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "location", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and admission location of subject id 2560?", "key": "52d819c22300f2023f8e73b63793a79e"}
{"format": {"agg_col": [[0, 9], [0, 15]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "discharge", "location", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and discharge location of subject id 2560?", "key": "a175b2a40cbb96dac957efa26f32616e"}
{"format": {"agg_col": [[0, 9], [0, 20]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "admission", "time", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and admission time of subject id 2560?", "key": "b291dceeb04cf5075f057c9437bacfeb"}
{"format": {"agg_col": [[0, 9], [4, 2]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "item", "i", "d", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "lab.\"itemid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",LAB.\"ITEMID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission type and item id of subject id 2560?", "key": "df4a8d3c58930e54b3de6c4c809f1360"}
{"format": {"agg_col": [[0, 9], [4, 4]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "type", "and", "lab", "test", "abnormal", "status", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_type\"", "lab.\"flag\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_TYPE\",LAB.\"FLAG\" 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 abnormal status of subject id 2560?", "key": "4544005c5763578d01c1355b154daf4f"}
{"format": {"agg_col": [[0, 14], [0, 15]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "discharge", "location", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "demographic.\"discharge_location\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",DEMOGRAPHIC.\"DISCHARGE_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission location and discharge location of subject id 2560?", "key": "23aed6056b0cef65c044c4f697d68125"}
{"format": {"agg_col": [[0, 14], [2, 4]], "table": [0, 2], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "location", "and", "procedure", "long", "title", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admission_location\"", "procedures.\"long_title\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMISSION_LOCATION\",PROCEDURES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission location and procedure long title of subject id 2560?", "key": "a229f6dbbb2fddd91ed6d6577baa85fd"}
{"format": {"agg_col": [[0, 16], [0, 21]], "table": [0], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "discharge", "time", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is primary disease and discharge time of subject id 2560?", "key": "daa3bfe7cdc270244f8d75365230e0cd"}
{"format": {"agg_col": [[0, 16], [4, 2]], "table": [0, 4], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "primary", "disease", "and", "item", "i", "d", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"diagnosis\"", "lab.\"itemid\"", "from", "demographic", "inner", "join", "lab", "on", "demographic.hadm_id", "=", "lab.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"DIAGNOSIS\",LAB.\"ITEMID\" FROM DEMOGRAPHIC INNER JOIN LAB on DEMOGRAPHIC.HADM_ID = LAB.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is primary disease and item id of subject id 2560?", "key": "211a52ae1160bd1933f63bcb260368ae"}
{"format": {"agg_col": [[0, 20], [1, 4]], "table": [0, 1], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "diagnoses", "long", "title", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "diagnoses.\"long_title\"", "from", "demographic", "inner", "join", "diagnoses", "on", "demographic.hadm_id", "=", "diagnoses.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",DIAGNOSES.\"LONG_TITLE\" FROM DEMOGRAPHIC INNER JOIN DIAGNOSES on DEMOGRAPHIC.HADM_ID = DIAGNOSES.HADM_ID WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"2560\"", "question_refine": "what is admission time and diagnoses long title of subject id 2560?", "key": "354bbddc04df8ad181dacd354b65a46b"}
{"format": {"agg_col": [[0, 20], [2, 2]], "table": [0, 2], "cond": [[0, 0, 0, 2560]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "and", "procedure", "icd9", "code", "of", "subject", "i", "d", "2560", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"subject_id\"", "=", "\"2560\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\",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 time and procedure icd9 code of subject id 2560?", "key": "b270504417c3cc43a85069b2003504c3"}
{"format": {"agg_col": [[0, 12]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "ethnicity", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"ethnicity\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"ETHNICITY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is ethnicity of subject id 6983?", "key": "7ef3e82ad89166a904a377e47f6bc1c5"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is admission time of subject id 6983?", "key": "cda62e026bd5c2da8b7e310acef00b6e"}
{"format": {"agg_col": [[3, 4]], "table": [3], "cond": [[3, 0, 0, 6983]], "sel": 0}, "question_refine_tok": ["what", "is", "drug", "name", "of", "subject", "i", "d", "6983", "?"], "sql_tok": ["select", "prescriptions.\"drug\"", "from", "prescriptions", "where", "prescriptions.\"subject_id\"", "=", "\"6983\""], "sql": "SELECT PRESCRIPTIONS.\"DRUG\" FROM PRESCRIPTIONS WHERE PRESCRIPTIONS.\"SUBJECT_ID\" = \"6983\"", "question_refine": "what is drug name of subject id 6983?", "key": "40de803c6f2cfef7117d8aa03f2485fa"}
{"format": {"agg_col": [[0, 2]], "table": [0], "cond": [[0, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "subject", "name", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "demographic.\"name\"", "from", "demographic", "where", "demographic.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DEMOGRAPHIC.\"NAME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is subject name of subject id 3343?", "key": "55fc55851321ec4d3461847e8edee504"}
{"format": {"agg_col": [[1, 3]], "table": [1], "cond": [[1, 0, 0, 3343]], "sel": 0}, "question_refine_tok": ["what", "is", "diagnoses", "short", "title", "of", "subject", "i", "d", "3343", "?"], "sql_tok": ["select", "diagnoses.\"short_title\"", "from", "diagnoses", "where", "diagnoses.\"subject_id\"", "=", "\"3343\""], "sql": "SELECT DIAGNOSES.\"SHORT_TITLE\" FROM DIAGNOSES WHERE DIAGNOSES.\"SUBJECT_ID\" = \"3343\"", "question_refine": "what is diagnoses short title of subject id 3343?", "key": "45985dc92187d06cd887c833ab4bafe6"}
{"format": {"agg_col": [[3, 2]], "table": [0, 3], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "icu", "stay", "i", "d", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "prescriptions.\"icustay_id\"", "from", "demographic", "inner", "join", "prescriptions", "on", "demographic.hadm_id", "=", "prescriptions.hadm_id", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT PRESCRIPTIONS.\"ICUSTAY_ID\" FROM DEMOGRAPHIC INNER JOIN PRESCRIPTIONS on DEMOGRAPHIC.HADM_ID = PRESCRIPTIONS.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is icu stay id of subject name jerry deberry?", "key": "cc136157244f65a9e106fe7c0a16e42c"}
{"format": {"agg_col": [[0, 3], [0, 10]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "marital", "status", "and", "days", "of", "hospital", "stay", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"marital_status\"", "demographic.\"days_stay\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"MARITAL_STATUS\",DEMOGRAPHIC.\"DAYS_STAY\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is marital status and days of hospital stay of subject name jerry deberry?", "key": "b9232bb071f3387877c215a2193324ad"}
{"format": {"agg_col": [[0, 4], [0, 8]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "age", "and", "religion", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"age\"", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"AGE\",DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is age and religion of subject name jerry deberry?", "key": "3b43172f39ac442eea889bba9caef99b"}
{"format": {"agg_col": [[0, 5], [0, 14]], "table": [0], "cond": [[0, 2, 0, "Jerry Deberry"]], "sel": 0}, "question_refine_tok": ["what", "is", "date", "of", "birth", "and", "admission", "location", "of", "subject", "name", "jerry", "deberry", "?"], "sql_tok": ["select", "demographic.\"dob\"", "demographic.\"admission_location\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"jerry", "deberry\""], "sql": "SELECT DEMOGRAPHIC.\"DOB\",DEMOGRAPHIC.\"ADMISSION_LOCATION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Jerry Deberry\"", "question_refine": "what is date of birth and admission location of subject name jerry deberry?", "key": "463cab7bca467c802dbb2b6ab16efe88"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 2, 0, "Stephanie Suchan"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "name", "stephanie", "suchan", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"stephanie", "suchan\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Stephanie Suchan\"", "question_refine": "what is admission time of subject name stephanie suchan?", "key": "25a860de4db2ce74b231e9e25b16db5c"}
{"format": {"agg_col": [[0, 8]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "religion", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"religion\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"RELIGION\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is religion of subject name paul edwards?", "key": "5d4d866be48304e39a1e61a8e42c63f4"}
{"format": {"agg_col": [[0, 21]], "table": [0], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "discharge", "time", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "demographic.\"dischtime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT DEMOGRAPHIC.\"DISCHTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is discharge time of subject name paul edwards?", "key": "2da84811f71380bf55816dad013b6af9"}
{"format": {"agg_col": [[2, 2]], "table": [0, 2], "cond": [[0, 2, 0, "Paul Edwards"]], "sel": 0}, "question_refine_tok": ["what", "is", "procedure", "icd9", "code", "of", "subject", "name", "paul", "edwards", "?"], "sql_tok": ["select", "procedures.\"icd9_code\"", "from", "demographic", "inner", "join", "procedures", "on", "demographic.hadm_id", "=", "procedures.hadm_id", "where", "demographic.\"name\"", "=", "\"paul", "edwards\""], "sql": "SELECT PROCEDURES.\"ICD9_CODE\" FROM DEMOGRAPHIC INNER JOIN PROCEDURES on DEMOGRAPHIC.HADM_ID = PROCEDURES.HADM_ID WHERE DEMOGRAPHIC.\"NAME\" = \"Paul Edwards\"", "question_refine": "what is procedure icd9 code of subject name paul edwards?", "key": "fa27405c1f4f11fcc7ce32cf8b07a08a"}
{"format": {"agg_col": [[0, 6]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "gender", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"gender\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"GENDER\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is gender of subject name kelly gallardo?", "key": "fbc1f416f452ed6756be671389580cba"}
{"format": {"agg_col": [[0, 7]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "language", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"language\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"LANGUAGE\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is language of subject name kelly gallardo?", "key": "dbaf5aef2e3b903aa7f1dc1448fc78b8"}
{"format": {"agg_col": [[0, 20]], "table": [0], "cond": [[0, 2, 0, "Kelly Gallardo"]], "sel": 0}, "question_refine_tok": ["what", "is", "admission", "time", "of", "subject", "name", "kelly", "gallardo", "?"], "sql_tok": ["select", "demographic.\"admittime\"", "from", "demographic", "where", "demographic.\"name\"", "=", "\"kelly", "gallardo\""], "sql": "SELECT DEMOGRAPHIC.\"ADMITTIME\" FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"NAME\" = \"Kelly Gallardo\"", "question_refine": "what is admission time of subject name kelly gallardo?", "key": "dc9c60a149594d868c3ae5b2e0bbb51e"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 11, 0, "Self Pay"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "insurance", "is", "self", "pay", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"self", "pay\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Self Pay\"", "question_refine": "what is average days of hospital stay of patients whose insurance is self pay?", "key": "7d31cb260ea3b10e4f3e2d68014f7c2c"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 12, 0, "AMERICAN INDIAN/ALASKA NATIVE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "ethnicity", "is", "american", "indian", "/", "alaska", "native", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"american", "indian/alaska", "native\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"AMERICAN INDIAN/ALASKA NATIVE\"", "question_refine": "what is average days of hospital stay of patients whose ethnicity is american indian/alaska native?", "key": "ad78051ce3017bc60d04837760eff560"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 12, 0, "HISPANIC/LATINO - PUERTO RICAN"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "ethnicity", "is", "hispanic", "/", "latino", "-", "puerto", "rican", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"hispanic/latino", "-", "puerto", "rican\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"HISPANIC/LATINO - PUERTO RICAN\"", "question_refine": "what is minimum days of hospital stay of patients whose ethnicity is hispanic/latino - puerto rican?", "key": "58802cc7408b6ab9520e7c15b7f7c21e"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 13, 0, 1]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "death", "status", "is", "1", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"1\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"1\"", "question_refine": "what is maximum days of hospital stay of patients whose death status is 1?", "key": "3215ba33c96d4fd19e2c957ca35f61c9"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "GASTROINTESTINAL BLEED"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "gastrointestinal", "bleed", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"gastrointestinal", "bleed\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GASTROINTESTINAL BLEED\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is gastrointestinal bleed?", "key": "bbb8f954814fd3835fe3a08d38d6566e"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "POSTERIOR COMMUNICATING ANEURYSM/SDA"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "posterior", "communicating", "aneurysm", "/", "sda", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"posterior", "communicating", "aneurysm/sda\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"POSTERIOR COMMUNICATING ANEURYSM/SDA\"", "question_refine": "what is average days of hospital stay of patients whose primary disease is posterior communicating aneurysm/sda?", "key": "c81fcc06334a2152326932721ecd6adf"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "squamous", "cell", "carcinoma", "oral", "tongue", "/", "sda", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"squamous", "cell", "carcinoma", "oral", "tongue/sda\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"SQUAMOUS CELL CARCINOMA ORAL TONGUE/SDA\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is squamous cell carcinoma oral tongue/sda?", "key": "3335e6cfaf2d68ffafe24e54f4537751"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 16, 0, "STEMI"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "primary", "disease", "is", "stemi", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"stemi\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"STEMI\"", "question_refine": "what is maximum days of hospital stay of patients whose primary disease is stemi?", "key": "f0562253946ba21905d08250e513d530"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 4, 3, 64]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "64", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"64\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"64\"", "question_refine": "what is maximum days of hospital stay of patients whose age is greater than or equal to 64?", "key": "3fb471cb086a0f9d76c8133119e95a9b"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2049]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2049", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2049\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2049\"", "question_refine": "what is maximum days of hospital stay of patients whose year of birth is greater than 2049?", "key": "ea4e2db7d8a6b8d826858915488585d9"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2053]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2053", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2053\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2053\"", "question_refine": "what is maximum days of hospital stay of patients whose year of birth is greater than 2053?", "key": "35bca2fd8158a5bcabaf5b815e9dd7a3"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 18, 1, 2058]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "days", "of", "hospital", "stay", "of", "patients", "whose", "year", "of", "birth", "is", "greater", "than", "2058", "?"], "sql_tok": ["select", "min", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"dob_year\"", ">", "\"2058\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DOB_YEAR\" > \"2058\"", "question_refine": "what is minimum days of hospital stay of patients whose year of birth is greater than 2058?", "key": "ed9b3e3576eec94ca7d8899cd74a028b"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 22, 3, 2178]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "days", "of", "hospital", "stay", "of", "patients", "whose", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2178", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"admityear\"", ">=", "\"2178\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMITYEAR\" >= \"2178\"", "question_refine": "what is average days of hospital stay of patients whose admission year is greater than or equal to 2178?", "key": "760a85626f1a9d9d1b9ba79e43c1ec58"}
{"format": {"agg_col": [[0, 10]], "table": [0], "cond": [[0, 22, 3, 2182]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "days", "of", "hospital", "stay", "of", "patients", "whose", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2182", "?"], "sql_tok": ["select", "max", "(", "demographic.\"days_stay\"", ")", "from", "demographic", "where", "demographic.\"admityear\"", ">=", "\"2182\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"DAYS_STAY\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMITYEAR\" >= \"2182\"", "question_refine": "what is maximum days of hospital stay of patients whose admission year is greater than or equal to 2182?", "key": "58f94eac8cc1f0b41ea76892fa90f737"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "WIDOWED"], [0, 6, 0, "F"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "gender", "is", "f", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "demographic.\"gender\"", "=", "\"f\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND DEMOGRAPHIC.\"GENDER\" = \"F\"", "question_refine": "what is maximum age of patients whose marital status is widowed and gender is f?", "key": "c0125c18c5eb4972459f4b15318694ae"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "DIVORCED"], [0, 6, 0, "M"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "divorced", "and", "gender", "is", "m", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"divorced\"", "and", "demographic.\"gender\"", "=", "\"m\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"DIVORCED\" AND DEMOGRAPHIC.\"GENDER\" = \"M\"", "question_refine": "what is average age of patients whose marital status is divorced and gender is m?", "key": "cd640109b6608e690aecd31193fa9a08"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "WIDOWED"], [0, 9, 0, "ELECTIVE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "widowed", "and", "admission", "type", "is", "elective", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"widowed\"", "and", "demographic.\"admission_type\"", "=", "\"elective\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"WIDOWED\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\"", "question_refine": "what is maximum age of patients whose marital status is widowed and admission type is elective?", "key": "0316c26d352204b490919aac75ece0a4"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 9, 0, "URGENT"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "admission", "type", "is", "urgent", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"admission_type\"", "=", "\"urgent\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\"", "question_refine": "what is average age of patients whose marital status is married and admission type is urgent?", "key": "7f979e068e74010c0e036725991a5699"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 11, 0, "Medicaid"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "insurance", "is", "medicaid", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"insurance\"", "=", "\"medicaid\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\"", "question_refine": "what is minimum age of patients whose marital status is married and insurance is medicaid?", "key": "4cafccb4bb1060376c5599b9d48cc970"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 11, 0, "Medicare"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "insurance", "is", "medicare", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"insurance\"", "=", "\"medicare\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Medicare\"", "question_refine": "what is average age of patients whose marital status is married and insurance is medicare?", "key": "d3d022f7751979bec57b63fcc60f9afc"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 15, 0, "DEAD/EXPIRED"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "discharge", "location", "is", "dead", "/", "expired", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"discharge_location\"", "=", "\"dead/expired\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DEAD/EXPIRED\"", "question_refine": "what is minimum age of patients whose marital status is married and discharge location is dead/expired?", "key": "4fa6b5f8eddfd54d00c54e722172a79a"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 15, 0, "LEFT AGAINST MEDICAL ADVI"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "discharge", "location", "is", "left", "against", "medical", "advi", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"discharge_location\"", "=", "\"left", "against", "medical", "advi\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"LEFT AGAINST MEDICAL ADVI\"", "question_refine": "what is minimum age of patients whose marital status is married and discharge location is left against medical advi?", "key": "46fbef596868ec43b7de4ed512d8ae92"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 16, 0, "ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "primary", "disease", "is", "st", "-", "segment", "elevation", "myocardial", "infarction\\cardiac", "cath", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"diagnosis\"", "=", "\"st-segment", "elevation", "myocardial", "infarction\\cardiac", "cath\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST-SEGMENT ELEVATION MYOCARDIAL INFARCTION\\CARDIAC CATH\"", "question_refine": "what is maximum age of patients whose marital status is married and primary disease is st-segment elevation myocardial infarction\\cardiac cath?", "key": "eef1312931162ab9604dde18df927683"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 4, 3, 43]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "age", "is", "greater", "than", "or", "equal", "to", "43", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"age\"", ">=", "\"43\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"AGE\" >= \"43\"", "question_refine": "what is average age of patients whose marital status is married and age is greater than or equal to 43?", "key": "28489b020c497681498317afef320c2d"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 18, 1, 2090]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "year", "of", "birth", "is", "greater", "than", "2090", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"dob_year\"", ">", "\"2090\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2090\"", "question_refine": "what is average age of patients whose marital status is single and year of birth is greater than 2090?", "key": "39417b8523241635a3303936f117c900"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "MARRIED"], [0, 22, 3, 2180]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "married", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2180", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"married\"", "and", "demographic.\"admityear\"", ">=", "\"2180\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"MARRIED\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2180\"", "question_refine": "what is minimum age of patients whose marital status is married and admission year is greater than or equal to 2180?", "key": "5350c8f582a3eb7edd3e70112a31dadf"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 3, 0, "SINGLE"], [0, 22, 3, 2155]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "marital", "status", "is", "single", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2155", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"marital_status\"", "=", "\"single\"", "and", "demographic.\"admityear\"", ">=", "\"2155\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"MARITAL_STATUS\" = \"SINGLE\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2155\"", "question_refine": "what is minimum age of patients whose marital status is single and admission year is greater than or equal to 2155?", "key": "2502de02a1c00c3799c3c27e085cbd19"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 12, 0, "BLACK/CAPE VERDEAN"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "m", "and", "ethnicity", "is", "black", "/", "cape", "verdean", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"ethnicity\"", "=", "\"black/cape", "verdean\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/CAPE VERDEAN\"", "question_refine": "what is average age of patients whose gender is m and ethnicity is black/cape verdean?", "key": "20dfaa593fad6de208df9163b740b2b2"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 15, 0, "SNF"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "discharge", "location", "is", "snf", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"discharge_location\"", "=", "\"snf\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SNF\"", "question_refine": "what is maximum age of patients whose gender is f and discharge location is snf?", "key": "de86930c28c7e9032eef36e0219925f0"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "gender", "is", "f", "and", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\"", "question_refine": "what is average age of patients whose gender is f and discharge location is disch-tran to psych hosp?", "key": "34ac907fcf8bc67bca2c86bed87a4834"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 3, 85]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "greater", "than", "or", "equal", "to", "85", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", ">=", "\"85\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" >= \"85\"", "question_refine": "what is maximum age of patients whose gender is f and age is greater than or equal to 85?", "key": "c27d7952b89bbcddca05a3f242e7c45e"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "F"], [0, 4, 3, 31]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "f", "and", "age", "is", "greater", "than", "or", "equal", "to", "31", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"f\"", "and", "demographic.\"age\"", ">=", "\"31\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"F\" AND DEMOGRAPHIC.\"AGE\" >= \"31\"", "question_refine": "what is minimum age of patients whose gender is f and age is greater than or equal to 31?", "key": "4c20ea4902c7e1ce67d41a4f6a4ec520"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 6, 0, "M"], [0, 4, 3, 50]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "gender", "is", "m", "and", "age", "is", "greater", "than", "or", "equal", "to", "50", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"gender\"", "=", "\"m\"", "and", "demographic.\"age\"", ">=", "\"50\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"GENDER\" = \"M\" AND DEMOGRAPHIC.\"AGE\" >= \"50\"", "question_refine": "what is minimum age of patients whose gender is m and age is greater than or equal to 50?", "key": "5f774f22308fc7d47c7ccc9eb7072f11"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 16, 0, "BRAIN MASS;INTRACRANIAL HEMORRHAGE"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "language", "is", "span", "and", "primary", "disease", "is", "brain", "mass;intracranial", "hemorrhage", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"diagnosis\"", "=", "\"brain", "mass;intracranial", "hemorrhage\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BRAIN MASS;INTRACRANIAL HEMORRHAGE\"", "question_refine": "what is average age of patients whose language is span and primary disease is brain mass;intracranial hemorrhage?", "key": "b7b6b04a4763b3b8b7f219bb88224ade"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "SPAN"], [0, 16, 0, "BLADDER CANCER/SDA"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "language", "is", "span", "and", "primary", "disease", "is", "bladder", "cancer", "/", "sda", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"span\"", "and", "demographic.\"diagnosis\"", "=", "\"bladder", "cancer/sda\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"SPAN\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BLADDER CANCER/SDA\"", "question_refine": "what is minimum age of patients whose language is span and primary disease is bladder cancer/sda?", "key": "61698bbb195fb9021d5dab81be83bf7d"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "RUSS"], [0, 16, 0, "MORBID OBESITY/SDA"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "language", "is", "russ", "and", "primary", "disease", "is", "morbid", "obesity", "/", "sda", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"russ\"", "and", "demographic.\"diagnosis\"", "=", "\"morbid", "obesity/sda\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"RUSS\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"MORBID OBESITY/SDA\"", "question_refine": "what is average age of patients whose language is russ and primary disease is morbid obesity/sda?", "key": "77a3ddf9ed8713fcb66ccc9bffca9663"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 7, 0, "CAPE"], [0, 16, 0, "COMPLETE HEART BLOCK"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "language", "is", "cape", "and", "primary", "disease", "is", "complete", "heart", "block", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"language\"", "=", "\"cape\"", "and", "demographic.\"diagnosis\"", "=", "\"complete", "heart", "block\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"LANGUAGE\" = \"CAPE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"COMPLETE HEART BLOCK\"", "question_refine": "what is minimum age of patients whose language is cape and primary disease is complete heart block?", "key": "015a83821647c4dd541e1e2b977f34ea"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 11, 0, "Government"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "insurance", "is", "government", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"insurance\"", "=", "\"government\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Government\"", "question_refine": "what is maximum age of patients whose admission type is urgent and insurance is government?", "key": "ec052c40550c877066c711237bb1e0cc"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "ELECTIVE"], [0, 11, 0, "Private"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "elective", "and", "insurance", "is", "private", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"elective\"", "and", "demographic.\"insurance\"", "=", "\"private\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"ELECTIVE\" AND DEMOGRAPHIC.\"INSURANCE\" = \"Private\"", "question_refine": "what is maximum age of patients whose admission type is elective and insurance is private?", "key": "6fbdb4afc2de496365548ef044ca2f43"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   "]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "aortic", "insufficiency\\re", "-", "do", "sternotomy", ";", "aortic", "valve", "replacement", "  ", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"aortic", "insufficiency\\re-do", "sternotomy;", "aortic", "valve", "replacement", "\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   \"", "question_refine": "what is average age of patients whose admission type is emergency and primary disease is aortic insufficiency\\re-do sternotomy; aortic valve replacement   ?", "key": "e3cf6bcb090f7e15e2830171392b9f52"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 16, 0, "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\\CARDIAC CATH"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "primary", "disease", "is", "hypertension;rule", "out", "coronary", "artery", "disease\\cardiac", "cath", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"diagnosis\"", "=", "\"hypertension;rule", "out", "coronary", "artery", "disease\\cardiac", "cath\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\\CARDIAC CATH\"", "question_refine": "what is minimum age of patients whose admission type is emergency and primary disease is hypertension;rule out coronary artery disease\\cardiac cath?", "key": "2e6245c2512df5f0bb33ef5eb5b40741"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 10, 0, 1]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "days", "of", "hospital", "stay", "is", "1", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"days_stay\"", "=", "\"1\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"1\"", "question_refine": "what is minimum age of patients whose admission type is emergency and days of hospital stay is 1?", "key": "7fd892eff75169a6dc401f7f5d972d8f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 10, 0, 2]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "days", "of", "hospital", "stay", "is", "2", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"days_stay\"", "=", "\"2\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"2\"", "question_refine": "what is maximum age of patients whose admission type is emergency and days of hospital stay is 2?", "key": "77ecaaeb8278ba07cac4ecf4ea3fbcea"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 18, 1, 2074]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "year", "of", "birth", "is", "greater", "than", "2074", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"dob_year\"", ">", "\"2074\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2074\"", "question_refine": "what is average age of patients whose admission type is emergency and year of birth is greater than 2074?", "key": "d00428d99cb2db589805211e3b9672f7"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 18, 1, 2076]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "year", "of", "birth", "is", "greater", "than", "2076", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"dob_year\"", ">", "\"2076\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2076\"", "question_refine": "what is maximum age of patients whose admission type is emergency and year of birth is greater than 2076?", "key": "06e490e8f0ccf886d73dd99fc02e98e6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 18, 1, 2089]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "year", "of", "birth", "is", "greater", "than", "2089", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"dob_year\"", ">", "\"2089\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"DOB_YEAR\" > \"2089\"", "question_refine": "what is minimum age of patients whose admission type is urgent and year of birth is greater than 2089?", "key": "12e1862837bd90e4239e4093b8567222"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 19, 2, 2138.0]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "year", "of", "death", "is", "less", "than", "2138", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"dod_year\"", "<", "\"2138.0\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2138.0\"", "question_refine": "what is minimum age of patients whose admission type is emergency and year of death is less than 2138?", "key": "f4fe56070cc0142f91e83a85ea9ea41f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 19, 2, 2173.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "year", "of", "death", "is", "less", "than", "2173", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"dod_year\"", "<", "\"2173.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2173.0\"", "question_refine": "what is maximum age of patients whose admission type is emergency and year of death is less than 2173?", "key": "67f299009563511e478a4e4b024b6379"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 19, 2, 2111.0]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "year", "of", "death", "is", "less", "than", "2111", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"dod_year\"", "<", "\"2111.0\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2111.0\"", "question_refine": "what is minimum age of patients whose admission type is urgent and year of death is less than 2111?", "key": "b88a0ff674ee6b22c60eec3c4b9227c0"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "EMERGENCY"], [0, 22, 3, 2174]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "type", "is", "emergency", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2174", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"emergency\"", "and", "demographic.\"admityear\"", ">=", "\"2174\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"EMERGENCY\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2174\"", "question_refine": "what is maximum age of patients whose admission type is emergency and admission year is greater than or equal to 2174?", "key": "1d30f7900a873d3ed0be64cf6154c4f7"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 9, 0, "URGENT"], [0, 22, 3, 2178]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "admission", "type", "is", "urgent", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2178", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_type\"", "=", "\"urgent\"", "and", "demographic.\"admityear\"", ">=", "\"2178\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_TYPE\" = \"URGENT\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2178\"", "question_refine": "what is minimum age of patients whose admission type is urgent and admission year is greater than or equal to 2178?", "key": "d85fde0729f54e2ca0fcf8e156356209"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 12, 0, "WHITE"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "ethnicity", "is", "white", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"ethnicity\"", "=", "\"white\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\"", "question_refine": "what is minimum age of patients whose insurance is medicaid and ethnicity is white?", "key": "8d551e7b6572e6da640dd1c24d650dc6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 11, 0, "Medicaid"], [0, 16, 0, "SDH"]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "insurance", "is", "medicaid", "and", "primary", "disease", "is", "sdh", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"insurance\"", "=", "\"medicaid\"", "and", "demographic.\"diagnosis\"", "=", "\"sdh\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"INSURANCE\" = \"Medicaid\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SDH\"", "question_refine": "what is minimum age of patients whose insurance is medicaid and primary disease is sdh?", "key": "a35f3d0e9ae6824a0706bf95e8f6bb12"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 10, 0, 27]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "days", "of", "hospital", "stay", "is", "27", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"days_stay\"", "=", "\"27\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"27\"", "question_refine": "what is maximum age of patients whose ethnicity is white - russian and days of hospital stay is 27?", "key": "726757ca298de93eb3cac7915ca04fd3"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE"], [0, 10, 0, 5]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "ethnicity", "is", "white", "and", "days", "of", "hospital", "stay", "is", "5", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white\"", "and", "demographic.\"days_stay\"", "=", "\"5\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"5\"", "question_refine": "what is maximum age of patients whose ethnicity is white and days of hospital stay is 5?", "key": "695357d96c62bf954b1bf7f33567945a"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "BLACK/AFRICAN AMERICAN"], [0, 19, 2, 2148.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "ethnicity", "is", "black", "/", "african", "american", "and", "year", "of", "death", "is", "less", "than", "2148", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"black/african", "american\"", "and", "demographic.\"dod_year\"", "<", "\"2148.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"BLACK/AFRICAN AMERICAN\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2148.0\"", "question_refine": "what is maximum age of patients whose ethnicity is black/african american and year of death is less than 2148?", "key": "26d3e3003cb4443d33eac868a5286156"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 22, 3, 2138]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2138", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"admityear\"", ">=", "\"2138\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2138\"", "question_refine": "what is minimum age of patients whose ethnicity is white - russian and admission year is greater than or equal to 2138?", "key": "b4808f525b2c5da4b37760d85b6016e3"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 12, 0, "WHITE - RUSSIAN"], [0, 22, 3, 2144]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "ethnicity", "is", "white", "-", "russian", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2144", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"ethnicity\"", "=", "\"white", "-", "russian\"", "and", "demographic.\"admityear\"", ">=", "\"2144\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ETHNICITY\" = \"WHITE - RUSSIAN\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2144\"", "question_refine": "what is average age of patients whose ethnicity is white - russian and admission year is greater than or equal to 2144?", "key": "8f486e6beed8d8ad58fd63a63af2d161"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "sigmoid", "diverticulitis", ",", "colovestical", "fistula", "/", "sda", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"sigmoid", "diverticulitis", "colovestical", "fistula/sda\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"SIGMOID DIVERTICULITIS, COLOVESTICAL FISTULA/SDA\"", "question_refine": "what is maximum age of patients whose death status is 0 and primary disease is sigmoid diverticulitis, colovestical fistula/sda?", "key": "b14457988087883bca72512636ebc357"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "NEWBORN"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "newborn", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"newborn\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\"", "question_refine": "what is average age of patients whose death status is 0 and primary disease is newborn?", "key": "1640d853b1bd22db0edbf8ff04dfdc48"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 16, 0, "PITUITARY BLEED"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "primary", "disease", "is", "pituitary", "bleed", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"diagnosis\"", "=", "\"pituitary", "bleed\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"PITUITARY BLEED\"", "question_refine": "what is maximum age of patients whose death status is 0 and primary disease is pituitary bleed?", "key": "8b4b68eb493889c13b91e30222e65746"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 4, 3, 67]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "death", "status", "is", "0", "and", "age", "is", "greater", "than", "or", "equal", "to", "67", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"age\"", ">=", "\"67\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"AGE\" >= \"67\"", "question_refine": "what is average age of patients whose death status is 0 and age is greater than or equal to 67?", "key": "9eca17508619c54a6a63f6219dbc9352"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 13, 0, 0], [0, 22, 3, 2120]], "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", "2120", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"expire_flag\"", "=", "\"0\"", "and", "demographic.\"admityear\"", ">=", "\"2120\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"EXPIRE_FLAG\" = \"0\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2120\"", "question_refine": "what is average age of patients whose death status is 0 and admission year is greater than or equal to 2120?", "key": "488c3217e7ad39bed8f737efbd669143"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 14, 0, "PHYS REFERRAL/NORMAL DELI"], [0, 15, 0, "HOME HEALTH CARE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "location", "is", "phys", "referral", "/", "normal", "deli", "and", "discharge", "location", "is", "home", "health", "care", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"phys", "referral/normal", "deli\"", "and", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"PHYS REFERRAL/NORMAL DELI\" AND DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\"", "question_refine": "what is maximum age of patients whose admission location is phys referral/normal deli and discharge location is home health care?", "key": "232b0784e0359692d371544e88e69476"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 14, 0, "CLINIC REFERRAL/PREMATURE"], [0, 16, 0, "STERNAL WOUND INFECTION"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "location", "is", "clinic", "referral", "/", "premature", "and", "primary", "disease", "is", "sternal", "wound", "infection", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"clinic", "referral/premature\"", "and", "demographic.\"diagnosis\"", "=", "\"sternal", "wound", "infection\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"CLINIC REFERRAL/PREMATURE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"STERNAL WOUND INFECTION\"", "question_refine": "what is maximum age of patients whose admission location is clinic referral/premature and primary disease is sternal wound infection?", "key": "c9781546449c4fefa94b18fc421fffd8"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 14, 0, "TRSF WITHIN THIS FACILITY"], [0, 16, 0, "LIVER TRANSPLANT"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "location", "is", "trsf", "within", "this", "facility", "and", "primary", "disease", "is", "liver", "transplant", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"trsf", "within", "this", "facility\"", "and", "demographic.\"diagnosis\"", "=", "\"liver", "transplant\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"TRSF WITHIN THIS FACILITY\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LIVER TRANSPLANT\"", "question_refine": "what is maximum age of patients whose admission location is trsf within this facility and primary disease is liver transplant?", "key": "78c501a271efe41f9e31f8f3688ae412"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 14, 0, "EMERGENCY ROOM ADMIT"], [0, 10, 0, 8]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "admission", "location", "is", "emergency", "room", "admit", "and", "days", "of", "hospital", "stay", "is", "8", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"admission_location\"", "=", "\"emergency", "room", "admit\"", "and", "demographic.\"days_stay\"", "=", "\"8\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"ADMISSION_LOCATION\" = \"EMERGENCY ROOM ADMIT\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"8\"", "question_refine": "what is maximum age of patients whose admission location is emergency room admit and days of hospital stay is 8?", "key": "fb202230fc6964d228bcf9449326fc46"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME"], [0, 16, 0, "BLADDER CANCER/SDA"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "and", "primary", "disease", "is", "bladder", "cancer", "/", "sda", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home\"", "and", "demographic.\"diagnosis\"", "=", "\"bladder", "cancer/sda\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"BLADDER CANCER/SDA\"", "question_refine": "what is maximum age of patients whose discharge location is home and primary disease is bladder cancer/sda?", "key": "45363e40b4b9ce39842aa66dee31b113"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 16, 0, "LEFT FEMUR FRACTURE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "primary", "disease", "is", "left", "femur", "fracture", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"diagnosis\"", "=", "\"left", "femur", "fracture\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"LEFT FEMUR FRACTURE\"", "question_refine": "what is maximum age of patients whose discharge location is home health care and primary disease is left femur fracture?", "key": "16b0c3efcab16b47b856d2e7682fe1a9"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "HOME HEALTH CARE"], [0, 16, 0, "ANGIOEDEMA"]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "discharge", "location", "is", "home", "health", "care", "and", "primary", "disease", "is", "angioedema", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"home", "health", "care\"", "and", "demographic.\"diagnosis\"", "=", "\"angioedema\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"HOME HEALTH CARE\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"ANGIOEDEMA\"", "question_refine": "what is average age of patients whose discharge location is home health care and primary disease is angioedema?", "key": "7f68a5f146da4c55c3ca8c1b70694afc"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "DISCH-TRAN TO PSYCH HOSP"], [0, 16, 0, "OVERDOSE"]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "discharge", "location", "is", "disch", "-", "tran", "to", "psych", "hosp", "and", "primary", "disease", "is", "overdose", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"disch-tran", "to", "psych", "hosp\"", "and", "demographic.\"diagnosis\"", "=", "\"overdose\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"DISCH-TRAN TO PSYCH HOSP\" AND DEMOGRAPHIC.\"DIAGNOSIS\" = \"OVERDOSE\"", "question_refine": "what is maximum age of patients whose discharge location is disch-tran to psych hosp and primary disease is overdose?", "key": "aa230296ed12ea2d317fe03d0a906ef5"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [0, 10, 0, 15]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "days", "of", "hospital", "stay", "is", "15", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "demographic.\"days_stay\"", "=", "\"15\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"15\"", "question_refine": "what is maximum age of patients whose discharge location is short term hospital and days of hospital stay is 15?", "key": "f74c290d482c3b0961afe47d312a6c6f"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 15, 0, "SHORT TERM HOSPITAL"], [0, 10, 0, 17]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "discharge", "location", "is", "short", "term", "hospital", "and", "days", "of", "hospital", "stay", "is", "17", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"discharge_location\"", "=", "\"short", "term", "hospital\"", "and", "demographic.\"days_stay\"", "=", "\"17\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DISCHARGE_LOCATION\" = \"SHORT TERM HOSPITAL\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"17\"", "question_refine": "what is maximum age of patients whose discharge location is short term hospital and days of hospital stay is 17?", "key": "10cd6b8d58b6cd7aff2d59112b92348c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   "], [0, 10, 0, 20]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "aortic", "insufficiency\\re", "-", "do", "sternotomy", ";", "aortic", "valve", "replacement", "   ", "and", "days", "of", "hospital", "stay", "is", "20", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"aortic", "insufficiency\\re-do", "sternotomy;", "aortic", "valve", "replacement", "\"", "and", "demographic.\"days_stay\"", "=", "\"20\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"AORTIC INSUFFICIENCY\\RE-DO STERNOTOMY; AORTIC VALVE REPLACEMENT   \" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"20\"", "question_refine": "what is minimum age of patients whose primary disease is aortic insufficiency\\re-do sternotomy; aortic valve replacement    and days of hospital stay is 20?", "key": "75456314b15dcab6e0ce9292d5efe6ae"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH"], [0, 10, 0, 13]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "primary", "disease", "is", "st", "elevated", "myocardial", "infarction\\cardiac", "cath", "and", "days", "of", "hospital", "stay", "is", "13", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"st", "elevated", "myocardial", "infarction\\cardiac", "cath\"", "and", "demographic.\"days_stay\"", "=", "\"13\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ST ELEVATED MYOCARDIAL INFARCTION\\CARDIAC CATH\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"13\"", "question_refine": "what is average age of patients whose primary disease is st elevated myocardial infarction\\cardiac cath and days of hospital stay is 13?", "key": "3cb61c2d78f6ce5e61bc520b35501d63"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "ANGIOEDEMA"], [0, 10, 0, 8]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "angioedema", "and", "days", "of", "hospital", "stay", "is", "8", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"angioedema\"", "and", "demographic.\"days_stay\"", "=", "\"8\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"ANGIOEDEMA\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"8\"", "question_refine": "what is minimum age of patients whose primary disease is angioedema and days of hospital stay is 8?", "key": "364ccb2009f614d048aaab22eba5f7d5"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "PITUITARY BLEED"], [0, 10, 0, 29]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "primary", "disease", "is", "pituitary", "bleed", "and", "days", "of", "hospital", "stay", "is", "29", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"pituitary", "bleed\"", "and", "demographic.\"days_stay\"", "=", "\"29\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"PITUITARY BLEED\" AND DEMOGRAPHIC.\"DAYS_STAY\" = \"29\"", "question_refine": "what is average age of patients whose primary disease is pituitary bleed and days of hospital stay is 29?", "key": "237e91842a47eb60c823a5df5242f1eb"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "NEWBORN"], [0, 19, 2, 2138.0]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "primary", "disease", "is", "newborn", "and", "year", "of", "death", "is", "less", "than", "2138", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"newborn\"", "and", "demographic.\"dod_year\"", "<", "\"2138.0\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEWBORN\" AND DEMOGRAPHIC.\"DOD_YEAR\" < \"2138.0\"", "question_refine": "what is maximum age of patients whose primary disease is newborn and year of death is less than 2138?", "key": "516527954daccf0c3bd8e0e96ebf29e6"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "MORBID OBESITY/SDA"], [0, 22, 3, 2155]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "morbid", "obesity", "/", "sda", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2155", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"morbid", "obesity/sda\"", "and", "demographic.\"admityear\"", ">=", "\"2155\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"MORBID OBESITY/SDA\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2155\"", "question_refine": "what is minimum age of patients whose primary disease is morbid obesity/sda and admission year is greater than or equal to 2155?", "key": "9413c07c5e58f7ccf07fbd371da9eeca"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT"], [0, 22, 3, 2146]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "primary", "disease", "is", "neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2146", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"neoplasm", "of", "uncertain", "behavior", "of", "other", "lymphatic", "and", "hematopoietic", "tissues\\bone", "marrow", "transplant\"", "and", "demographic.\"admityear\"", ">=", "\"2146\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"NEOPLASM OF UNCERTAIN BEHAVIOR OF OTHER LYMPHATIC AND HEMATOPOIETIC TISSUES\\BONE MARROW TRANSPLANT\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2146\"", "question_refine": "what is maximum age of patients whose primary disease is neoplasm of uncertain behavior of other lymphatic and hematopoietic tissues\\bone marrow transplant and admission year is greater than or equal to 2146?", "key": "21cd0c675d4c10728974ff43cddb3e06"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "S/P FALL"], [0, 22, 3, 2119]], "sel": 3}, "question_refine_tok": ["what", "is", "minimum", "age", "of", "patients", "whose", "primary", "disease", "is", "s", "/", "p", "fall", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2119", "?"], "sql_tok": ["select", "min", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"s/p", "fall\"", "and", "demographic.\"admityear\"", ">=", "\"2119\""], "sql": "SELECT MIN ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"S/P FALL\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2119\"", "question_refine": "what is minimum age of patients whose primary disease is s/p fall and admission year is greater than or equal to 2119?", "key": "f21e9e8695a90352613140ab890d4977"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 16, 0, "GANGRENE"], [0, 22, 3, 2164]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "primary", "disease", "is", "gangrene", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2164", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"diagnosis\"", "=", "\"gangrene\"", "and", "demographic.\"admityear\"", ">=", "\"2164\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DIAGNOSIS\" = \"GANGRENE\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2164\"", "question_refine": "what is average age of patients whose primary disease is gangrene and admission year is greater than or equal to 2164?", "key": "1da9517a8843fcd5f1b767ce724c4786"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 4, 3, 24], [0, 22, 3, 2176]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "24", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2176", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"24\"", "and", "demographic.\"admityear\"", ">=", "\"2176\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"24\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2176\"", "question_refine": "what is average age of patients whose age is greater than or equal to 24 and admission year is greater than or equal to 2176?", "key": "f55c680a425435a273ee581491725c9c"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 4, 3, 76], [0, 22, 3, 2173]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "76", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2173", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"76\"", "and", "demographic.\"admityear\"", ">=", "\"2173\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"76\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2173\"", "question_refine": "what is average age of patients whose age is greater than or equal to 76 and admission year is greater than or equal to 2173?", "key": "234afa1b2886c364c7244ee365b60c5a"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 4, 3, 44], [0, 22, 3, 2197]], "sel": 4}, "question_refine_tok": ["what", "is", "average", "age", "of", "patients", "whose", "age", "is", "greater", "than", "or", "equal", "to", "44", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2197", "?"], "sql_tok": ["select", "avg", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"age\"", ">=", "\"44\"", "and", "demographic.\"admityear\"", ">=", "\"2197\""], "sql": "SELECT AVG ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"AGE\" >= \"44\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2197\"", "question_refine": "what is average age of patients whose age is greater than or equal to 44 and admission year is greater than or equal to 2197?", "key": "6ca57c75539e45aabf198003d8b13256"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 10, 0, 43], [0, 22, 3, 2119]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "43", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2119", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", "=", "\"43\"", "and", "demographic.\"admityear\"", ">=", "\"2119\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" = \"43\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2119\"", "question_refine": "what is maximum age of patients whose days of hospital stay is 43 and admission year is greater than or equal to 2119?", "key": "092b913fe98d9f4700cdbce77c747a19"}
{"format": {"agg_col": [[0, 4]], "table": [0], "cond": [[0, 10, 0, 34], [0, 22, 3, 2187]], "sel": 2}, "question_refine_tok": ["what", "is", "maximum", "age", "of", "patients", "whose", "days", "of", "hospital", "stay", "is", "34", "and", "admission", "year", "is", "greater", "than", "or", "equal", "to", "2187", "?"], "sql_tok": ["select", "max", "(", "demographic.\"age\"", ")", "from", "demographic", "where", "demographic.\"days_stay\"", "=", "\"34\"", "and", "demographic.\"admityear\"", ">=", "\"2187\""], "sql": "SELECT MAX ( DEMOGRAPHIC.\"AGE\" ) FROM DEMOGRAPHIC WHERE DEMOGRAPHIC.\"DAYS_STAY\" = \"34\" AND DEMOGRAPHIC.\"ADMITYEAR\" >= \"2187\"", "question_refine": "what is maximum age of patients whose days of hospital stay is 34 and admission year is greater than or equal to 2187?", "key": "5125a7076c6f29c1ffd4959f1a69afc6"}