{"db_id": "mimic_iii", "question": "what is lidocaine 5% ointment's way of ingesting it?", "template": "what is the intake method of lidocaine 5% ointment?", "query": "select distinct prescriptions.route from prescriptions where prescriptions.drug = 'lidocaine 5% ointment'", "value": {"drug_name": "lidocaine 5% ointment"}, "q_tag": "what is the intake method of {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the intake method of {drug_name}?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0d92a1f6eab9515735f242f4", "answer": ["tp"]} {"db_id": "mimic_iii", "question": "what is the method for ingestion of danazol?", "template": "what is the intake method of danazol?", "query": "select distinct prescriptions.route from prescriptions where prescriptions.drug = 'danazol'", "value": {"drug_name": "danazol"}, "q_tag": "what is the intake method of {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the intake method of {drug_name}?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "769483cfab48dda44872f850", "answer": ["po"]} {"db_id": "mimic_iii", "question": "how is naproxen taken?", "template": "what is the intake method of naproxen?", "query": "select distinct prescriptions.route from prescriptions where prescriptions.drug = 'naproxen'", "value": {"drug_name": "naproxen"}, "q_tag": "what is the intake method of {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the intake method of {drug_name}?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2c0a11eb8e5e719bb20eb271", "answer": ["po"]} {"db_id": "mimic_iii", "question": "what is phenytoin infatab's intake method?", "template": "what is the intake method of phenytoin infatab?", "query": "select distinct prescriptions.route from prescriptions where prescriptions.drug = 'phenytoin infatab'", "value": {"drug_name": "phenytoin infatab"}, "q_tag": "what is the intake method of {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the intake method of {drug_name}?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3799354c7a881b01105356a7", "answer": ["po/ng", "ng"]} {"db_id": "mimic_iii", "question": "what is the price of a procedure named soft tissue division nec?", "template": "what is the cost of a procedure named soft tissue division nec?", "query": "select distinct cost.cost from cost where cost.event_type = 'procedures_icd' and cost.event_id in ( select procedures_icd.row_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'soft tissue division nec' ) )", "value": {"procedure_name": "soft tissue division nec"}, "q_tag": "what is the cost of a procedure named {procedure_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a procedure named {procedure_name}?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bd6cea419bc5f0a4edf72bb9", "answer": ["10.75"]} {"db_id": "mimic_iii", "question": "how much to pay for a dressing of wound nec?", "template": "what is the cost of a procedure named dressing of wound nec?", "query": "select distinct cost.cost from cost where cost.event_type = 'procedures_icd' and cost.event_id in ( select procedures_icd.row_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'dressing of wound nec' ) )", "value": {"procedure_name": "dressing of wound nec"}, "q_tag": "what is the cost of a procedure named {procedure_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a procedure named {procedure_name}?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fa2f8acd008402e42c567872", "answer": ["9.96"]} {"db_id": "mimic_iii", "question": "what is heart vessel op nec's price?", "template": "what is the cost of a procedure named heart vessel op nec?", "query": "select distinct cost.cost from cost where cost.event_type = 'procedures_icd' and cost.event_id in ( select procedures_icd.row_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'heart vessel op nec' ) )", "value": {"procedure_name": "heart vessel op nec"}, "q_tag": "what is the cost of a procedure named {procedure_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a procedure named {procedure_name}?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0cce2cb5569991d85d71388a", "answer": ["12.38"]} {"db_id": "mimic_iii", "question": "what is the price for loc exc bone lesion nec?", "template": "what is the cost of a procedure named loc exc bone lesion nec?", "query": "select distinct cost.cost from cost where cost.event_type = 'procedures_icd' and cost.event_id in ( select procedures_icd.row_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'loc exc bone lesion nec' ) )", "value": {"procedure_name": "loc exc bone lesion nec"}, "q_tag": "what is the cost of a procedure named {procedure_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a procedure named {procedure_name}?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "35b8d922e1c37640d591922f", "answer": ["11.25"]} {"db_id": "mimic_iii", "question": "what is the cost of a laboratory test of calculated total co2?", "template": "what is the cost of a calculated total co2 lab test?", "query": "select distinct cost.cost from cost where cost.event_type = 'labevents' and cost.event_id in ( select labevents.row_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'calculated total co2' ) )", "value": {"lab_name": "calculated total co2"}, "q_tag": "what is the cost of a {lab_name} lab test?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a {lab_name} lab test?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "03849ee05a7094a88f3bb777", "answer": ["7.05"]} {"db_id": "mimic_iii", "question": "how much does a 24 hr creatinine lab test cost?", "template": "what is the cost of a 24 hr creatinine lab test?", "query": "select distinct cost.cost from cost where cost.event_type = 'labevents' and cost.event_id in ( select labevents.row_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = '24 hr creatinine' ) )", "value": {"lab_name": "24 hr creatinine"}, "q_tag": "what is the cost of a {lab_name} lab test?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a {lab_name} lab test?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5467c3e41d9a639686bbfea5", "answer": ["7.24"]} {"db_id": "mimic_iii", "question": "what is the cost of hematocrit, pleural?", "template": "what is the cost of a hematocrit, pleural lab test?", "query": "select distinct cost.cost from cost where cost.event_type = 'labevents' and cost.event_id in ( select labevents.row_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'hematocrit, pleural' ) )", "value": {"lab_name": "hematocrit, pleural"}, "q_tag": "what is the cost of a {lab_name} lab test?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a {lab_name} lab test?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "47980a8d18f9ef7e5b6a13fc", "answer": ["7.33"]} {"db_id": "mimic_iii", "question": "what is the price for amylase, body fluid?", "template": "what is the cost of a amylase, body fluid lab test?", "query": "select distinct cost.cost from cost where cost.event_type = 'labevents' and cost.event_id in ( select labevents.row_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'amylase, body fluid' ) )", "value": {"lab_name": "amylase, body fluid"}, "q_tag": "what is the cost of a {lab_name} lab test?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a {lab_name} lab test?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "553ea63e3ae5daa161d98ab0", "answer": ["8.89"]} {"db_id": "mimic_iii", "question": "cost of ziprasidone and how much does it cost.", "template": "what is the cost of a drug named ziprasidone?", "query": "select distinct cost.cost from cost where cost.event_type = 'prescriptions' and cost.event_id in ( select prescriptions.row_id from prescriptions where prescriptions.drug = 'ziprasidone' )", "value": {"drug_name": "ziprasidone"}, "q_tag": "what is the cost of a drug named {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a drug named {drug_name}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c27061a940b856a6824ecbf6", "answer": ["11.12"]} {"db_id": "mimic_iii", "question": "how much does it cost for emtricitabine-tenofovir?", "template": "what is the cost of a drug named emtricitabine-tenofovir?", "query": "select distinct cost.cost from cost where cost.event_type = 'prescriptions' and cost.event_id in ( select prescriptions.row_id from prescriptions where prescriptions.drug = 'emtricitabine-tenofovir' )", "value": {"drug_name": "emtricitabine-tenofovir"}, "q_tag": "what is the cost of a drug named {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a drug named {drug_name}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "40739534aac68f4da9e75c0a", "answer": ["11.58"]} {"db_id": "mimic_iii", "question": "what is the cost of neo*iv*parenteral nutrition?", "template": "what is the cost of a drug named neo*iv*parenteral nutrition?", "query": "select distinct cost.cost from cost where cost.event_type = 'prescriptions' and cost.event_id in ( select prescriptions.row_id from prescriptions where prescriptions.drug = 'neo*iv*parenteral nutrition' )", "value": {"drug_name": "neo*iv*parenteral nutrition"}, "q_tag": "what is the cost of a drug named {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a drug named {drug_name}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "555249afe5d321b85e6f6756", "answer": ["12.25"]} {"db_id": "mimic_iii", "question": "how much does nicardipine hcl iv cost?", "template": "what is the cost of a drug named nicardipine hcl iv?", "query": "select distinct cost.cost from cost where cost.event_type = 'prescriptions' and cost.event_id in ( select prescriptions.row_id from prescriptions where prescriptions.drug = 'nicardipine hcl iv' )", "value": {"drug_name": "nicardipine hcl iv"}, "q_tag": "what is the cost of a drug named {drug_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of a drug named {drug_name}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "47797402cfa2a3d41a5c96b4", "answer": ["10.88"]} {"db_id": "mimic_iii", "question": "what is 'diagnosis cost' of abn liver function study?", "template": "what is the cost of diagnosing abn liver function study?", "query": "select distinct cost.cost from cost where cost.event_type = 'diagnoses_icd' and cost.event_id in ( select diagnoses_icd.row_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'abn liver function study' ) )", "value": {"diagnosis_name": "abn liver function study"}, "q_tag": "what is the cost of diagnosing {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of diagnosing {diagnosis_name}?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "cc4ea59fb99ea8f7eba91505", "answer": ["3.91"]} {"db_id": "mimic_iii", "question": "how much does it cost to receive a diagnosis for leukocytosis nos?", "template": "what is the cost of diagnosing leukocytosis nos?", "query": "select distinct cost.cost from cost where cost.event_type = 'diagnoses_icd' and cost.event_id in ( select diagnoses_icd.row_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'leukocytosis nos' ) )", "value": {"diagnosis_name": "leukocytosis nos"}, "q_tag": "what is the cost of diagnosing {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of diagnosing {diagnosis_name}?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7eb056c9546022c994817482", "answer": ["4.54"]} {"db_id": "mimic_iii", "question": "what is the diagnosis cost of poisoning-barbiturates?", "template": "what is the cost of diagnosing poisoning-barbiturates?", "query": "select distinct cost.cost from cost where cost.event_type = 'diagnoses_icd' and cost.event_id in ( select diagnoses_icd.row_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'poisoning-barbiturates' ) )", "value": {"diagnosis_name": "poisoning-barbiturates"}, "q_tag": "what is the cost of diagnosing {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of diagnosing {diagnosis_name}?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4ec3e13b87544e15944abee9", "answer": ["5.57"]} {"db_id": "mimic_iii", "question": "how much does diagnosing long-term use of insulin cost?", "template": "what is the cost of diagnosing long-term use of insulin?", "query": "select distinct cost.cost from cost where cost.event_type = 'diagnoses_icd' and cost.event_id in ( select diagnoses_icd.row_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'long-term use of insulin' ) )", "value": {"diagnosis_name": "long-term use of insulin"}, "q_tag": "what is the cost of diagnosing {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the cost of diagnosing {diagnosis_name}?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cbfaa26e3fa44e34967a893b", "answer": ["5.6"]} {"db_id": "mimic_iii", "question": "what ac embl internl jug vein does it stand for?", "template": "what does ac embl internl jug vein stand for?", "query": "select d_icd_diagnoses.long_title from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ac embl internl jug vein' union select d_icd_procedures.long_title from d_icd_procedures where d_icd_procedures.short_title = 'ac embl internl jug vein'", "value": {"abbreviation": "ac embl internl jug vein", "diagnosis_name": "ac embl internl jug vein", "procedure_name": "ac embl internl jug vein"}, "q_tag": "what does {abbreviation} stand for?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what does {abbreviation} stand for?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5b4a882e229bcd3e1136d11d", "answer": ["acute venous embolism and thrombosis of internal jugular veins"]} {"db_id": "mimic_iii", "question": "what exactly does the periph t cell lym abdom stand for?", "template": "what does periph t cell lym abdom stand for?", "query": "select d_icd_diagnoses.long_title from d_icd_diagnoses where d_icd_diagnoses.short_title = 'periph t cell lym abdom' union select d_icd_procedures.long_title from d_icd_procedures where d_icd_procedures.short_title = 'periph t cell lym abdom'", "value": {"abbreviation": "periph t cell lym abdom", "diagnosis_name": "periph t cell lym abdom", "procedure_name": "periph t cell lym abdom"}, "q_tag": "what does {abbreviation} stand for?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what does {abbreviation} stand for?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1b9eec387695cdf573490a84", "answer": ["peripheral t cell lymphoma, intra-abdominal lymph nodes"]} {"db_id": "mimic_iii", "question": "what is acq cardiac septl defect short for?", "template": "what does acq cardiac septl defect stand for?", "query": "select d_icd_diagnoses.long_title from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acq cardiac septl defect' union select d_icd_procedures.long_title from d_icd_procedures where d_icd_procedures.short_title = 'acq cardiac septl defect'", "value": {"abbreviation": "acq cardiac septl defect", "diagnosis_name": "acq cardiac septl defect", "procedure_name": "acq cardiac septl defect"}, "q_tag": "what does {abbreviation} stand for?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what does {abbreviation} stand for?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "889cc7817da4513eec3b43ba", "answer": ["acquired cardiac septal defect"]} {"db_id": "mimic_iii", "question": "what is the unabbreviated version of screening for diphtheria?", "template": "what does screening for diphtheria stand for?", "query": "select d_icd_diagnoses.long_title from d_icd_diagnoses where d_icd_diagnoses.short_title = 'screening for diphtheria' union select d_icd_procedures.long_title from d_icd_procedures where d_icd_procedures.short_title = 'screening for diphtheria'", "value": {"abbreviation": "screening for diphtheria", "diagnosis_name": "screening for diphtheria", "procedure_name": "screening for diphtheria"}, "q_tag": "what does {abbreviation} stand for?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what does {abbreviation} stand for?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ec0679ef8146861f4d842425", "answer": ["screening examination for diphtheria"]} {"db_id": "mimic_iii", "question": "what are the genders of patient 7107?", "template": "what is the gender of patient 7107?", "query": "select patients.gender from patients where patients.subject_id = 7107", "value": {"patient_id": 7107}, "q_tag": "what is the gender of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the gender of patient {patient_id}?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e862af8849ff1c02705da36d", "answer": ["f"]} {"db_id": "mimic_iii", "question": "tell me patient 76005's sex.", "template": "what is the gender of patient 76005?", "query": "select patients.gender from patients where patients.subject_id = 76005", "value": {"patient_id": 76005}, "q_tag": "what is the gender of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the gender of patient {patient_id}?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "cd051a61ff6129f7a8fca20b", "answer": ["m"]} {"db_id": "mimic_iii", "question": "tell me the gender of 27038?", "template": "what is the gender of patient 27038?", "query": "select patients.gender from patients where patients.subject_id = 27038", "value": {"patient_id": 27038}, "q_tag": "what is the gender of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the gender of patient {patient_id}?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3ee83f6be50294b39e219f81", "answer": ["f"]} {"db_id": "mimic_iii", "question": "what is patient 1114's gender?", "template": "what is the gender of patient 1114?", "query": "select patients.gender from patients where patients.subject_id = 1114", "value": {"patient_id": 1114}, "q_tag": "what is the gender of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the gender of patient {patient_id}?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "da04bd0d32301e95cba6d32d", "answer": ["m"]} {"db_id": "mimic_iii", "question": "what is the date of patient 65467's birth?", "template": "what is the date of birth of patient 65467?", "query": "select patients.dob from patients where patients.subject_id = 65467", "value": {"patient_id": 65467}, "q_tag": "what is the date of birth of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the date of birth of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e3d7d9da5f8ad50dfdbb891d", "answer": ["2066-01-08 00:00:00"]} {"db_id": "mimic_iii", "question": "whats the date of birth of patient 31854?", "template": "what is the date of birth of patient 31854?", "query": "select patients.dob from patients where patients.subject_id = 31854", "value": {"patient_id": 31854}, "q_tag": "what is the date of birth of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the date of birth of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "720f9af3fa526ec80231a0b5", "answer": ["2035-12-15 00:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 45601 born?", "template": "what is the date of birth of patient 45601?", "query": "select patients.dob from patients where patients.subject_id = 45601", "value": {"patient_id": 45601}, "q_tag": "what is the date of birth of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the date of birth of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bcaa008ce63c3f6b4920cf30", "answer": ["2023-02-08 00:00:00"]} {"db_id": "mimic_iii", "question": "when is the birth date of patient 61527?", "template": "what is the date of birth of patient 61527?", "query": "select patients.dob from patients where patients.subject_id = 61527", "value": {"patient_id": 61527}, "q_tag": "what is the date of birth of patient {patient_id}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the date of birth of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ae422ccd015075b5f6cf2b58", "answer": ["2066-11-27 00:00:00"]} {"db_id": "mimic_iii", "question": "tell me the length of the hospital stay of the last hospital stay of patient 3745.", "template": "what was the last length of hospital stay of patient 3745?", "query": "select strftime('%j',admissions.dischtime) - strftime('%j',admissions.admittime) from admissions where admissions.subject_id = 3745 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 3745}, "q_tag": "what was the [time_filter_exact1] length of hospital stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of hospital stay of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b5adb7158d2d1a83114b91e2", "answer": ["2"]} {"db_id": "mimic_iii", "question": "calculate patient 93104's length of stay of the last hospital stay that occurred.", "template": "what was the last length of hospital stay of patient 93104?", "query": "select strftime('%j',admissions.dischtime) - strftime('%j',admissions.admittime) from admissions where admissions.subject_id = 93104 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 93104}, "q_tag": "what was the [time_filter_exact1] length of hospital stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of hospital stay of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "412448b9cbdcb9e693ff755f", "answer": ["6"]} {"db_id": "mimic_iii", "question": "show me patient 28020's length of stay of the last hospital stay.", "template": "what was the last length of hospital stay of patient 28020?", "query": "select strftime('%j',admissions.dischtime) - strftime('%j',admissions.admittime) from admissions where admissions.subject_id = 28020 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 28020}, "q_tag": "what was the [time_filter_exact1] length of hospital stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of hospital stay of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "49a1a5085bf6f268cb7ec74a", "answer": ["6"]} {"db_id": "mimic_iii", "question": "show me patient 62298's los of the last hospital stay.", "template": "what was the last length of hospital stay of patient 62298?", "query": "select strftime('%j',admissions.dischtime) - strftime('%j',admissions.admittime) from admissions where admissions.subject_id = 62298 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 62298}, "q_tag": "what was the [time_filter_exact1] length of hospital stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of hospital stay of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "700fedcfe016942885610221", "answer": ["3"]} {"db_id": "mimic_iii", "question": "get me patient 63781's los of the last hospital stay.", "template": "what was the last length of hospital stay of patient 63781?", "query": "select strftime('%j',admissions.dischtime) - strftime('%j',admissions.admittime) from admissions where admissions.subject_id = 63781 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 63781}, "q_tag": "what was the [time_filter_exact1] length of hospital stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of hospital stay of patient {patient_id}?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e14a51e59dbc3f95d46f63b5", "answer": ["9"]} {"db_id": "mimic_iii", "question": "what is the weight variation of patient 2518 last measured on the current hospital visit compared to the first value measured on the current hospital visit?", "template": "what is the change in the weight of patient 2518 from the last value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 2518 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 2518 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 2518}, "q_tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "rel-hosp-cur", "", "exact-first", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-hosp-cur] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "259f31d3d284515e3b821f84", "answer": ["27.400001525878878"]} {"db_id": "mimic_iii", "question": "what difference is there in patient 20166's weight second measured on the first hospital visit compared to the first value measured on the first hospital visit?", "template": "what is the change in the weight of patient 20166 from the second value measured on the first hospital visit compared to the first value measured on the first hospital visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20166 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 offset 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20166 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 20166}, "q_tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-first", "rel-hosp-first", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-hosp-first] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "506c2d1276c5ea6dd7370a7f", "answer": ["-0.40000152587890625"]} {"db_id": "mimic_iii", "question": "what is patient 13806's weight difference from the last value measured on the last hospital visit compared to the first value measured on the last hospital visit?", "template": "what is the change in the weight of patient 13806 from the last value measured on the last hospital visit compared to the first value measured on the last hospital visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13806 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13806 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 13806}, "q_tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-last", "rel-hosp-last", "", "exact-first", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-hosp-last] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-last]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3b28f16af6609dcd90643be6", "answer": ["2.0"]} {"db_id": "mimic_iii", "question": "what is the weight difference of patient 30826 from the last value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "template": "what is the change in the weight of patient 30826 from the last value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30826 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30826 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 30826}, "q_tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "rel-hosp-cur", "", "exact-first", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-hosp-cur] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6ba76307ad83b81dab171438", "answer": ["43.29999542236327"]} {"db_id": "mimic_iii", "question": "what is the weight change of patient 12927 from the second value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "template": "what is the change in the weight of patient 12927 from the second value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12927 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 offset 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12927 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 12927}, "q_tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "rel-hosp-cur", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the weight of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-hosp-cur] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c77c0545eb36a902a51a0911", "answer": ["39.80000305175781"]} {"db_id": "mimic_iii", "question": "what's the potassium change/difference of patient 99747 second measured on the last hospital visit compared to the first value measured on the last hospital visit?", "template": "what is the change in the value of potassium of patient 99747 from the second value measured on the last hospital visit compared to the first value measured on the last hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 99747 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) order by labevents.charttime asc limit 1 offset 1 ) - ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 99747 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) order by labevents.charttime asc limit 1 )", "value": {"patient_id": 99747, "lab_name": "potassium"}, "q_tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-last", "rel-hosp-last", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-hosp-last] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d51eacd8ebf7ea24ac94c111", "answer": ["-0.5"]} {"db_id": "mimic_iii", "question": "how much difference there is among patient 71558's potassium change second measured on the current hospital visit compared to the value first measured on the current hospital visit?", "template": "what is the change in the value of potassium of patient 71558 from the second value measured on the current hospital visit compared to the first value measured on the current hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 71558 and admissions.dischtime is null ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) order by labevents.charttime asc limit 1 offset 1 ) - ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 71558 and admissions.dischtime is null ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) order by labevents.charttime asc limit 1 )", "value": {"patient_id": 71558, "lab_name": "potassium"}, "q_tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "rel-hosp-cur", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-hosp-cur] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "99e913c0b505736539b60b77", "answer": ["1.9000000000000004"]} {"db_id": "mimic_iii", "question": "what is patient 98235's difference in hemoglobin from the last value measured on the first hospital visit compared to the first value measured on the first hospital visit?", "template": "what is the change in the value of hemoglobin of patient 98235 from the last value measured on the first hospital visit compared to the first value measured on the first hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 98235 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'hemoglobin' ) order by labevents.charttime desc limit 1 ) - ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 98235 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'hemoglobin' ) order by labevents.charttime asc limit 1 )", "value": {"patient_id": 98235, "lab_name": "hemoglobin"}, "q_tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-first", "rel-hosp-first", "", "exact-first", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-hosp-first] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6404a7848b08c1bd12dff4d8", "answer": ["-3.3000000000000007"]} {"db_id": "mimic_iii", "question": "what is the potassium difference of patient 47746 from the value measured at 2103-09-16 14:24:00 compared to the value measured at 2103-09-12 04:24:00?", "template": "what is the change in the value of potassium of patient 47746 from the value measured at 2103-09-16 14:24:00 compared to the value measured at 2103-09-12 04:24:00?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47746 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) and labevents.charttime = '2103-09-16 14:24:00' ) - ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47746 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) and labevents.charttime = '2103-09-12 04:24:00' )", "value": {"patient_id": 47746, "lab_name": "potassium"}, "q_tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["", "", "", "exact-default", "exact-default"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2:exact-default] value measured [time_filter_global2:null] compared to the [time_filter_exact1:exact-default] value measured [time_filter_global1:null]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9b548026218e4baffd6d0c4c", "answer": ["0.5"]} {"db_id": "mimic_iii", "question": "how much does patient 26195's pco2 differ from the value measured at 2104-02-08 14:00:00 compared to the value measured at 2104-02-08 13:08:00?", "template": "what is the change in the value of pco2 of patient 26195 from the value measured at 2104-02-08 14:00:00 compared to the value measured at 2104-02-08 13:08:00?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26195 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pco2' ) and labevents.charttime = '2104-02-08 14:00:00' ) - ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26195 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pco2' ) and labevents.charttime = '2104-02-08 13:08:00' )", "value": {"patient_id": 26195, "lab_name": "pco2"}, "q_tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["", "", "", "exact-default", "exact-default"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the value of {lab_name} of patient {patient_id} from the [time_filter_exact2:exact-default] value measured [time_filter_global2:null] compared to the [time_filter_exact1:exact-default] value measured [time_filter_global1:null]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bf1fb18f8c33093f41af877d", "answer": ["7.0"]} {"db_id": "mimic_iii", "question": "how much difference of arterial bp [systolic] was there in patient 30235 last measured on the first icu visit compared to the second to last value measured on the first icu visit?", "template": "what is the change in the arterial bp [systolic] of patient 30235 from the last value measured on the first icu visit compared to the second to last value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30235 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30235 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 offset 1 )", "value": {"patient_id": 30235, "vital_name": "arterial bp [systolic]"}, "q_tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-icu-first] compared to the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fe24c3f0e839fd7ef75abd6e", "answer": ["11.0"]} {"db_id": "mimic_iii", "question": "what is the variation of patient 29540's heart rate measured at 2101-04-21 16:00:00 compared to the value measured at 2101-04-21 15:00:00?", "template": "what is the change in the heart rate of patient 29540 from the value measured at 2101-04-21 16:00:00 compared to the value measured at 2101-04-21 15:00:00?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29540 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and chartevents.charttime = '2101-04-21 16:00:00' ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29540 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and chartevents.charttime = '2101-04-21 15:00:00' )", "value": {"patient_id": 29540, "vital_name": "heart rate"}, "q_tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["", "", "", "exact-default", "exact-default"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2:exact-default] value measured [time_filter_global2:null] compared to the [time_filter_exact1:exact-default] value measured [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ced20a82d2035f9bca26742c", "answer": ["2.0"]} {"db_id": "mimic_iii", "question": "what is patient 18866's difference in heart rate from the second value measured on the current icu visit compared to the first value measured on the current icu visit?", "template": "what is the change in the heart rate of patient 18866 from the second value measured on the current icu visit compared to the first value measured on the current icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18866 ) and icustays.outtime is null ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 offset 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18866 ) and icustays.outtime is null ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"vital_name": "heart rate", "patient_id": 18866}, "q_tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-cur", "rel-icu-cur", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-icu-cur] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "070a610fa83329ae7143eb02", "answer": ["15.0"]} {"db_id": "mimic_iii", "question": "how much does patient 19473's arterial bp [diastolic] change from the last value measured on the first intensive care unit visit compared to the second to last value measured on the first intensive care unit visit?", "template": "what is the change in the arterial bp [diastolic] of patient 19473 from the last value measured on the first icu visit compared to the second to last value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19473 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19473 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 offset 1 )", "value": {"patient_id": 19473, "vital_name": "arterial bp [diastolic]"}, "q_tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2:exact-last] value measured [time_filter_global2:rel-icu-first] compared to the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9a02007ad168826fde384cd5", "answer": ["19.0"]} {"db_id": "mimic_iii", "question": "what is patient 10624's change in heart rate from the second value measured on the first icu visit compared to the first value measured on the first icu visit?", "template": "what is the change in the heart rate of patient 10624 from the second value measured on the first icu visit compared to the first value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10624 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 offset 1 ) - ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10624 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"patient_id": 10624, "vital_name": "heart rate"}, "q_tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2] value measured [time_filter_global2] compared to the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-first", "exact-second"], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the change in the {vital_name} of patient {patient_id} from the [time_filter_exact2:exact-second] value measured [time_filter_global2:rel-icu-first] compared to the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "790ef481f30d03994d883540", "answer": ["2.0"]} {"db_id": "mimic_iii", "question": "was the rdw value of patient 273 second measured on the last hospital visit greater than that first measured on the last hospital visit?", "template": "is the value of rdw of patient 273 second measured on the last hospital visit greater than the first value measured on the last hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 273 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'rdw' ) order by labevents.charttime asc limit 1 offset 1 ) > ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 273 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'rdw' ) order by labevents.charttime asc limit 1 )", "value": {"lab_name": "rdw", "patient_id": 273}, "q_tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-last", "rel-hosp-last", "", "exact-first", "exact-second"], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2:exact-second] measured [time_filter_global2:rel-hosp-last] [comparison:greater] than the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "826b99d4dd387ea333d9e77e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is the amylase of patient 16088 second measured on the first hospital visit less than it was first measured on the first hospital visit?", "template": "is the value of amylase of patient 16088 second measured on the first hospital visit less than the first value measured on the first hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16088 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'amylase' ) order by labevents.charttime asc limit 1 offset 1 ) < ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16088 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'amylase' ) order by labevents.charttime asc limit 1 )", "value": {"lab_name": "amylase", "patient_id": 16088}, "q_tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-first", "rel-hosp-first", "", "exact-first", "exact-second"], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2:exact-second] measured [time_filter_global2:rel-hosp-first] [comparison:less] than the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a101cc5a0ca4e3411f81df0b", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is the rdw of patient 15119 last measured on the last hospital visit greater than the second to last value measured on the last hospital visit?", "template": "is the value of rdw of patient 15119 last measured on the last hospital visit greater than the second to last value measured on the last hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15119 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'rdw' ) order by labevents.charttime desc limit 1 ) > ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15119 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'rdw' ) order by labevents.charttime desc limit 1 offset 1 )", "value": {"patient_id": 15119, "lab_name": "rdw"}, "q_tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-last", "rel-hosp-last", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2:exact-last] measured [time_filter_global2:rel-hosp-last] [comparison:greater] than the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6f6d90e8764e9e8990f37eec", "answer": ["0"]} {"db_id": "mimic_iii", "question": "did patient 96774 have a greater glucose value last measured on the first hospital visit than the second to last value measured on the first hospital visit?", "template": "is the value of glucose of patient 96774 last measured on the first hospital visit greater than the second to last value measured on the first hospital visit?", "query": "select ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96774 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'glucose' ) order by labevents.charttime desc limit 1 ) > ( select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96774 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'glucose' ) order by labevents.charttime desc limit 1 offset 1 )", "value": {"lab_name": "glucose", "patient_id": 96774}, "q_tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-hosp-first", "rel-hosp-first", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "is the value of {lab_name} of patient {patient_id} [time_filter_exact2:exact-last] measured [time_filter_global2:rel-hosp-first] [comparison:greater] than the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5c9b5009dc98f4bfc09fbe02", "answer": ["0"]} {"db_id": "mimic_iii", "question": "compared to last measured on the first icu visit, was patient 14054's arterial bp [systolic] greater than the value first measured on the first icu visit?", "template": "is the arterial bp [systolic] of patient 14054 last measured on the first icu visit greater than the first value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14054 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) > ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14054 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"vital_name": "arterial bp [systolic]", "patient_id": 14054}, "q_tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-first", "exact-last"], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2:exact-last] measured [time_filter_global2:rel-icu-first] [comparison:greater] than the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f76c9c09d8c7997e1976dca1", "answer": ["0"]} {"db_id": "mimic_iii", "question": "the arterial bp [diastolic] of patient 26262 last measured on the last icu visit was less than second to last measured on the last icu visit?", "template": "is the arterial bp [diastolic] of patient 26262 last measured on the last icu visit less than the second to last value measured on the last icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26262 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) < ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26262 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 offset 1 )", "value": {"patient_id": 26262, "vital_name": "arterial bp [diastolic]"}, "q_tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-last", "rel-icu-last", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2:exact-last] measured [time_filter_global2:rel-icu-last] [comparison:less] than the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-icu-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d9897de6c103126722898e42", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is the value of patient 1205's last arterial bp [systolic] measured on the first intensive care unit visit less than the second to last value measured on the first intensive care unit visit?", "template": "is the arterial bp [systolic] of patient 1205 last measured on the first icu visit less than the second to last value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1205 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 ) < ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1205 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1 offset 1 )", "value": {"vital_name": "arterial bp [systolic]", "patient_id": 1205}, "q_tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-second_to_last", "exact-last"], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2:exact-last] measured [time_filter_global2:rel-icu-first] [comparison:less] than the [time_filter_exact1:exact-second_to_last] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "85508955ab5fa9bb42555f28", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 20165 have a greater arterial bp mean value second measured on the first intensive care unit visit compared to the first value measured on the first intensive care unit visit?", "template": "is the arterial bp mean of patient 20165 second measured on the first icu visit greater than the first value measured on the first icu visit?", "query": "select ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20165 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 offset 1 ) > ( select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20165 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1 )", "value": {"vital_name": "arterial bp mean", "patient_id": 20165}, "q_tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2] measured [time_filter_global2] [comparison] than the [time_filter_exact1] value measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "rel-icu-first", "", "exact-first", "exact-second"], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "is the {vital_name} of patient {patient_id} [time_filter_exact2:exact-second] measured [time_filter_global2:rel-icu-first] [comparison:greater] than the [time_filter_exact1:exact-first] value measured [time_filter_global1:rel-icu-first]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b6964286fe684fb553049ecb", "answer": ["0"]} {"db_id": "mimic_iii", "question": "what patient 42757's age is during their first hospital encounter?", "template": "what was the age of patient 42757 on the first hospital visit?", "query": "select admissions.age from admissions where admissions.subject_id = 42757 and admissions.dischtime is not null order by admissions.admittime asc limit 1", "value": {"patient_id": 42757}, "q_tag": "what is_verb the age of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the age of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "cdae8f6f83dafa8e52ee609a", "answer": ["59"]} {"db_id": "mimic_iii", "question": "what age was patient 12885 on their last hospital visit?", "template": "what was the age of patient 12885 on the last hospital visit?", "query": "select admissions.age from admissions where admissions.subject_id = 12885 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 12885}, "q_tag": "what is_verb the age of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the age of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f77e428684127ec1d91482ae", "answer": ["33"]} {"db_id": "mimic_iii", "question": "tell me the age of patient 23436 during their current hospital encounter?", "template": "what is the age of patient 23436 on the current hospital visit?", "query": "select admissions.age from admissions where admissions.subject_id = 23436 and admissions.dischtime is null", "value": {"patient_id": 23436}, "q_tag": "what is_verb the age of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the age of patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "477a33442f2f525d86cb8fbe", "answer": ["73"]} {"db_id": "mimic_iii", "question": "on this hospital encounter, how old is patient 13054?", "template": "what is the age of patient 13054 on the current hospital visit?", "query": "select admissions.age from admissions where admissions.subject_id = 13054 and admissions.dischtime is null", "value": {"patient_id": 13054}, "q_tag": "what is_verb the age of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the age of patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "544e035dfee82374b59d845d", "answer": ["65"]} {"db_id": "mimic_iii", "question": "what is the name of the insurance in patient 57050 on this hospital encounter?", "template": "what is the name of insurance of patient 57050 on the current hospital visit?", "query": "select admissions.insurance from admissions where admissions.subject_id = 57050 and admissions.dischtime is null", "value": {"patient_id": 57050}, "q_tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "94d38357deca3b21b33040bf", "answer": ["medicare"]} {"db_id": "mimic_iii", "question": "what is the name of the insurance of patient 75581 on the first hospital encounter.", "template": "what was the name of insurance of patient 75581 on the first hospital visit?", "query": "select admissions.insurance from admissions where admissions.subject_id = 75581 and admissions.dischtime is not null order by admissions.admittime asc limit 1", "value": {"patient_id": 75581}, "q_tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bafe1dd6d29d3cd678e1e7b5", "answer": ["private"]} {"db_id": "mimic_iii", "question": "what is patient 88409's insurance on their last hospital encounter?", "template": "what was the name of insurance of patient 88409 on the last hospital visit?", "query": "select admissions.insurance from admissions where admissions.subject_id = 88409 and admissions.dischtime is not null order by admissions.admittime desc limit 1", "value": {"patient_id": 88409}, "q_tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6ed37d7822d026734c0e8d4b", "answer": ["government"]} {"db_id": "mimic_iii", "question": "what is patient 59941's insurance name when they visited the hospital first time?", "template": "what was the name of insurance of patient 59941 on the first hospital visit?", "query": "select admissions.insurance from admissions where admissions.subject_id = 59941 and admissions.dischtime is not null order by admissions.admittime asc limit 1", "value": {"patient_id": 59941}, "q_tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the name of insurance of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "99c5bf27bea36ffc3904355f", "answer": ["medicare"]} {"db_id": "mimic_iii", "question": "what was the married status of patient 40707 during this hospital visit?", "template": "what is the marital status of patient 40707 on the current hospital visit?", "query": "select admissions.marital_status from admissions where admissions.subject_id = 40707 and admissions.dischtime is null", "value": {"patient_id": 40707}, "q_tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "869eec08c2a9e0704f0b8488", "answer": ["married"]} {"db_id": "mimic_iii", "question": "what did patient 72032's marital status in their current hospital encounter?", "template": "what is the marital status of patient 72032 on the current hospital visit?", "query": "select admissions.marital_status from admissions where admissions.subject_id = 72032 and admissions.dischtime is null", "value": {"patient_id": 72032}, "q_tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "be4135603f17c3fd5e2177fd", "answer": ["married"]} {"db_id": "mimic_iii", "question": "when they came to the hospital first time, what is the marital status of patient 28343?", "template": "what was the marital status of patient 28343 on the first hospital visit?", "query": "select admissions.marital_status from admissions where admissions.subject_id = 28343 and admissions.dischtime is not null order by admissions.admittime asc limit 1", "value": {"patient_id": 28343}, "q_tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9030ad75d8a1741ba1526890", "answer": ["single"]} {"db_id": "mimic_iii", "question": "what is patient 43052's marital status on their first hospital encounter?", "template": "what was the marital status of patient 43052 on the first hospital visit?", "query": "select admissions.marital_status from admissions where admissions.subject_id = 43052 and admissions.dischtime is not null order by admissions.admittime asc limit 1", "value": {"patient_id": 43052}, "q_tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the marital status of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "af5b6afacd330dfda46e2b39", "answer": ["married"]} {"db_id": "mimic_iii", "question": "tell me the percentile of mcv 97.0 in patients of the same age as patient 2127 during the last hospital visit?", "template": "what percentile is the value of 97.0 in a mcv lab test among patients of the same age as patient 2127 on the last hospital visit?", "query": "select distinct t1.c1 from ( select labevents.valuenum, percent_rank() over ( order by labevents.valuenum ) as c1 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'mcv' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age = ( select admissions.age from admissions where admissions.subject_id = 2127 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) ) as t1 where t1.valuenum = 97.0", "value": {"patient_id": 2127, "lab_name": "mcv", "lab_value": "97.0"}, "q_tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "748e2e15eba6352fa08f65dc", "answer": ["0.8565573770491803"]} {"db_id": "mimic_iii", "question": "what is the percentile of 1.1 in a creatinine lab test that given the same age of patient 25814 in this hospital visit?", "template": "what percentile is the value of 1.1 in a creatinine lab test among patients of the same age as patient 25814 on the current hospital visit?", "query": "select distinct t1.c1 from ( select labevents.valuenum, percent_rank() over ( order by labevents.valuenum ) as c1 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatinine' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age = ( select admissions.age from admissions where admissions.subject_id = 25814 and admissions.dischtime is null ) ) ) as t1 where t1.valuenum = 1.1", "value": {"patient_id": 25814, "lab_name": "creatinine", "lab_value": "1.1"}, "q_tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9a7aee432d34efa9a3dc0437", "answer": ["0.5586592178770949"]} {"db_id": "mimic_iii", "question": "what is the percentile of 26.5 in a hematocrit lab test given the same age of patient 4495 during their first hospital visit?", "template": "what percentile is the value of 26.5 in a hematocrit lab test among patients of the same age as patient 4495 on the first hospital visit?", "query": "select distinct t1.c1 from ( select labevents.valuenum, percent_rank() over ( order by labevents.valuenum ) as c1 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'hematocrit' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age = ( select admissions.age from admissions where admissions.subject_id = 4495 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) ) as t1 where t1.valuenum = 26.5", "value": {"patient_id": 4495, "lab_name": "hematocrit", "lab_value": "26.5"}, "q_tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "00c2a163228f6a29ff1bd7ec", "answer": ["0.1974025974025974"]} {"db_id": "mimic_iii", "question": "what percentile is red blood cells 3.61 among patients of the same age as patient 15209 during their current hospital visit?", "template": "what percentile is the value of 3.61 in a red blood cells lab test among patients of the same age as patient 15209 on the current hospital visit?", "query": "select distinct t1.c1 from ( select labevents.valuenum, percent_rank() over ( order by labevents.valuenum ) as c1 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'red blood cells' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age = ( select admissions.age from admissions where admissions.subject_id = 15209 and admissions.dischtime is null ) ) ) as t1 where t1.valuenum = 3.61", "value": {"patient_id": 15209, "lab_name": "red blood cells", "lab_value": "3.61"}, "q_tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what percentile is the value of {lab_value} in a {lab_name} lab test among patients of the same age as patient {patient_id} [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c5fd02e730a44b8b1ae22a03", "answer": ["0.6743119266055045"]} {"db_id": "mimic_iii", "question": "how many days have gone since patient 60136 was admitted to the hospital for?", "template": "how many days have passed since patient 60136 was admitted to the hospital currently?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',admissions.admittime) ) from admissions where admissions.subject_id = 60136 and admissions.dischtime is null", "value": {"patient_id": 60136}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the hospital currently?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since patient {patient_id} was admitted to the hospital currently?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "04858a33a81c186f3ad7193a", "answer": ["-355"]} {"db_id": "mimic_iii", "question": "how many days has it been since the admission of patient 11826 to the hospital?", "template": "how many days have passed since patient 11826 was admitted to the hospital currently?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',admissions.admittime) ) from admissions where admissions.subject_id = 11826 and admissions.dischtime is null", "value": {"patient_id": 11826}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the hospital currently?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since patient {patient_id} was admitted to the hospital currently?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3b73985cd0d7e3df4ed47b7d", "answer": ["-362"]} {"db_id": "mimic_iii", "question": "how many days has it been since patient 72032 was admitted to the hospital currently?", "template": "how many days have passed since patient 72032 was admitted to the hospital currently?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',admissions.admittime) ) from admissions where admissions.subject_id = 72032 and admissions.dischtime is null", "value": {"patient_id": 72032}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the hospital currently?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since patient {patient_id} was admitted to the hospital currently?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5a1fa001acd25295f4564a8e", "answer": ["-364"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 31854 was admitted to the hospital?", "template": "how many hours have passed since patient 31854 was admitted to the hospital currently?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',admissions.admittime) ) from admissions where admissions.subject_id = 31854 and admissions.dischtime is null", "value": {"patient_id": 31854}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the hospital currently?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since patient {patient_id} was admitted to the hospital currently?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "69026cd9f76b23d902a18162", "answer": ["-8640"]} {"db_id": "mimic_iii", "question": "how many days have passed since patient 12775 was admitted to icu?", "template": "how many days have passed since patient 12775 was admitted to the icu currently?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',icustays.intime) ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12775 ) and icustays.outtime is null", "value": {"patient_id": 12775}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the icu currently?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since patient {patient_id} was admitted to the icu currently?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bc83755b522d4164776814c1", "answer": ["-357"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 31854 was admitted to the intensive care unit?", "template": "how many hours have passed since patient 31854 was admitted to the icu currently?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',icustays.intime) ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31854 ) and icustays.outtime is null", "value": {"patient_id": 31854}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the icu currently?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since patient {patient_id} was admitted to the icu currently?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3743a34b15837aa5ce9f3733", "answer": ["-8640"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since patient 5828 was admitted to the intensive care unit currently?", "template": "how many days have passed since patient 5828 was admitted to the icu currently?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',icustays.intime) ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5828 ) and icustays.outtime is null", "value": {"patient_id": 5828}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the icu currently?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since patient {patient_id} was admitted to the icu currently?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cbf5ec0a89d3f76145753975", "answer": ["-359"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 90663 went to the icu?", "template": "how many hours have passed since patient 90663 was admitted to the icu currently?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',icustays.intime) ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 90663 ) and icustays.outtime is null", "value": {"patient_id": 90663}, "q_tag": "how many [unit_count] have passed since patient {patient_id} was admitted to the icu currently?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since patient {patient_id} was admitted to the icu currently?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "103b500466723317f7a42fb3", "answer": ["-8688"]} {"db_id": "mimic_iii", "question": "how many days have it elapsed since the last time patient 31854 stayed in the careunit ccu during this hospital encounter?", "template": "how many days have passed since the last time patient 31854 stayed in careunit ccu on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31854 and admissions.dischtime is null ) and transfers.careunit = 'ccu' order by transfers.intime desc limit 1", "value": {"patient_id": 31854, "careunit": "ccu"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ff1f280f0b35eb3ef4cc31f5", "answer": ["-360"]} {"db_id": "mimic_iii", "question": "how many hours have it been since the last time that patient 17667 stayed in careunit micu during their current hospital visit?", "template": "how many hours have passed since the last time patient 17667 stayed in careunit micu on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17667 and admissions.dischtime is null ) and transfers.careunit = 'micu' order by transfers.intime desc limit 1", "value": {"careunit": "micu", "patient_id": 17667}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4874d6463c7cb13b713bcf01", "answer": ["-8640"]} {"db_id": "mimic_iii", "question": "how many hours has it been since the last time patient 14154 stayed in careunit csru during their current hospital encounter?", "template": "how many hours have passed since the last time patient 14154 stayed in careunit csru on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14154 and admissions.dischtime is null ) and transfers.careunit = 'csru' order by transfers.intime desc limit 1", "value": {"patient_id": 14154, "careunit": "csru"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "daf5efa67d6122dbd7263d0b", "answer": ["-8712"]} {"db_id": "mimic_iii", "question": "how many hours have elapsed since the first time patient 808 stayed in careunit sicu in this hospital encounter?", "template": "how many hours have passed since the first time patient 808 stayed in careunit sicu on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 808 and admissions.dischtime is null ) and transfers.careunit = 'sicu' order by transfers.intime asc limit 1", "value": {"careunit": "sicu", "patient_id": 808}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8b6b885b88596cb63ebc85a0", "answer": ["-8496"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 31482's last stay in careunit tsicu on their current hospital encounter?", "template": "how many hours have passed since the last time patient 31482 stayed in careunit tsicu on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31482 and admissions.dischtime is null ) and transfers.careunit = 'tsicu' order by transfers.intime desc limit 1", "value": {"patient_id": 31482, "careunit": "tsicu"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in careunit {careunit} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8ad1d395e9eb79fc87bdf02b", "answer": ["-8688"]} {"db_id": "mimic_iii", "question": "how many days have passed since patient 10855 stayed in the ward 50 in their current hospital visit for the last time?", "template": "how many days have passed since the last time patient 10855 stayed in ward 50 on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10855 and admissions.dischtime is null ) ) and transfers.wardid = 50 order by transfers.intime desc limit 1", "value": {"patient_id": 10855, "ward_id": 50.0}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "351bad6adb0efaf7c7bcfae7", "answer": ["-344"]} {"db_id": "mimic_iii", "question": "how many hours have elapsed since patient 40707's last stay in the ward 33 during this hospital encounter?", "template": "how many hours have passed since the last time patient 40707 stayed in ward 33 on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40707 and admissions.dischtime is null ) ) and transfers.wardid = 33 order by transfers.intime desc limit 1", "value": {"ward_id": 33.0, "patient_id": 40707}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3579b28b3e1787588622e5f1", "answer": ["-8664"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since the first time patient 25733 stayed in ward 52 on their current hospital encounter?", "template": "how many days have passed since the first time patient 25733 stayed in ward 52 on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25733 and admissions.dischtime is null ) ) and transfers.wardid = 52 order by transfers.intime asc limit 1", "value": {"ward_id": 52.0, "patient_id": 25733}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4ce744552d6272e0d69a183c", "answer": ["-363"]} {"db_id": "mimic_iii", "question": "how many hours has it been since patient 96833's last stay in ward 33 during the current hospital visit?", "template": "how many hours have passed since the last time patient 96833 stayed in ward 33 on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96833 and admissions.dischtime is null ) ) and transfers.wardid = 33 order by transfers.intime desc limit 1", "value": {"ward_id": 33.0, "patient_id": 96833}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8716031214e02c82a91ed335", "answer": ["-8448"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 90663's first stay in ward 12 during their current hospital encounter?", "template": "how many hours have passed since the first time patient 90663 stayed in ward 12 on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',transfers.intime) ) from transfers where transfers.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 90663 and admissions.dischtime is null ) ) and transfers.wardid = 12 order by transfers.intime asc limit 1", "value": {"ward_id": 12.0, "patient_id": 90663}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} stayed in ward {ward_id} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d5a0ae0e01aeb3d0f1f7cbfa", "answer": ["-8688"]} {"db_id": "mimic_iii", "question": "how many days have there been since patient 57050's last sec mal neo brain/spine diagnosis during this hospital encounter?", "template": "how many days have passed since the last time patient 57050 was diagnosed with sec mal neo brain/spine on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',diagnoses_icd.charttime) ) from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'sec mal neo brain/spine' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 57050 and admissions.dischtime is null ) order by diagnoses_icd.charttime desc limit 1", "value": {"diagnosis_name": "sec mal neo brain/spine", "patient_id": 57050}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "45a8238da07e7ec75a70d488", "answer": ["-357"]} {"db_id": "mimic_iii", "question": "how many hours has it been since the last time patient 94229 was diagnosed in the current hospital visit with empyema w/o fistula?", "template": "how many hours have passed since the last time patient 94229 was diagnosed with empyema w/o fistula on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',diagnoses_icd.charttime) ) from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'empyema w/o fistula' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 94229 and admissions.dischtime is null ) order by diagnoses_icd.charttime desc limit 1", "value": {"diagnosis_name": "empyema w/o fistula", "patient_id": 94229}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e498eb531f0f82b806f3640f", "answer": ["-8544"]} {"db_id": "mimic_iii", "question": "how many hours has it been since the first time patient 60136 was diagnosed with ac on chr diast hrt fail during their current hospital visit?", "template": "how many hours have passed since the first time patient 60136 was diagnosed with ac on chr diast hrt fail on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',diagnoses_icd.charttime) ) from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ac on chr diast hrt fail' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60136 and admissions.dischtime is null ) order by diagnoses_icd.charttime asc limit 1", "value": {"diagnosis_name": "ac on chr diast hrt fail", "patient_id": 60136}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b2ab91eb6d9bc8c020056613", "answer": ["-8520"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since the last time patient 12927 was diagnosed with atrial flutter on the current hospital encounter?", "template": "how many days have passed since the last time patient 12927 was diagnosed with atrial flutter on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',diagnoses_icd.charttime) ) from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'atrial flutter' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12927 and admissions.dischtime is null ) order by diagnoses_icd.charttime desc limit 1", "value": {"patient_id": 12927, "diagnosis_name": "atrial flutter"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3111c4b1cbba583537bc2ae9", "answer": ["-358"]} {"db_id": "mimic_iii", "question": "how many hours have passed since patient 97330 was last diagnosed with renal agenesis on their current hospital encounter?", "template": "how many hours have passed since the last time patient 97330 was diagnosed with renal agenesis on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',diagnoses_icd.charttime) ) from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'renal agenesis' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 97330 and admissions.dischtime is null ) order by diagnoses_icd.charttime desc limit 1", "value": {"diagnosis_name": "renal agenesis", "patient_id": 97330}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was diagnosed with {diagnosis_name} on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2c1ced54f971d782651b8563", "answer": ["-8520"]} {"db_id": "mimic_iii", "question": "how many days have passed since patient 82132 last received prescriptions for trazodone on the current hospital encounter?", "template": "how many days have passed since the last time patient 82132 was prescribed trazodone on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 82132 and admissions.dischtime is null ) and prescriptions.drug = 'trazodone' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 82132, "drug_name": "trazodone"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af91078513b79920d763be43", "answer": ["-362"]} {"db_id": "mimic_iii", "question": "how many days is it since patient 40707's first d10w prescription in the current hospital visit?", "template": "how many days have passed since the first time patient 40707 was prescribed d10w on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40707 and admissions.dischtime is null ) and prescriptions.drug = 'd10w' order by prescriptions.startdate asc limit 1", "value": {"drug_name": "d10w", "patient_id": 40707}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ffa391be40d2213402c990cb", "answer": ["-361"]} {"db_id": "mimic_iii", "question": "how many hours has it been since patient 2518 was first prescribed bupropion during the current hospital encounter?", "template": "how many hours have passed since the first time patient 2518 was prescribed bupropion on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 2518 and admissions.dischtime is null ) and prescriptions.drug = 'bupropion' order by prescriptions.startdate asc limit 1", "value": {"drug_name": "bupropion", "patient_id": 2518}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "03f2452bc4d6ff47987eb4bc", "answer": ["-8592"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since patient 10855's first senna prescription during their current hospital visit?", "template": "how many days have passed since the first time patient 10855 was prescribed senna on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10855 and admissions.dischtime is null ) and prescriptions.drug = 'senna' order by prescriptions.startdate asc limit 1", "value": {"patient_id": 10855, "drug_name": "senna"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "25da8460cbad9d3c5b85be45", "answer": ["-348"]} {"db_id": "mimic_iii", "question": "how many days have passed since patient 76327 was last prescribed docusate sodium on the current hospital encounter?", "template": "how many days have passed since the last time patient 76327 was prescribed docusate sodium on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',prescriptions.startdate) ) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 76327 and admissions.dischtime is null ) and prescriptions.drug = 'docusate sodium' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 76327, "drug_name": "docusate sodium"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} was prescribed {drug_name} on the current hospital visit?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "56a72618ec89cadd37176e1c", "answer": ["-363"]} {"db_id": "mimic_iii", "question": "on this hospital encounter how many hours has it been since when patient 95892 received a pt lab test for the first time?", "template": "how many hours have passed since the first time patient 95892 received a pt lab test on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',labevents.charttime) ) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pt' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 95892 and admissions.dischtime is null ) order by labevents.charttime asc limit 1", "value": {"lab_name": "pt", "patient_id": 95892}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "64a975e6802b099a9bb02c35", "answer": ["-8664"]} {"db_id": "mimic_iii", "question": "how many hours does it have been since patient 19428 last received a anion gap lab test in the current hospital encounter?", "template": "how many hours have passed since the last time patient 19428 received a anion gap lab test on the current hospital visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',labevents.charttime) ) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'anion gap' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19428 and admissions.dischtime is null ) order by labevents.charttime desc limit 1", "value": {"lab_name": "anion gap", "patient_id": 19428}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "30464c358ee4fb9969625cdd", "answer": ["-8736"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since patient 22648 first received a creatinine lab test on their current hospital encounter?", "template": "how many days have passed since the first time patient 22648 received a creatinine lab test on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',labevents.charttime) ) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatinine' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 22648 and admissions.dischtime is null ) order by labevents.charttime asc limit 1", "value": {"patient_id": 22648, "lab_name": "creatinine"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0df63d90d4021c74abc10bc3", "answer": ["-361"]} {"db_id": "mimic_iii", "question": "how many days have elapsed since patient 15794's last pco2 lab test on the current hospital visit?", "template": "how many days have passed since the last time patient 15794 received a pco2 lab test on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',labevents.charttime) ) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pco2' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15794 and admissions.dischtime is null ) order by labevents.charttime desc limit 1", "value": {"patient_id": 15794, "lab_name": "pco2"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2ccaadaaa67cb0dd232cdc78", "answer": ["-362"]} {"db_id": "mimic_iii", "question": "how many days has it been since patient 72909's last calculated total co2 lab test in the current hospital visit?", "template": "how many days have passed since the last time patient 72909 received a calculated total co2 lab test on the current hospital visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',labevents.charttime) ) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'calculated total co2' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 72909 and admissions.dischtime is null ) order by labevents.charttime desc limit 1", "value": {"patient_id": 72909, "lab_name": "calculated total co2"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} received a {lab_name} lab test on the current hospital visit?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6edbe66d8614f5fabd1da6e4", "answer": ["-364"]} {"db_id": "mimic_iii", "question": "how many hours have elapsed since patient 14467 received a last intake of d10w on the current icu visit?", "template": "how many hours have passed since the last time patient 14467 had a d10w intake on the current icu visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',inputevents_cv.charttime) ) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14467 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd10w' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime desc limit 1", "value": {"intake_name": "d10w", "patient_id": 14467}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "department": "['physician', 'infection_control', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7d0da2f0b3dea207a360111c", "answer": ["-8736"]} {"db_id": "mimic_iii", "question": "how many days has it been since the last lactated ringers intake of patient 12775 on the current icu visit?", "template": "how many days have passed since the last time patient 12775 had a lactated ringers intake on the current icu visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',inputevents_cv.charttime) ) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12775 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'lactated ringers' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 12775, "intake_name": "lactated ringers"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-last] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "department": "['physician', 'infection_control', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0e289ddc8f5f9ce7e4cd3d4f", "answer": ["-364"]} {"db_id": "mimic_iii", "question": "how many days has it been since patient 1561 first received a .45% normal saline intake on the current icu visit?", "template": "how many days have passed since the first time patient 1561 had a .45% normal saline intake on the current icu visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',inputevents_cv.charttime) ) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1561 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = '.45% normal saline' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime asc limit 1", "value": {"intake_name": ".45% normal saline", "patient_id": 1561}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "t_tag": ["rel-icu-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "department": "['physician', 'infection_control', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3ba0e67519b5c9041ad92d97", "answer": ["-363"]} {"db_id": "mimic_iii", "question": "how many days has it been since patient 5828's first .9% normal saline intake on the current intensive care unit visit?", "template": "how many days have passed since the first time patient 5828 had a .9% normal saline intake on the current icu visit?", "query": "select 1 * ( strftime('%j',current_time) - strftime('%j',inputevents_cv.charttime) ) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5828 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = '.9% normal saline' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime asc limit 1", "value": {"intake_name": ".9% normal saline", "patient_id": 5828}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "t_tag": ["rel-icu-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "days"], "tag": "how many [unit_count:days] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "department": "['physician', 'infection_control', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ee2432c13b173622bc878c98", "answer": ["-359"]} {"db_id": "mimic_iii", "question": "how many hours have elapsed since the first time patient 3125 had a impact w/fiber intake on the current intensive care unit visit?", "template": "how many hours have passed since the first time patient 3125 had a impact w/fiber intake on the current icu visit?", "query": "select 24 * ( strftime('%j',current_time) - strftime('%j',inputevents_cv.charttime) ) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3125 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'impact w/fiber' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime asc limit 1", "value": {"patient_id": 3125, "intake_name": "impact w/fiber"}, "q_tag": "how many [unit_count] have passed since the [time_filter_exact1] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "t_tag": ["rel-icu-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", "hours"], "tag": "how many [unit_count:hours] have passed since the [time_filter_exact1:exact-first] time patient {patient_id} had a {intake_name} intake on the current icu visit?", "department": "['physician', 'infection_control', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3f5b4f51b36b4fd4277014af", "answer": ["-8736"]} {"db_id": "mimic_iii", "question": "how did since 2104 patient 25365 first get admitted to the hospital?", "template": "what was the first hospital admission type of patient 25365 since 2104?", "query": "select admissions.admission_type from admissions where admissions.subject_id = 25365 and strftime('%Y',admissions.admittime) >= '2104' order by admissions.admittime asc limit 1", "value": {"patient_id": 25365}, "q_tag": "what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] hospital admission type of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "26da74f268ab6defdc21d767", "answer": ["emergency"]} {"db_id": "mimic_iii", "question": "what was patient 11426's first hospital admission type until 2101?", "template": "what was the first hospital admission type of patient 11426 until 2101?", "query": "select admissions.admission_type from admissions where admissions.subject_id = 11426 and strftime('%Y',admissions.admittime) <= '2101' order by admissions.admittime asc limit 1", "value": {"patient_id": 11426}, "q_tag": "what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] hospital admission type of patient {patient_id} [time_filter_global1:abs-year-until]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4fd046d7a83f14b0203e2ed5", "answer": ["elective"]} {"db_id": "mimic_iii", "question": "how did patient 70516 last come to the hospital since 2104?", "template": "what was the last hospital admission type of patient 70516 since 2104?", "query": "select admissions.admission_type from admissions where admissions.subject_id = 70516 and strftime('%Y',admissions.admittime) >= '2104' order by admissions.admittime desc limit 1", "value": {"patient_id": 70516}, "q_tag": "what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] hospital admission type of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "be8a625c6ddd76339c63f319", "answer": ["emergency"]} {"db_id": "mimic_iii", "question": "what is the last ward of patient 269 until 2102?", "template": "what was the last ward of patient 269 until 2102?", "query": "select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 269 ) and transfers.wardid is not null and strftime('%Y',transfers.intime) <= '2102' order by transfers.intime desc limit 1", "value": {"patient_id": 269}, "q_tag": "what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] ward of patient {patient_id} [time_filter_global1:abs-year-until]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7f2031a927cb8e98cc09d39d", "answer": ["18"]} {"db_id": "mimic_iii", "question": "what is patient 17638's first ward on the last hospital visit?", "template": "what was the first ward of patient 17638 on the last hospital visit?", "query": "select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17638 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and transfers.wardid is not null order by transfers.intime asc limit 1", "value": {"patient_id": 17638}, "q_tag": "what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] ward of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "90bf9fdf1320da5bf02e4070", "answer": ["33"]} {"db_id": "mimic_iii", "question": "the first care unit of patient 46422 since 2101 is?", "template": "what was the first careunit of patient 46422 since 2101?", "query": "select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 46422 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) >= '2101' order by transfers.intime asc limit 1", "value": {"patient_id": 46422}, "q_tag": "what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7af699038fc35a7cd115f186", "answer": ["csru"]} {"db_id": "mimic_iii", "question": "what is the first id of the care unit of patient 47295 in 2100?", "template": "what was the first careunit of patient 47295 in 2100?", "query": "select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47295 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) = '2100' order by transfers.intime asc limit 1", "value": {"patient_id": 47295}, "q_tag": "what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:abs-year-in]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "097958a60150265e4a6b589d", "answer": ["ccu"]} {"db_id": "mimic_iii", "question": "what is the last care unit where patient 40059 stayed since 2104?", "template": "what was the last careunit of patient 40059 since 2104?", "query": "select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40059 ) and transfers.careunit is not null and strftime('%Y',transfers.intime) >= '2104' order by transfers.intime desc limit 1", "value": {"patient_id": 40059}, "q_tag": "what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] careunit of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cbb8fbb6a4b75cc53f91e83d", "answer": ["csru"]} {"db_id": "mimic_iii", "question": "what is the first careunit that patient 53089 stayed on the last hospital encounter?", "template": "what was the first careunit of patient 53089 on the last hospital visit?", "query": "select transfers.careunit from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 53089 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and transfers.careunit is not null order by transfers.intime asc limit 1", "value": {"patient_id": 53089}, "q_tag": "what was the [time_filter_exact1] careunit of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] careunit of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "da223feb8ae7bc44d69965b0", "answer": ["ccu"]} {"db_id": "mimic_iii", "question": "whats the last height of patient 19473 since 01/2103?", "template": "what was the last measured height of patient 19473 since 01/2103?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19473 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m',chartevents.charttime) >= '2103-01' order by chartevents.charttime desc limit 1", "value": {"patient_id": 19473}, "q_tag": "what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "76de23427d2dba3cf2b23345", "answer": ["62.0"]} {"db_id": "mimic_iii", "question": "what is the last measured height of patient 26772 during the last hospital encounter?", "template": "what was the last measured height of patient 26772 on the last hospital visit?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26772 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1", "value": {"patient_id": 26772}, "q_tag": "what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fa00d0805be1aba7d8b3f1f0", "answer": ["66.0"]} {"db_id": "mimic_iii", "question": "what is patient 21074's last measured height?", "template": "what was the last measured height of patient 21074?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 21074 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1", "value": {"patient_id": 21074}, "q_tag": "what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:null]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7b9ad874e9995f3da8f292bf", "answer": ["69.0"]} {"db_id": "mimic_iii", "question": "how much patient 14203 weighs during the first hospital encounter for the first time.", "template": "what was the first measured weight of patient 14203 on the first hospital visit?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14203 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1", "value": {"patient_id": 14203}, "q_tag": "what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "115956127364e8138306945f", "answer": ["155.0"]} {"db_id": "mimic_iii", "question": "how much does patient 728 weigh based on the first measurement during the first hospital visit?", "template": "what was the first measured weight of patient 728 on the first hospital visit?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 728 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1", "value": {"patient_id": 728}, "q_tag": "what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "afdd4c90c8504a5840cd11e8", "answer": ["90.0"]} {"db_id": "mimic_iii", "question": "how much does patient 26469 last weigh during their first hospital encounter?", "template": "what was the last measured weight of patient 26469 on the first hospital visit?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26469 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) order by chartevents.charttime desc limit 1", "value": {"patient_id": 26469}, "q_tag": "what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured weight of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "14267c4590c64708ec53008d", "answer": ["84.0"]} {"db_id": "mimic_iii", "question": "what was patient 82132 diagnosed with the first time since 2104?", "template": "what was the name of the diagnosis that patient 82132 first received since 2104?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select diagnoses_icd.icd9_code from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 82132 ) and strftime('%Y',diagnoses_icd.charttime) >= '2104' order by diagnoses_icd.charttime asc limit 1 )", "value": {"patient_id": 82132}, "q_tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-since]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "417e8825f1d2905923915ef3", "answer": ["hyposmolality"]} {"db_id": "mimic_iii", "question": "what was patient 52604 last diagnosed with since 2101?", "template": "what was the name of the diagnosis that patient 52604 last received since 2101?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select diagnoses_icd.icd9_code from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 52604 ) and strftime('%Y',diagnoses_icd.charttime) >= '2101' order by diagnoses_icd.charttime desc limit 1 )", "value": {"patient_id": 52604}, "q_tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1:exact-last] received [time_filter_global1:abs-year-since]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7fc1a50f4f027f785f3721cf", "answer": ["septic shock"]} {"db_id": "mimic_iii", "question": "what was the name of procedure that patient 24894 were first received until 2103?", "template": "what was the name of the procedure that patient 24894 first received until 2103?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24894 ) and strftime('%Y',procedures_icd.charttime) <= '2103' order by procedures_icd.charttime asc limit 1 )", "value": {"patient_id": 24894}, "q_tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "28214b618c51dace21d2d4aa", "answer": ["insert endotracheal tube"]} {"db_id": "mimic_iii", "question": "what procedure did patient 87733 first have until 2102?", "template": "what was the name of the procedure that patient 87733 first received until 2102?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 87733 ) and strftime('%Y',procedures_icd.charttime) <= '2102' order by procedures_icd.charttime asc limit 1 )", "value": {"patient_id": 87733}, "q_tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "32737511af23c9dd582baf0e", "answer": ["interruption vena cava"]} {"db_id": "mimic_iii", "question": "what procedure did patient 30171 receive for the first time in the last hospital encounter?", "template": "what was the name of the procedure that patient 30171 first received on the last hospital visit?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select procedures_icd.icd9_code from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30171 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by procedures_icd.charttime asc limit 1 )", "value": {"patient_id": 30171}, "q_tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:rel-hosp-last]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ae93ba59413a1b6609100c4e", "answer": ["below knee amputat nec"]} {"db_id": "mimic_iii", "question": "what is the first drug that was prescribed to patient 50286 via an po route during their first hospital encounter?", "template": "what was the name of the drug that patient 50286 was first prescribed via po route on the first hospital visit?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 50286 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.route = 'po' order by prescriptions.startdate asc limit 1", "value": {"patient_id": 50286, "drug_route": "po"}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-first] prescribed via {drug_route} route [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "45c36470a49e2e64c99d85d6", "answer": ["diltiazem"]} {"db_id": "mimic_iii", "question": "what was the last drug patient 60347 was prescribed via im in the first hospital visit?", "template": "what was the name of the drug that patient 60347 was last prescribed via im route on the first hospital visit?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60347 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and prescriptions.route = 'im' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 60347, "drug_route": "im"}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed via {drug_route} route [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bd191b49b8bf514888d2b349", "answer": ["cyanocobalamin"]} {"db_id": "mimic_iii", "question": "what was the first medication patient 83062 was prescribed via oral route in the current hospital encounter?", "template": "what was the name of the drug that patient 83062 was first prescribed via oral route on the current hospital visit?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83062 and admissions.dischtime is null ) and prescriptions.route = 'oral' order by prescriptions.startdate asc limit 1", "value": {"drug_route": "oral", "patient_id": 83062}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed via {drug_route} route [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-first] prescribed via {drug_route} route [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "65d3ed0c4acd6084078ce797", "answer": ["chlorhexidine gluconate 0.12% oral rinse"]} {"db_id": "mimic_iii", "question": "what was the drug prescribed for patient 25696 for the last time in 05/2105?", "template": "what was the name of the drug that patient 25696 was last prescribed in 05/2105?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25696 ) and strftime('%Y-%m',prescriptions.startdate) = '2105-05' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 25696}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:abs-month-in]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f25e9c071a3748da285a7982", "answer": ["alteplase (catheter clearance)"]} {"db_id": "mimic_iii", "question": "list the drug that patient 17667 has been last prescribed on this hospital visit.", "template": "what was the name of the drug that patient 17667 was last prescribed on the current hospital visit?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17667 and admissions.dischtime is null ) order by prescriptions.startdate desc limit 1", "value": {"patient_id": 17667}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:rel-hosp-cur]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8b0a07f8f1cf05984a5b4376", "answer": ["calcium acetate"]} {"db_id": "mimic_iii", "question": "what is the drug that patient 99080 was prescribed with within 2 days after being diagnosed with cysticercosis in 11/2103?", "template": "what was the name of the drug that patient 99080 was prescribed within 2 day after having been diagnosed with cysticercosis in 11/2103?", "query": "select t2.drug from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 99080 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cysticercosis' ) and strftime('%Y-%m',diagnoses_icd.charttime) = '2103-11' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 99080 and strftime('%Y-%m',prescriptions.startdate) = '2103-11' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')", "value": {"patient_id": 99080, "diagnosis_name": "cysticercosis"}, "q_tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "within-n_day", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aeb966ae7f671a4470bf184e", "answer": ["0.9% sodium chloride", "amoxicillin-clavulanic acid", "fish oil (omega 3)", "fluticasone-salmeterol diskus (100/50)", "glucagon", "heparin flush cvl (100 units/ml)", "iso-osmotic sodium chloride", "ketorolac", "methylprednisolone na succ.", "metoprolol tartrate", "midazolam hcl", "mycophenolate mofetil", "nitroglycerin", "nitroglycerin", "ns", "ns (glass bottle)", "phenylephrine hcl", "phenytoin (suspension)", "potassium chloride", "quetiapine fumarate", "sw", "0.9% sodium chloride", "clopidogrel", "dorzolamide 2% ophth. soln.", "eucerin", "lorazepam", "sw"]} {"db_id": "mimic_iii", "question": "what drug was patient 62298 prescribed for within the same hospital visit after being diagnosed with hyperlipidemia nec/nos since 04/2103?", "template": "what was the name of the drug that patient 62298 was prescribed within the same hospital visit after having been diagnosed with hyperlipidemia nec/nos since 04/2103?", "query": "select t2.drug from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 62298 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hyperlipidemia nec/nos' ) and strftime('%Y-%m',diagnoses_icd.charttime) >= '2103-04' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 62298 and strftime('%Y-%m',prescriptions.startdate) >= '2103-04' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"patient_id": 62298, "diagnosis_name": "hyperlipidemia nec/nos"}, "q_tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "36a3d73e2377b565c62d8cda", "answer": ["5% dextrose", "acetazolamide sodium", "albuterol 0.083% neb soln", "d5 1/2ns", "enalapril maleate", "iso-osmotic dextrose", "iso-osmotic sodium chloride", "isotonic sodium chloride", "lisinopril", "potassium chloride", "0.9% sodium chloride", "0.9% sodium chloride (mini bag plus)", "albuterol 0.083% neb soln", "d5w", "heparin", "idarubicin hcl", "lr", "metoprolol tartrate", "ns", "quetiapine fumarate", "sodium phosphate", "furosemide", "morphine sulfate sr", "ns", "oxcarbazepine", "vial", "acetaminophen", "insulin", "iso-osmotic dextrose", "thiamine", "0.9% sodium chloride (mini bag plus)", "acetaminophen", "albuterol 0.083% neb soln", "albuterol mdi", "insulin", "metronidazole (flagyl)", "morphine sulfate", "ns", "phenytoin sodium", "prednisone", "sodium chloride 0.9% flush", "ipratropium bromide neb", "potassium chloride", "hydralazine hcl", "potassium chloride"]} {"db_id": "mimic_iii", "question": "what is the drug that patient 54386 was prescribed with within 2 days after having undergone entral infus nutrit sub on the last hospital encounter?", "template": "what was the name of the drug that patient 54386 was prescribed within 2 day after having received a entral infus nutrit sub procedure on the last hospital visit?", "query": "select t2.drug from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 54386 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'entral infus nutrit sub' ) and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 54386 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')", "value": {"patient_id": 54386, "procedure_name": "entral infus nutrit sub"}, "q_tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "within-n_day", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having received a {procedure_name} procedure [time_filter_global1:rel-hosp-last]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "85a0b099f9581dc25abc3b37", "answer": ["clopidogrel"]} {"db_id": "mimic_iii", "question": "what is the drug that patient 25668 prescribed for within 2 days after the treatment of percu abdominal drainage until 12/2104?", "template": "what was the name of the drug that patient 25668 was prescribed within 2 day after having received a percu abdominal drainage procedure until 12/2104?", "query": "select t2.drug from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where admissions.subject_id = 25668 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'percu abdominal drainage' ) and strftime('%Y-%m',procedures_icd.charttime) <= '2104-12' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id = 25668 and strftime('%Y-%m',prescriptions.startdate) <= '2104-12' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 day')", "value": {"patient_id": 25668, "procedure_name": "percu abdominal drainage"}, "q_tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-month-until", "", "within-n_day", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} was prescribed [time_filter_within:within-n_day] after having received a {procedure_name} procedure [time_filter_global1:abs-month-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c2805f5f44169ed9f80bfc7e", "answer": ["5% dextrose", "d10w", "famotidine", "hydralazine", "iso-osmotic dextrose", "potassium chloride"]} {"db_id": "mimic_iii", "question": "what was the last dose of sulfameth/trimethoprim ds that until 03/2105 was prescribed to patient 64292?", "template": "what was the dose of sulfameth/trimethoprim ds that patient 64292 was last prescribed until 03/2105?", "query": "select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 64292 ) and prescriptions.drug = 'sulfameth/trimethoprim ds' and strftime('%Y-%m',prescriptions.startdate) <= '2105-03' order by prescriptions.startdate desc limit 1", "value": {"drug_name": "sulfameth/trimethoprim ds", "patient_id": 64292}, "q_tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-last] prescribed [time_filter_global1:abs-month-until]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "882778e774fae638559fd63a", "answer": ["1.0"]} {"db_id": "mimic_iii", "question": "what was the first dose of zidovudine that was prescribed on the last hospital encounter to patient 13841?", "template": "what was the dose of zidovudine that patient 13841 was first prescribed on the last hospital visit?", "query": "select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13841 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and prescriptions.drug = 'zidovudine' order by prescriptions.startdate asc limit 1", "value": {"drug_name": "zidovudine", "patient_id": 13841}, "q_tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-first] prescribed [time_filter_global1:rel-hosp-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a9a0426e7eed19bb734f9753", "answer": ["300.0"]} {"db_id": "mimic_iii", "question": "how much heparin sodium (preservative free) was first prescribed to patient 14035?", "template": "what was the dose of heparin sodium (preservative free) that patient 14035 was first prescribed?", "query": "select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14035 ) and prescriptions.drug = 'heparin sodium (preservative free)' order by prescriptions.startdate asc limit 1", "value": {"drug_name": "heparin sodium (preservative free)", "patient_id": 14035}, "q_tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1:exact-first] prescribed [time_filter_global1:null]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8e0f06a53d9357ae52e1dce2", "answer": ["10.0"]} {"db_id": "mimic_iii", "question": "tell me the total dose of d5w (excel bag) that patient 97330 was prescribed in this hospital encounter?", "template": "what was the total amount of dose of d5w (excel bag) that patient 97330 were prescribed on the current hospital visit?", "query": "select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 97330 and admissions.dischtime is null ) and prescriptions.drug = 'd5w (excel bag)'", "value": {"patient_id": 97330, "drug_name": "d5w (excel bag)"}, "q_tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:rel-hosp-cur]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "521fd2885f51641a963f8d3e", "answer": ["250.0"]} {"db_id": "mimic_iii", "question": "what was the amount of pioglitazone that patient 16992 were prescribed in total?", "template": "what was the total amount of dose of pioglitazone that patient 16992 were prescribed?", "query": "select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16992 ) and prescriptions.drug = 'pioglitazone'", "value": {"drug_name": "pioglitazone", "patient_id": 16992}, "q_tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2bcc132bb9d4cb3f1fa96882", "answer": ["15.0"]} {"db_id": "mimic_iii", "question": "how much ranitidine has been prescribed to patient 24971 in total in 01/2105?", "template": "what was the total amount of dose of ranitidine that patient 24971 were prescribed in 01/2105?", "query": "select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24971 ) and prescriptions.drug = 'ranitidine' and strftime('%Y-%m',prescriptions.startdate) = '2105-01'", "value": {"drug_name": "ranitidine", "patient_id": 24971}, "q_tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "794d76fc67a5c0735beb7c9b", "answer": ["150.0"]} {"db_id": "mimic_iii", "question": "what is the medication that patient 60552 had been prescribed two times on their last hospital encounter?", "template": "what was the name of the drug that patient 60552 were prescribed two times on the last hospital visit?", "query": "select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60552 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) group by prescriptions.drug ) as t1 where t1.c1 = 2", "value": {"patient_id": 60552}, "q_tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times:two times] [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9e4f9c835cd34f44c5a797e0", "answer": ["0.9% sodium chloride (mini bag plus)", "acetaminophen", "albuterol 0.083% neb soln", "amiodarone", "calcium gluconate", "docusate sodium", "heparin sodium", "humulin-r insulin", "ipratropium bromide neb", "methylprednisolone na succ.", "ondansetron", "phytonadione", "promethazine hcl", "vancomycin hcl", "warfarin"]} {"db_id": "mimic_iii", "question": "what was the name of the drug that was prescribed two times to patient 67902 since 126 months ago?", "template": "what was the name of the drug that patient 67902 were prescribed two times since 126 month ago?", "query": "select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 67902 ) and datetime(prescriptions.startdate) >= datetime(current_time,'-126 month') group by prescriptions.drug ) as t1 where t1.c1 = 2", "value": {"patient_id": 67902}, "q_tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times:two times] [time_filter_global1:rel-month-since]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "804675d0df5fbf576a21e3e7", "answer": ["1/2 ns", "acetaminophen", "d5w", "insulin", "iso-osmotic dextrose", "metoprolol", "pravastatin", "sw"]} {"db_id": "mimic_iii", "question": "what is the name of the drug that was prescribed two or more times to patient 16992 in 02/2105?", "template": "what was the name of the drug that patient 16992 were prescribed two or more times in 02/2105?", "query": "select t1.drug from ( select prescriptions.drug, count( prescriptions.startdate ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16992 ) and strftime('%Y-%m',prescriptions.startdate) = '2105-02' group by prescriptions.drug ) as t1 where t1.c1 >= 2", "value": {"patient_id": 16992}, "q_tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times:two or more times] [time_filter_global1:abs-month-in]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3d15a947eed759994d50f78a", "answer": ["albuterol 0.083% neb soln", "d5w", "furosemide", "heparin", "insulin", "iso-osmotic dextrose", "lr", "metoprolol", "metoprolol tartrate", "milk of magnesia", "ns", "potassium chloride", "sodium chloride 0.9% flush"]} {"db_id": "mimic_iii", "question": "what was the last anion gap value when they visited the hospital first time for patient 69819?", "template": "what was the last measured value of a anion gap lab test of patient 69819 on the first hospital visit?", "query": "select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 69819 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'anion gap' ) order by labevents.charttime desc limit 1", "value": {"patient_id": 69819, "lab_name": "anion gap"}, "q_tag": "what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b186f88c50e0237de34f71b9", "answer": ["11.0"]} {"db_id": "mimic_iii", "question": "tell me the first value of the calculated total co2 for patient 13163 when they came to the hospital last time?", "template": "what was the first measured value of a calculated total co2 lab test of patient 13163 on the last hospital visit?", "query": "select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13163 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'calculated total co2' ) order by labevents.charttime asc limit 1", "value": {"lab_name": "calculated total co2", "patient_id": 13163}, "q_tag": "what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5bf50961703ff1a96edce682", "answer": ["30.0"]} {"db_id": "mimic_iii", "question": "what was patient 61751's first measured potassium since 05/2105?", "template": "what was the first measured value of a potassium lab test of patient 61751 since 05/2105?", "query": "select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 61751 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) and strftime('%Y-%m',labevents.charttime) >= '2105-05' order by labevents.charttime asc limit 1", "value": {"patient_id": 61751, "lab_name": "potassium"}, "q_tag": "what was the [time_filter_exact1] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] measured value of a {lab_name} lab test of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "be9959bb313762538b3852a8", "answer": ["3.9"]} {"db_id": "mimic_iii", "question": "what is the name of the lab testing that patient 29611 first received during the last hospital encounter?", "template": "what was the name of the lab test that patient 29611 first received on the last hospital visit?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29611 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by labevents.charttime asc limit 1 )", "value": {"patient_id": 29611}, "q_tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fe65b7944d042e42a46cb030", "answer": ["ptt"]} {"db_id": "mimic_iii", "question": "what test did patient 3403 go through for the first time since 04/2105?", "template": "what was the name of the lab test that patient 3403 first received since 04/2105?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3403 ) and strftime('%Y-%m',labevents.charttime) >= '2105-04' order by labevents.charttime asc limit 1 )", "value": {"patient_id": 3403}, "q_tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:abs-month-since]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4dae998f2127dfbeb7061662", "answer": ["pt"]} {"db_id": "mimic_iii", "question": "what lab test did patient 59797 first receive?", "template": "what was the name of the lab test that patient 59797 first received?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select labevents.itemid from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 59797 ) order by labevents.charttime asc limit 1 )", "value": {"patient_id": 59797}, "q_tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-first] received [time_filter_global1:null]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "43ef199cf97784ab84c5abfe", "answer": ["mchc"]} {"db_id": "mimic_iii", "question": "what is patient 53176's average value for bilirubin, total, body fluid since 2 months ago?", "template": "what was the average bilirubin, total, body fluid value of patient 53176 since 2 month ago?", "query": "select avg(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 53176 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'bilirubin, total, body fluid' ) and datetime(labevents.charttime) >= datetime(current_time,'-2 month')", "value": {"lab_name": "bilirubin, total, body fluid", "patient_id": 53176}, "q_tag": "what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:average] {lab_name} value of patient {patient_id} [time_filter_global1:rel-month-since]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "77e9256040d0519b2e8ed610", "answer": ["1.1"]} {"db_id": "mimic_iii", "question": "what is patient 11095's maximum mch during the last hospital visit?", "template": "what was the maximum mch value of patient 11095 on the last hospital visit?", "query": "select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11095 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'mch' )", "value": {"patient_id": 11095, "lab_name": "mch"}, "q_tag": "what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:maximum] {lab_name} value of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c48a583f5a7cf8baccd1ffcf", "answer": ["32.2"]} {"db_id": "mimic_iii", "question": "what is patient 72364's minimum ethanol value since 06/2105?", "template": "what was the minimum ethanol value of patient 72364 since 06/2105?", "query": "select min(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 72364 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'ethanol' ) and strftime('%Y-%m',labevents.charttime) >= '2105-06'", "value": {"lab_name": "ethanol", "patient_id": 72364}, "q_tag": "what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:minimum] {lab_name} value of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c05df0b81e03432ce9a0d68f", "answer": ["405.0"]} {"db_id": "mimic_iii", "question": "what is the name of the organism found in patient 16904's first microbiological abscess test since 05/2105?", "template": "what was the organism name found in the first abscess microbiology test of patient 16904 since 05/2105?", "query": "select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16904 ) and microbiologyevents.spec_type_desc = 'abscess' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-05' order by microbiologyevents.charttime asc limit 1", "value": {"patient_id": 16904, "culture_name": "abscess"}, "q_tag": "what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the organism name found in the [time_filter_exact1:exact-first] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8556a3f70343391ce72ee84c", "answer": ["staph aureus coag +"]} {"db_id": "mimic_iii", "question": "what was the name of the organism detected in patient 5849's last microbiological urine test since 05/2103?", "template": "what was the organism name found in the last urine microbiology test of patient 5849 since 05/2103?", "query": "select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5849 ) and microbiologyevents.spec_type_desc = 'urine' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2103-05' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 5849, "culture_name": "urine"}, "q_tag": "what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the organism name found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "642b564b21833f8db1b29d15", "answer": ["klebsiella pneumoniae"]} {"db_id": "mimic_iii", "question": "what was the organism name found in the last bile test of patient 7107 since 07/2105?", "template": "what was the organism name found in the last bile microbiology test of patient 7107 since 07/2105?", "query": "select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7107 ) and microbiologyevents.spec_type_desc = 'bile' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-07' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 7107, "culture_name": "bile"}, "q_tag": "what was the organism name found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the organism name found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b42ab2b6f0b0a6beb9f0db72", "answer": ["citrobacter koseri"]} {"db_id": "mimic_iii", "question": "what was the name of the specimen test that patient 40707 was last to receive during their current hospital visit?", "template": "what was the name of the specimen that patient 40707 was last tested on the current hospital visit?", "query": "select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40707 and admissions.dischtime is null ) order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 40707}, "q_tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-last] tested [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b320a375c8484c2c44589ad3", "answer": ["sputum"]} {"db_id": "mimic_iii", "question": "tell me the last specimen test that patient 71689 was given on this hospital encounter?", "template": "what was the name of the specimen that patient 71689 was last tested on the current hospital visit?", "query": "select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 71689 and admissions.dischtime is null ) order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 71689}, "q_tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-last] tested [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "46b849123b6a118265784bc4", "answer": ["blood culture"]} {"db_id": "mimic_iii", "question": "what was patient 76372's first tested specimen in the current hospital encounter?", "template": "what was the name of the specimen that patient 76372 was first tested on the current hospital visit?", "query": "select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 76372 and admissions.dischtime is null ) order by microbiologyevents.charttime asc limit 1", "value": {"patient_id": 76372}, "q_tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1:exact-first] tested [time_filter_global1:rel-hosp-cur]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "01fd21f531fed6fd0eb715db", "answer": ["blood culture"]} {"db_id": "mimic_iii", "question": "what did patient 23929 first have as his intake?", "template": "what was the name of the intake that patient 23929 first had?", "query": "select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 23929 ) ) order by inputevents_cv.charttime asc limit 1 )", "value": {"patient_id": 23929}, "q_tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:null]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7eaeb6085c8f8f5b3421e972", "answer": [".9% normal saline"]} {"db_id": "mimic_iii", "question": "what intake did patient 14671 eat for the first time on 12/31/2105?", "template": "what was the name of the intake that patient 14671 first had on 12/31/2105?", "query": "select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14671 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2105-12-31' order by inputevents_cv.charttime asc limit 1 )", "value": {"patient_id": 14671}, "q_tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:abs-day-in]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "076517b8f3c53627f45bc6f3", "answer": ["d5w"]} {"db_id": "mimic_iii", "question": "what intake did patient 24029 last have since 1311 days ago?", "template": "what was the name of the intake that patient 24029 last had since 1311 day ago?", "query": "select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24029 ) ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-1311 day') order by inputevents_cv.charttime desc limit 1 )", "value": {"patient_id": 24029}, "q_tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["rel-day-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:rel-day-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "59267c658accd0e3e7ef4321", "answer": ["d5w"]} {"db_id": "mimic_iii", "question": "what did patient 7165 last have as intake?", "template": "what was the name of the intake that patient 7165 last had?", "query": "select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7165 ) ) order by inputevents_cv.charttime desc limit 1 )", "value": {"patient_id": 7165}, "q_tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:null]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "46bf3e30d90670f07271b679", "answer": ["replete w/fiber"]} {"db_id": "mimic_iii", "question": "what intake did patient 14203 have for the last time?", "template": "what was the name of the intake that patient 14203 last had?", "query": "select d_items.label from d_items where d_items.itemid in ( select inputevents_cv.itemid from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14203 ) ) order by inputevents_cv.charttime desc limit 1 )", "value": {"patient_id": 14203}, "q_tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the intake that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:null]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cd1a15d7d99061c68867df38", "answer": ["nepro"]} {"db_id": "mimic_iii", "question": "what is the total of d10w intake that patient 17694 has received on the last intensive care unit visit?", "template": "what was the total volume of d10w intake that patient 17694 received on the last icu visit?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17694 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd10w' and d_items.linksto = 'inputevents_cv' )", "value": {"patient_id": 17694, "intake_name": "d10w"}, "q_tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["rel-icu-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-icu-last]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f501dde27444d1dca2a5debc", "answer": ["11.0"]} {"db_id": "mimic_iii", "question": "calculate patient 20898's total amount of neosure 30 pg intake.", "template": "what was the total volume of neosure 30 pg intake that patient 20898 received?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20898 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'neosure 30 pg' and d_items.linksto = 'inputevents_cv' )", "value": {"intake_name": "neosure 30 pg", "patient_id": 20898}, "q_tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1f739d651d3e475012d6dd7c", "answer": ["53.0"]} {"db_id": "mimic_iii", "question": "calculate patient 16368's total tpn d10.0 intake.", "template": "what was the total volume of tpn d10.0 intake that patient 16368 received?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16368 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'tpn d10.0' and d_items.linksto = 'inputevents_cv' )", "value": {"patient_id": 16368, "intake_name": "tpn d10.0"}, "q_tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "806664ced95456da314ce75c", "answer": ["12.1999998093"]} {"db_id": "mimic_iii", "question": "what was the total sum of inputs patient 15209 had received since 1434 days ago?", "template": "what was the total volume of intake that patient 15209 received since 1434 day ago?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15209 ) ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-1434 day')", "value": {"patient_id": 15209}, "q_tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["rel-day-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1:rel-day-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8189591411a2984c31b42961", "answer": ["26893.031119597697"]} {"db_id": "mimic_iii", "question": "get me patient 31506's total input volume on 07/12/2104.", "template": "what was the total volume of intake that patient 31506 received on 07/12/2104?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31506 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2104-07-12'", "value": {"patient_id": 31506}, "q_tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1:abs-day-in]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6ac9fe66f216b77e725cc73c", "answer": ["865.3974981904"]} {"db_id": "mimic_iii", "question": "show me patient 4092's total input on the last intensive care unit visit.", "template": "what was the total volume of intake that patient 4092 received on the last icu visit?", "query": "select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4092 ) and icustays.outtime is not null order by icustays.intime desc limit 1 )", "value": {"patient_id": 4092}, "q_tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["rel-icu-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1:rel-icu-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "12128fd24107dead27317a36", "answer": ["2870.1176231652"]} {"db_id": "mimic_iii", "question": "what were the outputs of patient 655 for the first time on the last intensive care unit visit?", "template": "what was the name of the output that patient 655 first had on the last icu visit?", "query": "select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 655 ) and icustays.outtime is not null order by icustays.intime desc limit 1 ) order by outputevents.charttime asc limit 1 )", "value": {"patient_id": 655}, "q_tag": "what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["rel-icu-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the output that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:rel-icu-last]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "be5f3de709ed49bcb0111828", "answer": ["foley"]} {"db_id": "mimic_iii", "question": "name the output that patient 29309 had for the first time on 01/06/2105?", "template": "what was the name of the output that patient 29309 first had on 01/06/2105?", "query": "select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29309 ) ) and strftime('%Y-%m-%d',outputevents.charttime) = '2105-01-06' order by outputevents.charttime asc limit 1 )", "value": {"patient_id": 29309}, "q_tag": "what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the output that patient {patient_id} [time_filter_exact1:exact-first] had [time_filter_global1:abs-day-in]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "641cc4a748ca691bb8041fbd", "answer": ["urine out foley"]} {"db_id": "mimic_iii", "question": "what output did patient 31300 last have until 06/14/2105?", "template": "what was the name of the output that patient 31300 last had until 06/14/2105?", "query": "select d_items.label from d_items where d_items.itemid in ( select outputevents.itemid from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31300 ) ) and strftime('%Y-%m-%d',outputevents.charttime) <= '2105-06-14' order by outputevents.charttime desc limit 1 )", "value": {"patient_id": 31300}, "q_tag": "what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["abs-day-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the output that patient {patient_id} [time_filter_exact1:exact-last] had [time_filter_global1:abs-day-until]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3ae1478dbed62b8dd02a9a38", "answer": ["foley"]} {"db_id": "mimic_iii", "question": "tell me patient 92788's total foley output on the current icu visit.", "template": "what was the total volume of foley output that patient 92788 had on the current icu visit?", "query": "select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 92788 ) and icustays.outtime is null ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'foley' and d_items.linksto = 'outputevents' )", "value": {"patient_id": 92788, "output_name": "foley"}, "q_tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e314057681b052d95d5ea36d", "answer": ["4335.0"]} {"db_id": "mimic_iii", "question": "what is the total volume of output patient 28484 had on the first icu visit?", "template": "what was the total volume of output that patient 28484 had on the first icu visit?", "query": "select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28484 ) and icustays.outtime is not null order by icustays.intime asc limit 1 )", "value": {"patient_id": 28484}, "q_tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["rel-icu-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-first]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "368524ae1d25fe5b84f42d63", "answer": ["7657.5"]} {"db_id": "mimic_iii", "question": "what is the total amount of output from patient 5828 on the current intensive care unit visit?", "template": "what was the total volume of output that patient 5828 had on the current icu visit?", "query": "select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 5828 ) and icustays.outtime is null )", "value": {"patient_id": 5828}, "q_tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7cb903ea21ca67f23b8ad86a", "answer": ["35124.5"]} {"db_id": "mimic_iii", "question": "show me patient 55360's total volume of output on the current intensive care unit visit.", "template": "what was the total volume of output that patient 55360 had on the current icu visit?", "query": "select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 55360 ) and icustays.outtime is null )", "value": {"patient_id": 55360}, "q_tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-icu-cur]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5dfbf5ba0ee25a739204d50d", "answer": ["10243.5500001014"]} {"db_id": "mimic_iii", "question": "what is the difference between the total output and the input sum of patient 19175 on 11/04/2105?", "template": "what is the difference between the total volume of intake and output of patient 19175 on 11/04/2105?", "query": "select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19175 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) = '2105-11-04' ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19175 ) ) and strftime('%Y-%m-%d',outputevents.charttime) = '2105-11-04' )", "value": {"patient_id": 19175}, "q_tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:abs-day-in]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "349c4cd222176af3d356b65a", "answer": ["-857.0700027941"]} {"db_id": "mimic_iii", "question": "calculate the difference between the total amount of input and output of patient 13054.", "template": "what is the difference between the total volume of intake and output of patient 13054?", "query": "select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13054 ) ) ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13054 ) ) )", "value": {"patient_id": 13054}, "q_tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9e4a75361b9fe52b80e736ea", "answer": ["18155.547315390075"]} {"db_id": "mimic_iii", "question": "get me the difference between patient 1784's total volume of input and output since 05/20/2101.", "template": "what is the difference between the total volume of intake and output of patient 1784 since 05/20/2101?", "query": "select ( select sum(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and strftime('%Y-%m-%d',inputevents_cv.charttime) >= '2101-05-20' ) - ( select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and strftime('%Y-%m-%d',outputevents.charttime) >= '2101-05-20' )", "value": {"patient_id": 1784}, "q_tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:abs-day-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9bc4ec03e90ae0aea55d7419", "answer": ["-1311.1042686105998"]} {"db_id": "mimic_iii", "question": "since 10/11/2104 what was patient 1784's last arterial bp mean?", "template": "what was the last measured arterial bp mean of patient 1784 since 10/11/2104?", "query": "select chartevents.valuenum from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1784 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) >= '2104-10-11' order by chartevents.charttime desc limit 1", "value": {"patient_id": 1784, "vital_name": "arterial bp mean"}, "q_tag": "what was the [time_filter_exact1] measured {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured {vital_name} of patient {patient_id} [time_filter_global1:abs-day-since]?", "department": "['other', 'physician', 'health_records', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "51c842b7ce57e9553746becd", "answer": ["80.0"]} {"db_id": "mimic_iii", "question": "what's patient 27465's minimum temperature c (calc) since 03/19/2104.", "template": "what was the minimum temperature c (calc) of patient 27465 since 03/19/2104?", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27465 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'temperature c (calc)' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) >= '2104-03-19'", "value": {"patient_id": 27465, "vital_name": "temperature c (calc)"}, "q_tag": "what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-since]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d4eb1552ef667115ba3e6a80", "answer": ["36.05559921264648"]} {"db_id": "mimic_iii", "question": "what is patient 24517's minimum arterial bp [diastolic] value until 08/22/2104?", "template": "what was the minimum arterial bp [diastolic] of patient 24517 until 08/22/2104?", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24517 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) <= '2104-08-22'", "value": {"vital_name": "arterial bp [diastolic]", "patient_id": 24517}, "q_tag": "what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b449ac6d3b9419c7f6254951", "answer": ["40.0"]} {"db_id": "mimic_iii", "question": "what is patient 4326's minimum arterial bp [diastolic] on 01/24/2105?", "template": "what was the minimum arterial bp [diastolic] of patient 4326 on 01/24/2105?", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4326 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) = '2105-01-24'", "value": {"patient_id": 4326, "vital_name": "arterial bp [diastolic]"}, "q_tag": "what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:abs-day-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f0f62656c8c5c364d10f9ba0", "answer": ["39.0"]} {"db_id": "mimic_iii", "question": "how much does patient 74716 pay for his hospitalization on their last hospital visit?", "template": "what was the total hospital cost of patient 74716 on the last hospital visit?", "query": "select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 74716 and admissions.dischtime is not null order by admissions.admittime desc limit 1 )", "value": {"patient_id": 74716}, "q_tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3a10c7d23a6ca2bcf3b51ece", "answer": ["5189.140000000006"]} {"db_id": "mimic_iii", "question": "how much does patient 20034 have to pay for their hospital stay in 2104?", "template": "what was the total hospital cost of patient 20034 in 2104?", "query": "select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20034 ) and strftime('%Y',cost.chargetime) = '2104'", "value": {"patient_id": 20034}, "q_tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:abs-year-in]?", "department": "['insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2a1928df61248f88c2492ac4", "answer": ["2182.249999999999"]} {"db_id": "mimic_iii", "question": "until 2104, when was the last hospital admission time of patient 32168?", "template": "when was the last hospital admission time of patient 32168 until 2104?", "query": "select admissions.admittime from admissions where admissions.subject_id = 32168 and strftime('%Y',admissions.admittime) <= '2104' order by admissions.admittime desc limit 1", "value": {"patient_id": 32168}, "q_tag": "when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-until]?", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e35fdc768c488f160240cac3", "answer": ["2101-03-26 01:16:00"]} {"db_id": "mimic_iii", "question": "when was the first time patient 96006 was admitted to hospital in 2103?", "template": "when was the first hospital admission time of patient 96006 in 2103?", "query": "select admissions.admittime from admissions where admissions.subject_id = 96006 and strftime('%Y',admissions.admittime) = '2103' order by admissions.admittime asc limit 1", "value": {"patient_id": 96006}, "q_tag": "when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-in]?", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "228e3b1dad53eb975ab2a96b", "answer": ["2103-10-25 16:49:00"]} {"db_id": "mimic_iii", "question": "when did patient 59002 last visit the hospital?", "template": "when was the last hospital admission time of patient 59002?", "query": "select admissions.admittime from admissions where admissions.subject_id = 59002 order by admissions.admittime desc limit 1", "value": {"patient_id": 59002}, "q_tag": "when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital admission time of patient {patient_id} [time_filter_global1:null]?", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "02067ded1e2af5cc921915dd", "answer": ["2103-12-17 07:15:00"]} {"db_id": "mimic_iii", "question": "what was patient 29666's first hospital admission time since 2105?", "template": "when was the first hospital admission time of patient 29666 since 2105?", "query": "select admissions.admittime from admissions where admissions.subject_id = 29666 and strftime('%Y',admissions.admittime) >= '2105' order by admissions.admittime asc limit 1", "value": {"patient_id": 29666}, "q_tag": "when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital admission time of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "057f12424a2552dc090a5c33", "answer": ["2105-03-31 18:44:00"]} {"db_id": "mimic_iii", "question": "when was patient 22120 first admitted via the emergency room admit to the hospital?", "template": "when was the first hospital admission time that patient 22120 was admitted via emergency room admit?", "query": "select admissions.admittime from admissions where admissions.subject_id = 22120 and admissions.admission_location = 'emergency room admit' order by admissions.admittime asc limit 1", "value": {"patient_id": 22120, "admission_route": "emergency room admit"}, "q_tag": "when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:null]?", "department": "['insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1e76c84f547c054330850b9a", "answer": ["2105-10-10 05:58:00"]} {"db_id": "mimic_iii", "question": "until 2103, what was the last hospital admission time of patient 90917 via the clinic referral/premature?", "template": "when was the last hospital admission time that patient 90917 was admitted via clinic referral/premature until 2103?", "query": "select admissions.admittime from admissions where admissions.subject_id = 90917 and admissions.admission_location = 'clinic referral/premature' and strftime('%Y',admissions.admittime) <= '2103' order by admissions.admittime desc limit 1", "value": {"admission_route": "clinic referral/premature", "patient_id": 90917}, "q_tag": "when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:abs-year-until]?", "department": "['insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2b35f6b6121156c1b5d02df6", "answer": ["2102-11-16 19:55:00"]} {"db_id": "mimic_iii", "question": "when was patient 88079 last admitted to the hospital via phys referral/normal deli since 3 years ago?", "template": "when was the last hospital admission time that patient 88079 was admitted via phys referral/normal deli since 3 year ago?", "query": "select admissions.admittime from admissions where admissions.subject_id = 88079 and admissions.admission_location = 'phys referral/normal deli' and datetime(admissions.admittime) >= datetime(current_time,'-3 year') order by admissions.admittime desc limit 1", "value": {"admission_route": "phys referral/normal deli", "patient_id": 88079}, "q_tag": "when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:rel-year-since]?", "department": "['insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a16fe5e236023c3123d24dbd", "answer": ["2103-02-23 17:27:00"]} {"db_id": "mimic_iii", "question": "what was patient 27146's first hospital admission time via phys referral/normal deli since 2103?", "template": "when was the first hospital admission time that patient 27146 was admitted via phys referral/normal deli since 2103?", "query": "select admissions.admittime from admissions where admissions.subject_id = 27146 and admissions.admission_location = 'phys referral/normal deli' and strftime('%Y',admissions.admittime) >= '2103' order by admissions.admittime asc limit 1", "value": {"admission_route": "phys referral/normal deli", "patient_id": 27146}, "q_tag": "when was the [time_filter_exact1] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital admission time that patient {patient_id} was admitted via {admission_route} [time_filter_global1:abs-year-since]?", "department": "['insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "02107c6ab84e2509a0fd24cf", "answer": ["2105-12-30 14:17:00"]} {"db_id": "mimic_iii", "question": "when did patient 46252 leave the hospital for the first time since 2104?", "template": "when was the first hospital discharge time of patient 46252 since 2104?", "query": "select admissions.dischtime from admissions where admissions.subject_id = 46252 and strftime('%Y',admissions.dischtime) >= '2104' order by admissions.dischtime asc limit 1", "value": {"patient_id": 46252}, "q_tag": "when was the [time_filter_exact1] hospital discharge time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital discharge time of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['other', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5e7fd68528787fa18279c796", "answer": ["2105-04-03 14:33:00"]} {"db_id": "mimic_iii", "question": "tell me the length of stay of patient 73913's first stay in icu.", "template": "what was the first length of icu stay of patient 73913?", "query": "select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73913 ) and icustays.outtime is not null order by icustays.intime asc limit 1", "value": {"patient_id": 73913}, "q_tag": "what was the [time_filter_exact1] length of icu stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "97b03c13af5206b2476ccff0", "answer": ["1"]} {"db_id": "mimic_iii", "question": "calculate the length of stay of the first stay of patient 27392 in the icu.", "template": "what was the first length of icu stay of patient 27392?", "query": "select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27392 ) and icustays.outtime is not null order by icustays.intime asc limit 1", "value": {"patient_id": 27392}, "q_tag": "what was the [time_filter_exact1] length of icu stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "459f50f07e9cf639a81a174a", "answer": ["4"]} {"db_id": "mimic_iii", "question": "give me the length of stay of patient 61683's last icu stay.", "template": "what was the last length of icu stay of patient 61683?", "query": "select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 61683 ) and icustays.outtime is not null order by icustays.intime desc limit 1", "value": {"patient_id": 61683}, "q_tag": "what was the [time_filter_exact1] length of icu stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of icu stay of patient {patient_id}?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f3e6da7974b07faab1e95e7d", "answer": ["1"]} {"db_id": "mimic_iii", "question": "tell me the length of stay of patient 19352's first intensive care unit stay.", "template": "what was the first length of icu stay of patient 19352?", "query": "select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19352 ) and icustays.outtime is not null order by icustays.intime asc limit 1", "value": {"patient_id": 19352}, "q_tag": "what was the [time_filter_exact1] length of icu stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] length of icu stay of patient {patient_id}?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1b96373182510d5d53fa9dc8", "answer": ["11"]} {"db_id": "mimic_iii", "question": "calculate the los of patient 28037's last icu stay.", "template": "what was the last length of icu stay of patient 28037?", "query": "select strftime('%j',icustays.outtime) - strftime('%j',icustays.intime) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28037 ) and icustays.outtime is not null order by icustays.intime desc limit 1", "value": {"patient_id": 28037}, "q_tag": "what was the [time_filter_exact1] length of icu stay of patient {patient_id}?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] length of icu stay of patient {patient_id}?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1fe1bf995f78af1110823c50", "answer": ["4"]} {"db_id": "mimic_iii", "question": "when was patient 1232 diagnosed with sed,hyp,anxiolytc ab-con until 2103 for the last time?", "template": "when was the last time that patient 1232 was diagnosed with sed,hyp,anxiolytc ab-con until 2103?", "query": "select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'sed,hyp,anxiolytc ab-con' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1232 ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' order by diagnoses_icd.charttime desc limit 1", "value": {"diagnosis_name": "sed,hyp,anxiolytc ab-con", "patient_id": 1232}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9141b8164f4930359fff267e", "answer": ["2102-03-31 23:58:00"]} {"db_id": "mimic_iii", "question": "when was the first time patient 30296 has been diagnosed with liver transplant status since 2105?", "template": "when was the first time that patient 30296 was diagnosed with liver transplant status since 2105?", "query": "select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'liver transplant status' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30296 ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' order by diagnoses_icd.charttime asc limit 1", "value": {"diagnosis_name": "liver transplant status", "patient_id": 30296}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "77bc6198500653e5801ff76b", "answer": ["2105-05-27 23:43:00"]} {"db_id": "mimic_iii", "question": "when was patient 15135 diagnosed with undeterm pois-psychotrop for the first time?", "template": "when was the first time that patient 15135 was diagnosed with undeterm pois-psychotrop?", "query": "select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'undeterm pois-psychotrop' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15135 ) order by diagnoses_icd.charttime asc limit 1", "value": {"diagnosis_name": "undeterm pois-psychotrop", "patient_id": 15135}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f899dbb9fec01d40600ddb43", "answer": ["2105-02-14 04:51:00"]} {"db_id": "mimic_iii", "question": "tell me the time when patient 48868 was last diagnosed with ac salpingo-oophoritis in their last hospital visit?", "template": "when was the last time that patient 48868 was diagnosed with ac salpingo-oophoritis on the last hospital visit?", "query": "select diagnoses_icd.charttime from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ac salpingo-oophoritis' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 48868 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by diagnoses_icd.charttime desc limit 1", "value": {"diagnosis_name": "ac salpingo-oophoritis", "patient_id": 48868}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was diagnosed with {diagnosis_name} [time_filter_global1:rel-hosp-last]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5ac54a100bd6d10b2a80d737", "answer": ["2102-06-06 21:41:00"]} {"db_id": "mimic_iii", "question": " what was patient 11914's first procedure time?", "template": "when was the first procedure time of patient 11914?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11914 ) order by procedures_icd.charttime asc limit 1", "value": {"patient_id": 11914}, "q_tag": "when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:null]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ad9f5b30bec8df0a44f63cb8", "answer": ["2105-02-14 15:00:00"]} {"db_id": "mimic_iii", "question": "when patient 21134 received the procedure for the last time in 2105?", "template": "when was the last procedure time of patient 21134 in 2105?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 21134 ) and strftime('%Y',procedures_icd.charttime) = '2105' order by procedures_icd.charttime desc limit 1", "value": {"patient_id": 21134}, "q_tag": "when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] procedure time of patient {patient_id} [time_filter_global1:abs-year-in]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "802fd0023da8f0b8db3a4ac8", "answer": ["2105-09-12 12:45:00"]} {"db_id": "mimic_iii", "question": "when did patient 94937 have a procedure for the first time since 2105?", "template": "when was the first procedure time of patient 94937 since 2105?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 94937 ) and strftime('%Y',procedures_icd.charttime) >= '2105' order by procedures_icd.charttime asc limit 1", "value": {"patient_id": 94937}, "q_tag": "when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:abs-year-since]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "716f734240d8f833f480c459", "answer": ["2105-01-21 15:11:00"]} {"db_id": "mimic_iii", "question": "when did patient 43052 get a procedure for the last time since 1 year ago?", "template": "when was the last procedure time of patient 43052 since 1 year ago?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 43052 ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-1 year') order by procedures_icd.charttime desc limit 1", "value": {"patient_id": 43052}, "q_tag": "when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] procedure time of patient {patient_id} [time_filter_global1:rel-year-since]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5f6aba2c6c2a1b10480e2ac6", "answer": ["2105-04-29 19:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 19040 first get a procedure on their first hospital visit?", "template": "when was the first procedure time of patient 19040 on the first hospital visit?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19040 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) order by procedures_icd.charttime asc limit 1", "value": {"patient_id": 19040}, "q_tag": "when was the [time_filter_exact1] procedure time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] procedure time of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b5a34bda01e7e7547e59db44", "answer": ["2103-03-07 14:30:00"]} {"db_id": "mimic_iii", "question": "when did patient 25050 last receive spinal tap since 1 year ago?", "template": "when was the last time that patient 25050 received a spinal tap procedure since 1 year ago?", "query": "select procedures_icd.charttime from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'spinal tap' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25050 ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-1 year') order by procedures_icd.charttime desc limit 1", "value": {"patient_id": 25050, "procedure_name": "spinal tap"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0d02a86db807f197b487c2ae", "answer": ["2105-12-26 14:14:00"]} {"db_id": "mimic_iii", "question": "when is the last time patient 9566 was prescribed a drug since 07/2105?", "template": "when was the last prescription time of patient 9566 since 07/2105?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9566 ) and strftime('%Y-%m',prescriptions.startdate) >= '2105-07' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 9566}, "q_tag": "when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7a34b0f4185bba3b42a8da09", "answer": ["2105-12-31 00:00:00"]} {"db_id": "mimic_iii", "question": "what time was the last time that patient 9241 was prescribed medicine during the first hospital encounter?", "template": "when was the last prescription time of patient 9241 on the first hospital visit?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9241 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) order by prescriptions.startdate desc limit 1", "value": {"patient_id": 9241}, "q_tag": "when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "481f90b140b912168e08d937", "answer": ["2105-10-09 00:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 51858 last prescribed for a medication since 12/2105?", "template": "when was the last prescription time of patient 51858 since 12/2105?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 51858 ) and strftime('%Y-%m',prescriptions.startdate) >= '2105-12' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 51858}, "q_tag": "when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2a20dbf2b06f8806d05ded5a", "answer": ["2105-12-31 00:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 15107 last receive a prescription in 11/2104?", "template": "when was the last prescription time of patient 15107 in 11/2104?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15107 ) and strftime('%Y-%m',prescriptions.startdate) = '2104-11' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 15107}, "q_tag": "when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9abd6004bb951725a0f20de9", "answer": ["2104-11-28 00:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 47295 have a prescription for the last time until 09/2104?", "template": "when was the last prescription time of patient 47295 until 09/2104?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 47295 ) and strftime('%Y-%m',prescriptions.startdate) <= '2104-09' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 47295}, "q_tag": "when was the [time_filter_exact1] prescription time of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] prescription time of patient {patient_id} [time_filter_global1:abs-month-until]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "63e00d542bee1449aa06c339", "answer": ["2100-05-04 00:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 22517 first get prescribed vancomycin in 05/2102?", "template": "when was the first time that patient 22517 was prescribed vancomycin in 05/2102?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 22517 ) and prescriptions.drug = 'vancomycin' and strftime('%Y-%m',prescriptions.startdate) = '2102-05' order by prescriptions.startdate asc limit 1", "value": {"patient_id": 22517, "drug_name": "vancomycin"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2dc72908d9d09b204bf933fb", "answer": ["2102-05-14 00:00:00"]} {"db_id": "mimic_iii", "question": "what was patient 20441's last prescription time for darunavir?", "template": "when was the last time that patient 20441 was prescribed darunavir?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20441 ) and prescriptions.drug = 'darunavir' order by prescriptions.startdate desc limit 1", "value": {"drug_name": "darunavir", "patient_id": 20441}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "23fe0fa5d37b3d67cd562b6b", "answer": ["2105-02-28 00:00:00"]} {"db_id": "mimic_iii", "question": "when iso-osmotic dextrose and insulin was prescribed to patient 50480 for the first time until 02/2100 at the same time?", "template": "when was the first time that patient 50480 was prescribed iso-osmotic dextrose and insulin at the same time until 02/2100?", "query": "select t1.startdate from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'iso-osmotic dextrose' and admissions.subject_id = 50480 and strftime('%Y-%m',prescriptions.startdate) <= '2100-02' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'insulin' and admissions.subject_id = 50480 and strftime('%Y-%m',prescriptions.startdate) <= '2100-02' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) order by t1.startdate asc limit 1", "value": {"drug_name1": "iso-osmotic dextrose", "drug_name2": "insulin", "patient_id": 50480}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within] [time_filter_global1]?", "t_tag": ["abs-month-until", "", "within-same", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within:within-same] [time_filter_global1:abs-month-until]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b0fbfe033a534e492e9a84ae", "answer": ["2100-01-30 00:00:00"]} {"db_id": "mimic_iii", "question": "in 04/2104, when was the last time patient 69289 was prescribed lactulose and potassium chloride at the same time?", "template": "when was the last time that patient 69289 was prescribed lactulose and potassium chloride at the same time in 04/2104?", "query": "select t1.startdate from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'lactulose' and admissions.subject_id = 69289 and strftime('%Y-%m',prescriptions.startdate) = '2104-04' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'potassium chloride' and admissions.subject_id = 69289 and strftime('%Y-%m',prescriptions.startdate) = '2104-04' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) order by t1.startdate desc limit 1", "value": {"drug_name1": "lactulose", "drug_name2": "potassium chloride", "patient_id": 69289}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within] [time_filter_global1]?", "t_tag": ["abs-month-in", "", "within-same", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed {drug_name1} and {drug_name2} [time_filter_within:within-same] [time_filter_global1:abs-month-in]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ca4d58dd610f9f2d5aae8cb7", "answer": ["2104-04-03 00:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 25869 prescribed for the first time since 16 months ago a medication via ng route?", "template": "when was the first time that patient 25869 was prescribed a medication via ng route since 16 month ago?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25869 ) and prescriptions.route = 'ng' and datetime(prescriptions.startdate) >= datetime(current_time,'-16 month') order by prescriptions.startdate asc limit 1", "value": {"patient_id": 25869, "drug_route": "ng"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:rel-month-since]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f4e93192cd3591345c83afd7", "answer": ["2105-04-15 00:00:00"]} {"db_id": "mimic_iii", "question": "when was the last time that patient 1902 was prescribed a medication via iv during the current hospital visit?", "template": "when was the last time that patient 1902 was prescribed a medication via iv route on the current hospital visit?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1902 and admissions.dischtime is null ) and prescriptions.route = 'iv' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 1902, "drug_route": "iv"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "322477de46bbd5d976ff9a21", "answer": ["2105-12-30 00:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 28775 prescribed a drug via im route for the last time in 03/2103?", "template": "when was the last time that patient 28775 was prescribed a medication via im route in 03/2103?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28775 ) and prescriptions.route = 'im' and strftime('%Y-%m',prescriptions.startdate) = '2103-03' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 28775, "drug_route": "im"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fbd93992ee3577b2e36d1450", "answer": ["2103-03-08 00:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 27362 first prescribed a medication via tp in 07/2104?", "template": "when was the first time that patient 27362 was prescribed a medication via tp route in 07/2104?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27362 ) and prescriptions.route = 'tp' and strftime('%Y-%m',prescriptions.startdate) = '2104-07' order by prescriptions.startdate asc limit 1", "value": {"patient_id": 27362, "drug_route": "tp"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} was prescribed a medication via {drug_route} route [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a53be07ad16b0dfafb8e274b", "answer": ["2104-07-24 00:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 78221 first receive a lab test until 11/2101?", "template": "when was the first lab test of patient 78221 until 11/2101?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 78221 ) and strftime('%Y-%m',labevents.charttime) <= '2101-11' order by labevents.charttime asc limit 1", "value": {"patient_id": 78221}, "q_tag": "when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:abs-month-until]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "defdcc800b8591360a11c1b2", "answer": ["2100-05-31 10:59:00"]} {"db_id": "mimic_iii", "question": "when did patient 11322 receive a lab test for the first time since 111 months ago?", "template": "when was the first lab test of patient 11322 since 111 month ago?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11322 ) and datetime(labevents.charttime) >= datetime(current_time,'-111 month') order by labevents.charttime asc limit 1", "value": {"patient_id": 11322}, "q_tag": "when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:rel-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c242036ca39432d57014c8b1", "answer": ["2104-12-05 07:30:00"]} {"db_id": "mimic_iii", "question": "when did patient 11322 get a lab test for the first time since 111 months ago?", "template": "when was the first lab test of patient 11322 since 111 month ago?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11322 ) and datetime(labevents.charttime) >= datetime(current_time,'-111 month') order by labevents.charttime asc limit 1", "value": {"patient_id": 11322}, "q_tag": "when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] lab test of patient {patient_id} [time_filter_global1:rel-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a3968313da0d679e0929653e", "answer": ["2104-12-05 07:30:00"]} {"db_id": "mimic_iii", "question": "when did patient 20034 last receive oxygen saturation test in 06/2104?", "template": "when was the last time that patient 20034 received a oxygen saturation lab test in 06/2104?", "query": "select labevents.charttime from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'oxygen saturation' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20034 ) and strftime('%Y-%m',labevents.charttime) = '2104-06' order by labevents.charttime desc limit 1", "value": {"lab_name": "oxygen saturation", "patient_id": 20034}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "49f4d2a4a7841b9b5a326eb8", "answer": ["2104-06-14 14:18:00"]} {"db_id": "mimic_iii", "question": "when did patient 3267 first have the maximum amount of phosphate in 05/2101?", "template": "when was the first time that patient 3267 had the maximum value of phosphate in 05/2101?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3267 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'phosphate' ) and strftime('%Y-%m',labevents.charttime) = '2101-05' order by labevents.valuenum desc, labevents.charttime asc limit 1", "value": {"lab_name": "phosphate", "patient_id": 3267}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "max", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had the [sort:max] value of {lab_name} [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2cb4e7220cc9a842fd4a686d", "answer": ["2101-05-30 03:35:00"]} {"db_id": "mimic_iii", "question": "when did patient 40059 first had the maximum number of anion gap during their current hospital encounter?", "template": "when was the first time that patient 40059 had the maximum value of anion gap on the current hospital visit?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 40059 and admissions.dischtime is null ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'anion gap' ) order by labevents.valuenum desc, labevents.charttime asc limit 1", "value": {"patient_id": 40059, "lab_name": "anion gap"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "max", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had the [sort:max] value of {lab_name} [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2afa95eea48fccec9e275e8a", "answer": ["2105-12-24 19:00:00"]} {"db_id": "mimic_iii", "question": "when was patient 10624's first minimum white blood cells ?'", "template": "when was the first time that patient 10624 had the minimum value of white blood cells?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10624 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'white blood cells' ) order by labevents.valuenum asc, labevents.charttime asc limit 1", "value": {"patient_id": 10624, "lab_name": "white blood cells"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "min", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had the [sort:min] value of {lab_name} [time_filter_global1:null]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cbef6d59f50d785fe46beee8", "answer": ["2105-12-20 01:45:00"]} {"db_id": "mimic_iii", "question": "in their first hospital encounter what was the first time of patient 25628's microbiology test?", "template": "when was the first microbiology test of patient 25628 on the first hospital visit?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25628 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) order by microbiologyevents.charttime asc limit 1", "value": {"patient_id": 25628}, "q_tag": "when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] microbiology test of patient {patient_id} [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "489d634796d7f3e8d8982513", "answer": ["2105-01-01 16:13:00"]} {"db_id": "mimic_iii", "question": "when was patient 29635's last microbiological examination when they came to the hospital last time?", "template": "when was the last microbiology test of patient 29635 on the last hospital visit?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29635 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 29635}, "q_tag": "when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:rel-hosp-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c130f54578de9fda4705632c", "answer": ["2103-08-19 17:30:00"]} {"db_id": "mimic_iii", "question": "when did patient 94956 last receive a microbiology test in 06/2105?", "template": "when was the last microbiology test of patient 94956 in 06/2105?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 94956 ) and strftime('%Y-%m',microbiologyevents.charttime) = '2105-06' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 94956}, "q_tag": "when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:abs-month-in]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "19e38617c3547920164934e6", "answer": ["2105-06-03 20:18:00"]} {"db_id": "mimic_iii", "question": "when did patient 9241 have a microbiology test for the last time since 04/2105?", "template": "when was the last microbiology test of patient 9241 since 04/2105?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9241 ) and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-04' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 9241}, "q_tag": "when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b643e6d8ed483e07db3d89da", "answer": ["2105-10-10 01:03:00"]} {"db_id": "mimic_iii", "question": "when did patient 70234 receive the first microbiological blood culture test since 02/2105?", "template": "when was patient 70234's first blood culture microbiology test since 02/2105?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 70234 ) and microbiologyevents.spec_type_desc = 'blood culture' and strftime('%Y-%m',microbiologyevents.charttime) >= '2105-02' order by microbiologyevents.charttime asc limit 1", "value": {"culture_name": "blood culture", "patient_id": 70234}, "q_tag": "when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e3ed37b791e6965097949d49", "answer": ["2105-06-05 17:50:00"]} {"db_id": "mimic_iii", "question": "when did patient 27964 get a sputum microbiology test for the last time until 11/2105?", "template": "when was patient 27964's last sputum microbiology test until 11/2105?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27964 ) and microbiologyevents.spec_type_desc = 'sputum' and strftime('%Y-%m',microbiologyevents.charttime) <= '2105-11' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 27964, "culture_name": "sputum"}, "q_tag": "when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was patient {patient_id}'s [time_filter_exact1:exact-last] {culture_name} microbiology test [time_filter_global1:abs-month-until]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2a6e4d300f9dceb0bd2854d5", "answer": ["2105-09-06 18:50:00"]} {"db_id": "mimic_iii", "question": "when did patient 3242 have a catheter tip-iv microbiology test for the first time in 01/2104?", "template": "when was patient 3242's first catheter tip-iv microbiology test in 01/2104?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3242 ) and microbiologyevents.spec_type_desc = 'catheter tip-iv' and strftime('%Y-%m',microbiologyevents.charttime) = '2104-01' order by microbiologyevents.charttime asc limit 1", "value": {"patient_id": 3242, "culture_name": "catheter tip-iv"}, "q_tag": "when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:abs-month-in]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "62900daae49c9298efff863f", "answer": ["2104-01-14 16:47:00"]} {"db_id": "mimic_iii", "question": "when did patient 15209 first receive a sputum test in their current hospital visit?", "template": "when was patient 15209's first sputum microbiology test on the current hospital visit?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15209 and admissions.dischtime is null ) and microbiologyevents.spec_type_desc = 'sputum' order by microbiologyevents.charttime asc limit 1", "value": {"patient_id": 15209, "culture_name": "sputum"}, "q_tag": "when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:rel-hosp-cur]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7615dc88b3e0f2c4cf332ca2", "answer": ["2105-12-30 11:00:00"]} {"db_id": "mimic_iii", "question": "what was the last time of patient 6170 taking .9% normal saline on the current intensive care unit visit?", "template": "when was the last time that patient 6170 had a .9% normal saline intake on the current icu visit?", "query": "select inputevents_cv.charttime from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 6170 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = '.9% normal saline' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 6170, "intake_name": ".9% normal saline"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9559630b71c034ac1ce8b4c1", "answer": ["2105-12-31 21:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 24547 have a lipids 20% intake for the last time?", "template": "when was the last time that patient 24547 had a lipids 20% intake?", "query": "select inputevents_cv.charttime from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24547 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'lipids 20%' and d_items.linksto = 'inputevents_cv' ) order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 24547, "intake_name": "lipids 20%"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:null]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4556b386ca6516a93eeb48ea", "answer": ["2104-08-31 00:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 9038 last have an intake since 663 days ago?", "template": "when was the last intake time of patient 9038 since 663 day ago?", "query": "select inputevents_cv.charttime from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9038 ) ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-663 day') order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 9038}, "q_tag": "when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-day-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:rel-day-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e76a094a603334d1260a7d77", "answer": ["2104-04-03 04:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 14321 receive an intake for the last time?", "template": "when was the last intake time of patient 14321?", "query": "select inputevents_cv.charttime from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14321 ) ) order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 14321}, "q_tag": "when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:null]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "95425f8285a76220b9d41a5c", "answer": ["2104-09-02 12:00:00"]} {"db_id": "mimic_iii", "question": "when had patient 739 had the last urine out foley output on the current intensive care unit visit?", "template": "when was the last time that patient 739 had a urine out foley output on the current icu visit?", "query": "select outputevents.charttime from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 739 ) and icustays.outtime is null ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out foley' and d_items.linksto = 'outputevents' ) order by outputevents.charttime desc limit 1", "value": {"output_name": "urine out foley", "patient_id": 739}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:rel-icu-cur]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d7f1697164c7479d7bdb09d5", "answer": ["2105-12-31 17:00:00"]} {"db_id": "mimic_iii", "question": "what was the last urine out foley-output time of patient 59049 since 02/24/2105?", "template": "when was the last time that patient 59049 had a urine out foley output since 02/24/2105?", "query": "select outputevents.charttime from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 59049 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out foley' and d_items.linksto = 'outputevents' ) and strftime('%Y-%m-%d',outputevents.charttime) >= '2105-02-24' order by outputevents.charttime desc limit 1", "value": {"patient_id": 59049, "output_name": "urine out foley"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?", "t_tag": ["abs-day-since", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:abs-day-since]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1561b2623a94c449d05ddf30", "answer": ["2105-06-14 10:45:00"]} {"db_id": "mimic_iii", "question": "when did patient 18866 last have a urine out foley event on the current icu visit?", "template": "when was the last time that patient 18866 had a urine out foley output on the current icu visit?", "query": "select outputevents.charttime from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18866 ) and icustays.outtime is null ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out foley' and d_items.linksto = 'outputevents' ) order by outputevents.charttime desc limit 1", "value": {"patient_id": 18866, "output_name": "urine out foley"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:rel-icu-cur]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "be3026877e5eb735a09710df", "answer": ["2105-12-31 23:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 9294 first have a arterial bp [systolic] measured on the first intensive care unit visit?", "template": "when was the first time that patient 9294 had a arterial bp [systolic] measured on the first icu visit?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9294 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1", "value": {"vital_name": "arterial bp [systolic]", "patient_id": 9294}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?", "t_tag": ["rel-icu-first", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:rel-icu-first]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "cfc9001c3adc47808820177a", "answer": ["2105-12-01 17:15:00"]} {"db_id": "mimic_iii", "question": "when was the first time that the arterial bp [diastolic] of patient 1561 was measured or taken since 12/31/2102?", "template": "when was the first time that patient 1561 had a arterial bp [diastolic] measured since 12/31/2102?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1561 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) >= '2102-12-31' order by chartevents.charttime asc limit 1", "value": {"patient_id": 1561, "vital_name": "arterial bp [diastolic]"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?", "t_tag": ["abs-day-since", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:abs-day-since]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e0257d16478adb486f896673", "answer": ["2105-12-29 23:00:00"]} {"db_id": "mimic_iii", "question": "tell me when was the first time that patient 20603 measured arterial bp mean?", "template": "when was the first time that patient 20603 had a arterial bp mean measured?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20603 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1", "value": {"patient_id": 20603, "vital_name": "arterial bp mean"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?", "t_tag": ["", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cd3ef4e0aff8302268d1d279", "answer": ["2105-10-15 18:33:00"]} {"db_id": "mimic_iii", "question": "when was patient 4401's arterial bp mean first measured on the current icu visit?", "template": "when was the first time that patient 4401 had a arterial bp mean measured on the current icu visit?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4401 ) and icustays.outtime is null ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) order by chartevents.charttime asc limit 1", "value": {"patient_id": 4401, "vital_name": "arterial bp mean"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "244a348806cf6e5c0cfbf9b5", "answer": ["2105-12-29 19:25:00"]} {"db_id": "mimic_iii", "question": "i just want to ask when the last time patient 28443 had a arterial bp [systolic] less than 152.0 on the current icu visit?", "template": "when was the last time that the arterial bp [systolic] of patient 28443 was less than 152.0 on the current icu visit?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28443 ) and icustays.outtime is null ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) and chartevents.valuenum < 152.0 order by chartevents.charttime desc limit 1", "value": {"patient_id": 28443, "vital_name": "arterial bp [systolic]", "vital_value": 152.0}, "q_tag": "when was the [time_filter_exact1] time that the {vital_name} of patient {patient_id} was [comparison] than {vital_value} [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "exact-last", ""], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that the {vital_name} of patient {patient_id} was [comparison:less] than {vital_value} [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ec59e8c59f81f71c6f2136f6", "answer": ["2105-12-31 21:05:00"]} {"db_id": "mimic_iii", "question": "when did patient 31239 first have their maximum heart rate until 09/12/2104?", "template": "when was the first time that patient 31239 had the maximum heart rate until 09/12/2104?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31239 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) <= '2104-09-12' order by chartevents.valuenum desc, chartevents.charttime asc limit 1", "value": {"vital_name": "heart rate", "patient_id": 31239}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?", "t_tag": ["abs-day-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "max", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had the [sort:max] {vital_name} [time_filter_global1:abs-day-until]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a0f7eb776e5c81f4a36a3aed", "answer": ["2102-06-01 03:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 13837 first have the minimum value of arterial bp mean on 05/20/2105?", "template": "when was the first time that patient 13837 had the minimum arterial bp mean on 05/20/2105?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 13837 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m-%d',chartevents.charttime) = '2105-05-20' order by chartevents.valuenum asc, chartevents.charttime asc limit 1", "value": {"vital_name": "arterial bp mean", "patient_id": 13837}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?", "t_tag": ["abs-day-in", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "min", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had the [sort:min] {vital_name} [time_filter_global1:abs-day-in]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b0ad026c2ffd6f809d7be19b", "answer": ["2105-05-20 22:00:00"]} {"db_id": "mimic_iii", "question": "when did patient 14836 last have the maximum heart rate value on the first icu visit?", "template": "when was the last time that patient 14836 had the maximum heart rate on the first icu visit?", "query": "select chartevents.charttime from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14836 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) order by chartevents.valuenum desc, chartevents.charttime desc limit 1", "value": {"vital_name": "heart rate", "patient_id": 14836}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?", "t_tag": ["rel-icu-first", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "max", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that patient {patient_id} had the [sort:max] {vital_name} [time_filter_global1:rel-icu-first]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "99452613adb8aa969eedac8e", "answer": ["2105-02-20 05:00:00"]} {"db_id": "mimic_iii", "question": "has patient 59941 visited the hospital since 2100?", "template": "has patient 59941 been admitted to the hospital since 2100?", "query": "select count(*)>0 from admissions where admissions.subject_id = 59941 and strftime('%Y',admissions.admittime) >= '2100'", "value": {"patient_id": 59941}, "q_tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-since]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "67985b6fa2395ca6ca5e4af9", "answer": ["1"]} {"db_id": "mimic_iii", "question": "does patient 43959 go to a hospital in 2105?", "template": "has patient 43959 been admitted to the hospital in 2105?", "query": "select count(*)>0 from admissions where admissions.subject_id = 43959 and strftime('%Y',admissions.admittime) = '2105'", "value": {"patient_id": 43959}, "q_tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4a4df0259231e26b61e16ba6", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 80858 got admitted to an admission until 2104?", "template": "has patient 80858 been admitted to the hospital until 2104?", "query": "select count(*)>0 from admissions where admissions.subject_id = 80858 and strftime('%Y',admissions.admittime) <= '2104'", "value": {"patient_id": 80858}, "q_tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5e01b476c65b073a2cd3034e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 80858 made to an admission until 2104?", "template": "has patient 80858 been admitted to the hospital until 2104?", "query": "select count(*)>0 from admissions where admissions.subject_id = 80858 and strftime('%Y',admissions.admittime) <= '2104'", "value": {"patient_id": 80858}, "q_tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a5a1d2c8773903ee9f5fb230", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 12938 visit the hospital since 5 years ago?", "template": "has patient 12938 been admitted to the hospital since 5 year ago?", "query": "select count(*)>0 from admissions where admissions.subject_id = 12938 and datetime(admissions.admittime) >= datetime(current_time,'-5 year')", "value": {"patient_id": 12938}, "q_tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:rel-year-since]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b7a3f1e438ef6994915473d7", "answer": ["1"]} {"db_id": "mimic_iii", "question": "in a year before was patient 18677 admitted to the er?", "template": "has patient 18677 been to an emergency room last year?", "query": "select count(*)>0 from admissions where admissions.subject_id = 18677 and admissions.admission_location = 'emergency room admit' and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 18677}, "q_tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "60f10cac68b0a1bc74fe5d23", "answer": ["0"]} {"db_id": "mimic_iii", "question": "had patient 2700 been to er until 2104?", "template": "has patient 2700 been to an emergency room until 2104?", "query": "select count(*)>0 from admissions where admissions.subject_id = 2700 and admissions.admission_location = 'emergency room admit' and strftime('%Y',admissions.admittime) <= '2104'", "value": {"patient_id": 2700}, "q_tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1:abs-year-until]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "06bbe223e1146c4a035a4466", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 5520 visit an er in the last year?", "template": "has patient 5520 been to an emergency room last year?", "query": "select count(*)>0 from admissions where admissions.subject_id = 5520 and admissions.admission_location = 'emergency room admit' and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 5520}, "q_tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-last]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fa40038e9869b9a7d08138a4", "answer": ["0"]} {"db_id": "mimic_iii", "question": "did patient 27703 go to an emergency room during this year?", "template": "has patient 27703 been to an emergency room this year?", "query": "select count(*)>0 from admissions where admissions.subject_id = 27703 and admissions.admission_location = 'emergency room admit' and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 27703}, "q_tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-this]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9422571b432f439842d595f3", "answer": ["0"]} {"db_id": "mimic_iii", "question": "until 2104, patient 7073 underwent any procedure?", "template": "has patient 7073 received any procedure until 2104?", "query": "select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7073 ) and strftime('%Y',procedures_icd.charttime) <= '2104'", "value": {"patient_id": 7073}, "q_tag": "has_verb patient {patient_id} received any procedure [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any procedure [time_filter_global1:abs-year-until]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "afca90c770af72374d324591", "answer": ["1"]} {"db_id": "mimic_iii", "question": "had patient 12797 underwent any procedure until 2102?", "template": "has patient 12797 received any procedure until 2102?", "query": "select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12797 ) and strftime('%Y',procedures_icd.charttime) <= '2102'", "value": {"patient_id": 12797}, "q_tag": "has_verb patient {patient_id} received any procedure [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any procedure [time_filter_global1:abs-year-until]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f22118dc1fc4193f62d412bb", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 18223 had any procedure on their first hospital encounter?", "template": "has patient 18223 received any procedure on the first hospital visit?", "query": "select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18223 and admissions.dischtime is not null order by admissions.admittime asc limit 1 )", "value": {"patient_id": 18223}, "q_tag": "has_verb patient {patient_id} received any procedure [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any procedure [time_filter_global1:rel-hosp-first]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2d5f53fca775e30ab8d812d6", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 24118 have any procedure?", "template": "has patient 24118 received any procedure?", "query": "select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24118 )", "value": {"patient_id": 24118}, "q_tag": "has_verb patient {patient_id} received any procedure [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any procedure [time_filter_global1:null]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f7dd6e9a231859025e938505", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 48706 get any procedure a year before?", "template": "has patient 48706 received any procedure last year?", "query": "select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 48706 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 48706}, "q_tag": "has_verb patient {patient_id} received any procedure [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any procedure [time_filter_global1:rel-year-last]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b4717ba28107ac536c7dd39b", "answer": ["0"]} {"db_id": "mimic_iii", "question": "patient 60219 has undergone inject/inf thrombo agent until 2104?", "template": "has patient 60219 received a inject/inf thrombo agent procedure until 2104?", "query": "select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'inject/inf thrombo agent' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60219 ) and strftime('%Y',procedures_icd.charttime) <= '2104'", "value": {"patient_id": 60219, "procedure_name": "inject/inf thrombo agent"}, "q_tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-until]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0c9ff72211b1e7d516c6ec13", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 16472 underwent a cl red-int fix rad/ulna procedure this year?", "template": "has patient 16472 received a cl red-int fix rad/ulna procedure this year?", "query": "select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'cl red-int fix rad/ulna' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16472 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"procedure_name": "cl red-int fix rad/ulna", "patient_id": 16472}, "q_tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-this]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "52fbfd5277cdbf4c173febe0", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 83466 received any excise lg intestine les procedure in a year before?", "template": "has patient 83466 received a excise lg intestine les procedure last year?", "query": "select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'excise lg intestine les' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83466 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"procedure_name": "excise lg intestine les", "patient_id": 83466}, "q_tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6e7170679bd8f729a8b3e6cc", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 83466 undergone any excise lg intestine les last year?", "template": "has patient 83466 received a excise lg intestine les procedure last year?", "query": "select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'excise lg intestine les' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83466 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"procedure_name": "excise lg intestine les", "patient_id": 83466}, "q_tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e3ff449f185d88a0b80c1f04", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 12274 undergone any coronar arteriogr-1 cath treatment in 2105?", "template": "has patient 12274 received a coronar arteriogr-1 cath procedure in 2105?", "query": "select count(*)>0 from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'coronar arteriogr-1 cath' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12274 ) and strftime('%Y',procedures_icd.charttime) = '2105'", "value": {"patient_id": 12274, "procedure_name": "coronar arteriogr-1 cath"}, "q_tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-in]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0d7f31223f75a347bcaf30a8", "answer": ["1"]} {"db_id": "mimic_iii", "question": "what is the treatment that patient 15209 has been given two or more times since 04/2101?", "template": "what was the name of the procedure that patient 15209 received two or more times since 04/2101?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, count( procedures_icd.charttime ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 15209 ) and strftime('%Y-%m',procedures_icd.charttime) >= '2101-04' group by procedures_icd.icd9_code ) as t1 where t1.c1 >= 2 )", "value": {"patient_id": 15209}, "q_tag": "what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} received [n_times:two or more times] [time_filter_global1:abs-month-since]?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e514c947859d0573e4566f81", "answer": ["insert endotracheal tube", "cont inv mec ven 96+ hrs"]} {"db_id": "mimic_iii", "question": "what is the name of the procedure that was given two or more times to patient 27362?", "template": "what was the name of the procedure that patient 27362 received two or more times?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, count( procedures_icd.charttime ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27362 ) group by procedures_icd.icd9_code ) as t1 where t1.c1 >= 2 )", "value": {"patient_id": 27362}, "q_tag": "what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} received [n_times:two or more times] [time_filter_global1:null]?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9a170a16287db4c19118b0f2", "answer": ["insert endotracheal tube", "cont inv mec ven <96 hrs"]} {"db_id": "mimic_iii", "question": "has patient 12775 had any kind of diagnosis in this year?", "template": "has patient 12775 received any diagnosis this year?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12775 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 12775}, "q_tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f1c861873e384e87b43cefbb", "answer": ["0"]} {"db_id": "mimic_iii", "question": "patient 81223 has any disease diagnosed during the last year?", "template": "has patient 81223 received any diagnosis last year?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 81223 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 81223}, "q_tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ae92e303783e965022d9e08d", "answer": ["0"]} {"db_id": "mimic_iii", "question": "was patient 72198 diagnosed with any in 2105?", "template": "has patient 72198 received any diagnosis in 2105?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 72198 ) and strftime('%Y',diagnoses_icd.charttime) = '2105'", "value": {"patient_id": 72198}, "q_tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b573f4a92e72c3860557f172", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 9474 been diagnosed with any since 1 year ago?", "template": "has patient 9474 received any diagnosis since 1 year ago?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9474 ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-1 year')", "value": {"patient_id": 9474}, "q_tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "191454719b23854f72264a60", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 31141 been in 2105 diagnosed with hx of bladder malignancy?", "template": "has patient 31141 been diagnosed with hx of bladder malignancy in 2105?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hx of bladder malignancy' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31141 ) and strftime('%Y',diagnoses_icd.charttime) = '2105'", "value": {"diagnosis_name": "hx of bladder malignancy", "patient_id": 31141}, "q_tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e77f7b4804aea8aa43160227", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 30763 received until 1 year ago a delirium d/t other cond diagnosis?", "template": "has patient 30763 been diagnosed with delirium d/t other cond until 1 year ago?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'delirium d/t other cond' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30763 ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-1 year')", "value": {"patient_id": 30763, "diagnosis_name": "delirium d/t other cond"}, "q_tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "12759d4e09a13164ac7f3e3f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 20589 received a nodular lymphoma mult diagnosis during their last hospital visit?", "template": "has patient 20589 been diagnosed with nodular lymphoma mult on the last hospital visit?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'nodular lymphoma mult' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20589 and admissions.dischtime is not null order by admissions.admittime desc limit 1 )", "value": {"patient_id": 20589, "diagnosis_name": "nodular lymphoma mult"}, "q_tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:rel-hosp-last]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "85de127971bbdf5b860164e3", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 65569 got a fx c2 vertebra-closed diagnosis since 2105?", "template": "has patient 65569 been diagnosed with fx c2 vertebra-closed since 2105?", "query": "select count(*)>0 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'fx c2 vertebra-closed' ) and diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 65569 ) and strftime('%Y',diagnoses_icd.charttime) >= '2105'", "value": {"diagnosis_name": "fx c2 vertebra-closed", "patient_id": 65569}, "q_tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "be81145db92b01e8e6fba5b3", "answer": ["1"]} {"db_id": "mimic_iii", "question": "have quetiapine fumarate, phenylephrine, or ondansetron been ordered for patient 1372 until 05/2101?", "template": "has patient 1372 been prescribed quetiapine fumarate, phenylephrine, or ondansetron until 05/2101?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1372 ) and prescriptions.drug in ( 'quetiapine fumarate', 'phenylephrine', 'ondansetron' ) and strftime('%Y-%m',prescriptions.startdate) <= '2101-05'", "value": {"drug_name1": "quetiapine fumarate", "drug_name2": "phenylephrine", "drug_name3": "ondansetron", "patient_id": 1372}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:abs-month-until]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "59e5218889867e4236a67613", "answer": ["1"]} {"db_id": "mimic_iii", "question": "have patient 24971 been prescribed with the medication warfarin, albuterol mdi, or glucagon on the last hospital visit?", "template": "has patient 24971 been prescribed warfarin, albuterol mdi, or glucagon on the last hospital visit?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24971 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and prescriptions.drug in ( 'warfarin', 'albuterol mdi', 'glucagon' )", "value": {"drug_name1": "warfarin", "drug_name2": "albuterol mdi", "drug_name3": "glucagon", "patient_id": 24971}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:rel-hosp-last]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8dc2eeb5a62e78e76cf64c33", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has neostigmine, ns, or morphine sulfate been prescribed for patient 25847 since 02/2101?", "template": "has patient 25847 been prescribed neostigmine, ns, or morphine sulfate since 02/2101?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25847 ) and prescriptions.drug in ( 'neostigmine', 'ns', 'morphine sulfate' ) and strftime('%Y-%m',prescriptions.startdate) >= '2101-02'", "value": {"drug_name1": "neostigmine", "drug_name2": "ns", "drug_name3": "morphine sulfate", "patient_id": 25847}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:abs-month-since]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a9165d121522194f36cbcfa0", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 1372 been ordered quetiapine fumarate, potassium chloride, or furosemide?", "template": "has patient 1372 been prescribed quetiapine fumarate, potassium chloride, or furosemide?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1372 ) and prescriptions.drug in ( 'quetiapine fumarate', 'potassium chloride', 'furosemide' )", "value": {"drug_name1": "quetiapine fumarate", "drug_name2": "potassium chloride", "drug_name3": "furosemide", "patient_id": 1372}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:null]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "399cd858d023c6cdea9922b6", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 50480 ever had a medication prescribed until 1 year ago?", "template": "has patient 50480 been prescribed any medication until 1 year ago?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 50480 ) and datetime(prescriptions.startdate) <= datetime(current_time,'-1 year')", "value": {"patient_id": 50480}, "q_tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-year-until]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6e4879c63dd607f2cf9c69cc", "answer": ["0"]} {"db_id": "mimic_iii", "question": "was there any medicine prescribed until 2104 for patient 26612?", "template": "has patient 26612 been prescribed any medication until 2104?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26612 ) and strftime('%Y',prescriptions.startdate) <= '2104'", "value": {"patient_id": 26612}, "q_tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1:abs-year-until]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af26c6d4b50f677c1a9b08a6", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 86404 have any medication since 2101?", "template": "has patient 86404 been prescribed any medication since 2101?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 86404 ) and strftime('%Y',prescriptions.startdate) >= '2101'", "value": {"patient_id": 86404}, "q_tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1:abs-year-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c96727b26593465dd732d3c5", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 67418 receive any medication until 104 months ago?", "template": "has patient 67418 been prescribed any medication until 104 month ago?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 67418 ) and datetime(prescriptions.startdate) <= datetime(current_time,'-104 month')", "value": {"patient_id": 67418}, "q_tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?", "t_tag": ["rel-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-month-until]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b9368365ab1ac17fefd3a9fe", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 28447 received any medication this month?", "template": "has patient 28447 been prescribed any medication this month?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28447 ) and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"patient_id": 28447}, "q_tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-month-this]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ad59688d78cbc2f58be5ee73", "answer": ["0"]} {"db_id": "mimic_iii", "question": "did any phenytoin (suspension) ever been prescribed to patient 77980 until 4 years ago?", "template": "has patient 77980 been prescribed phenytoin (suspension) until 4 year ago?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 77980 ) and prescriptions.drug = 'phenytoin (suspension)' and datetime(prescriptions.startdate) <= datetime(current_time,'-4 year')", "value": {"drug_name": "phenytoin (suspension)", "patient_id": 77980}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:rel-year-until]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bd9efe22ef00dadaa4aaeca3", "answer": ["0"]} {"db_id": "mimic_iii", "question": "have vial been prescribed to patient 23475?", "template": "has patient 23475 been prescribed vial?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 23475 ) and prescriptions.drug = 'vial'", "value": {"patient_id": 23475, "drug_name": "vial"}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:null]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "24a4bc388d88e82338012184", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has metoclopramide ever been prescribed to patient 10855 in 2105?", "template": "has patient 10855 been prescribed metoclopramide in 2105?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10855 ) and prescriptions.drug = 'metoclopramide' and strftime('%Y',prescriptions.startdate) = '2105'", "value": {"patient_id": 10855, "drug_name": "metoclopramide"}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:abs-year-in]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "51adb8534e511d48976b4e98", "answer": ["1"]} {"db_id": "mimic_iii", "question": "tell me whether patient 25523 been prescribed insulin since 62 months ago?", "template": "has patient 25523 been prescribed insulin since 62 month ago?", "query": "select count(*)>0 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 25523 ) and prescriptions.drug = 'insulin' and datetime(prescriptions.startdate) >= datetime(current_time,'-62 month')", "value": {"patient_id": 25523, "drug_name": "insulin"}, "q_tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:rel-month-since]?", "department": "['other', 'physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "22f4cb5f12bd9bc4ede1e3c0", "answer": ["1"]} {"db_id": "mimic_iii", "question": "have patient 18237 had any lab testing done in 05/2105?", "template": "has patient 18237 received any lab test in 05/2105?", "query": "select count(*)>0 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18237 ) and strftime('%Y-%m',labevents.charttime) = '2105-05'", "value": {"patient_id": 18237}, "q_tag": "has_verb patient {patient_id} received any lab test [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any lab test [time_filter_global1:abs-month-in]?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "abd6644ec15a399b94415605", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 10425 had a lab test done since 6 years ago?", "template": "has patient 10425 received any lab test since 6 year ago?", "query": "select count(*)>0 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10425 ) and datetime(labevents.charttime) >= datetime(current_time,'-6 year')", "value": {"patient_id": 10425}, "q_tag": "has_verb patient {patient_id} received any lab test [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any lab test [time_filter_global1:rel-year-since]?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "92f7a1a3407387423fdd17cf", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 66015 got any lab test since 10/2103?", "template": "has patient 66015 received any lab test since 10/2103?", "query": "select count(*)>0 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 66015 ) and strftime('%Y-%m',labevents.charttime) >= '2103-10'", "value": {"patient_id": 66015}, "q_tag": "has_verb patient {patient_id} received any lab test [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any lab test [time_filter_global1:abs-month-since]?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e68c4a4c6abdf3912c5947f2", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 30509 get any lab test?", "template": "has patient 30509 received any lab test?", "query": "select count(*)>0 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30509 )", "value": {"patient_id": 30509}, "q_tag": "has_verb patient {patient_id} received any lab test [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received any lab test [time_filter_global1:null]?", "department": "['insurance_review']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9ebb076ae2b7f49bcd138b84", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 14054 had any lab tests performed for eosinophils since 2105?", "template": "has patient 14054 received a eosinophils lab test since 2105?", "query": "select count(*)>0 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'eosinophils' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14054 ) and strftime('%Y',labevents.charttime) >= '2105'", "value": {"patient_id": 14054, "lab_name": "eosinophils"}, "q_tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:abs-year-since]?", "department": "['insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "23d8704f23b7a7920f93b0a7", "answer": ["1"]} {"db_id": "mimic_iii", "question": "patient 60136 has been tested for granular casts in this hospital encounter?", "template": "has patient 60136 received a granular casts lab test on the current hospital visit?", "query": "select count(*)>0 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'granular casts' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 60136 and admissions.dischtime is null )", "value": {"lab_name": "granular casts", "patient_id": 60136}, "q_tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-hosp-cur]?", "department": "['insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2f49544d52301390f70575b8", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 97834 got a creatinine test?", "template": "has patient 97834 received a creatinine lab test?", "query": "select count(*)>0 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatinine' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 97834 )", "value": {"patient_id": 97834, "lab_name": "creatinine"}, "q_tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:null]?", "department": "['insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fe85f5dd547bcccec019c59f", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has patient 7107 had a potassium test during this month?", "template": "has patient 7107 received a potassium lab test this month?", "query": "select count(*)>0 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 7107 ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"patient_id": 7107, "lab_name": "potassium"}, "q_tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-this]?", "department": "['insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a41eb6a2f2f814c5d8a784ed", "answer": ["0"]} {"db_id": "mimic_iii", "question": "does a microbiological test have been performed for patient 10539 until 2103?", "template": "has patient 10539 had any microbiology test result until 2103?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10539 ) and strftime('%Y',microbiologyevents.charttime) <= '2103'", "value": {"patient_id": 10539}, "q_tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f8bea5d4d106a337a9c101b4", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is there any record of patient 16554's microbiology test in 2104?", "template": "has patient 16554 had any microbiology test result in 2104?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16554 ) and strftime('%Y',microbiologyevents.charttime) = '2104'", "value": {"patient_id": 16554}, "q_tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-year-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d0ce9c907b512ca9b73e8b57", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is there any microbiology test history for patient 49141 since 1 year ago?", "template": "has patient 49141 had any microbiology test result since 1 year ago?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 49141 ) and datetime(microbiologyevents.charttime) >= datetime(current_time,'-1 year')", "value": {"patient_id": 49141}, "q_tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1:rel-year-since]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "41be06403ce7033b513d8d76", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is there any microbiology test result for patient 808 in 12/2105?", "template": "has patient 808 had any microbiology test result in 12/2105?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 808 ) and strftime('%Y-%m',microbiologyevents.charttime) = '2105-12'", "value": {"patient_id": 808}, "q_tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2eefb615882e74230fcf08d3", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is there any microbiology test result of patient 12927 during their current hospital encounter?", "template": "has patient 12927 had any microbiology test result on the current hospital visit?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12927 and admissions.dischtime is null )", "value": {"patient_id": 12927}, "q_tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any microbiology test result [time_filter_global1:rel-hosp-cur]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7227ec91d56dc7038a64d4ad", "answer": ["1"]} {"db_id": "mimic_iii", "question": "was there any record of the microbiology test for the mrsa screen of patient 14990 until 10/2104?", "template": "has patient 14990 had any mrsa screen microbiology test result until 10/2104?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14990 ) and microbiologyevents.spec_type_desc = 'mrsa screen' and strftime('%Y-%m',microbiologyevents.charttime) <= '2104-10'", "value": {"patient_id": 14990, "culture_name": "mrsa screen"}, "q_tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-until]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d4bdee4d1784291211e97682", "answer": ["1"]} {"db_id": "mimic_iii", "question": "was there any results of microbiology tests for the stool (received in transport system) of patient 6196 during the last hospital visit?", "template": "has patient 6196 had any stool (received in transport system) microbiology test result on the last hospital visit?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 6196 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) and microbiologyevents.spec_type_desc = 'stool (received in transport system)'", "value": {"culture_name": "stool (received in transport system)", "patient_id": 6196}, "q_tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:rel-hosp-last]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7d3b766c9eb1982c0cdb4cd4", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is there any microbiology test history for patient 71558's viral culture: r/o cytomegalovirus since 10/2102?", "template": "has patient 71558 had any viral culture: r/o cytomegalovirus microbiology test result since 10/2102?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 71558 ) and microbiologyevents.spec_type_desc = 'viral culture: r/o cytomegalovirus' and strftime('%Y-%m',microbiologyevents.charttime) >= '2102-10'", "value": {"culture_name": "viral culture: r/o cytomegalovirus", "patient_id": 71558}, "q_tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bfc8bb799a741d7e65ea2085", "answer": ["1"]} {"db_id": "mimic_iii", "question": "has any microbiology test been held to patient 96006's blood culture on their first hospital visit?", "template": "has patient 96006 had any blood culture microbiology test result on the first hospital visit?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96006 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) and microbiologyevents.spec_type_desc = 'blood culture'", "value": {"patient_id": 96006, "culture_name": "blood culture"}, "q_tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:rel-hosp-first]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1539397799b865515fda41bf", "answer": ["0"]} {"db_id": "mimic_iii", "question": "is there any sputum microbiology test history for patient 73530 since 01/2100?", "template": "has patient 73530 had any sputum microbiology test result since 01/2100?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73530 ) and microbiologyevents.spec_type_desc = 'sputum' and strftime('%Y-%m',microbiologyevents.charttime) >= '2100-01'", "value": {"patient_id": 73530, "culture_name": "sputum"}, "q_tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-since]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a912ed5ab41888a8bd300a7e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "was there any organism detected in patient 10811's last stool microbiological test until 01/2104?", "template": "has there been any organism found in the last stool microbiology test of patient 10811 until 01/2104?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10811 ) and microbiologyevents.spec_type_desc = 'stool' and microbiologyevents.org_name is not null and strftime('%Y-%m',microbiologyevents.charttime) <= '2104-01' order by microbiologyevents.charttime desc limit 1", "value": {"culture_name": "stool", "patient_id": 10811}, "q_tag": "has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb there been any organism found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:abs-month-until]?", "department": "['infection_control', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "adaaf700e24e904b9b0efc21", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did there was an organism in patient 97677's last serology/blood test?", "template": "has there been any organism found in the last serology/blood microbiology test of patient 97677?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 97677 ) and microbiologyevents.spec_type_desc = 'serology/blood' and microbiologyevents.org_name is not null order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 97677, "culture_name": "serology/blood"}, "q_tag": "has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb there been any organism found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:null]?", "department": "['infection_control', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "238c4eac69eec25ab77e1289", "answer": ["0"]} {"db_id": "mimic_iii", "question": "any organism found in patient 27703's last pleural fluid test in a month before?", "template": "has there been any organism found in the last pleural fluid microbiology test of patient 27703 last month?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27703 ) and microbiologyevents.spec_type_desc = 'pleural fluid' and microbiologyevents.org_name is not null and datetime(microbiologyevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') order by microbiologyevents.charttime desc limit 1", "value": {"culture_name": "pleural fluid", "patient_id": 27703}, "q_tag": "has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb there been any organism found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:rel-month-last]?", "department": "['infection_control', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "47e5a761337c2c77aa1a1edc", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has there been any organism found in patient 19412's last sputum microbiology test in 12/this year?", "template": "has there been any organism found in the last sputum microbiology test of patient 19412 in 12/this year?", "query": "select count(*)>0 from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19412 ) and microbiologyevents.spec_type_desc = 'sputum' and microbiologyevents.org_name is not null and datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',microbiologyevents.charttime) = '12' order by microbiologyevents.charttime desc limit 1", "value": {"culture_name": "sputum", "patient_id": 19412}, "q_tag": "has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb there been any organism found in the [time_filter_exact1:exact-last] {culture_name} microbiology test of patient {patient_id} [time_filter_global1:mix-month-this_year]?", "department": "['infection_control', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "28c75deaf88b9d6d5cef107f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 17435 been given any k-phos 20mmol/500cc intake on the first intensive care unit visit?", "template": "has patient 17435 had any k-phos 20mmol/500cc intake on the first icu visit?", "query": "select count(*)>0 from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17435 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'k-phos 20mmol/500cc' and d_items.linksto = 'inputevents_cv' )", "value": {"intake_name": "k-phos 20mmol/500cc", "patient_id": 17435}, "q_tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-icu-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-icu-first]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9f9175d7e9fd6867d4533925", "answer": ["1"]} {"db_id": "mimic_iii", "question": "had patient 9566 ever been given sc 20 fe ng during this hospital encounter?", "template": "has patient 9566 had any sc 20 fe ng intake on the current hospital visit?", "query": "select count(*)>0 from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9566 and admissions.dischtime is null ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'sc 20 fe ng' and d_items.linksto = 'inputevents_cv' )", "value": {"intake_name": "sc 20 fe ng", "patient_id": 9566}, "q_tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-hosp-cur]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af592a6ce17fa8fd47761974", "answer": ["1"]} {"db_id": "mimic_iii", "question": "was po intake given to patient 12775 on the current intensive care unit visit?", "template": "has patient 12775 had any po intake on the current icu visit?", "query": "select count(*)>0 from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12775 ) and icustays.outtime is null ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'po intake' and d_items.linksto = 'inputevents_cv' )", "value": {"patient_id": 12775, "intake_name": "po intake"}, "q_tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-icu-cur]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "db8fef6a701915319d5f9968", "answer": ["1"]} {"db_id": "mimic_iii", "question": "tell me whether d10w was given to patient 26057 in this month?", "template": "has patient 26057 had any d10w intake this month?", "query": "select count(*)>0 from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26057 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd10w' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"intake_name": "d10w", "patient_id": 26057}, "q_tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-month-this]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a28ffd1fad68ea0b8a2ea45f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "was patient 4401 excreting any drain out #2 sump in 12/2105?", "template": "has patient 4401 had any drain out #2 sump output in 12/2105?", "query": "select count(*)>0 from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4401 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'drain out #2 sump' and d_items.linksto = 'outputevents' ) and strftime('%Y-%m',outputevents.charttime) = '2105-12'", "value": {"output_name": "drain out #2 sump", "patient_id": 4401}, "q_tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5463efb4e573166911b351d2", "answer": ["1"]} {"db_id": "mimic_iii", "question": "on 11/08/this year, had patient 73693 excreted any right arm drains.?", "template": "has patient 73693 had any right arm drains. output on 11/08/this year?", "query": "select count(*)>0 from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73693 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'right arm drains.' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',outputevents.charttime) = '11-08'", "value": {"patient_id": 73693, "output_name": "right arm drains."}, "q_tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7fc43067fcfc83c4ba93ef01", "answer": ["0"]} {"db_id": "mimic_iii", "question": "has patient 64538 had any gastric gastric tube event until 03/20/2101?", "template": "has patient 64538 had any gastric gastric tube output until 03/20/2101?", "query": "select count(*)>0 from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 64538 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'gastric gastric tube' and d_items.linksto = 'outputevents' ) and strftime('%Y-%m-%d',outputevents.charttime) <= '2101-03-20'", "value": {"patient_id": 64538, "output_name": "gastric gastric tube"}, "q_tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?", "t_tag": ["abs-day-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1:abs-day-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "031433ed62ede36c18c0ac5e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "did patient 73713 experience any gastric emesis event since 118 months ago?", "template": "has patient 73713 had any gastric emesis output since 118 month ago?", "query": "select count(*)>0 from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73713 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'gastric emesis' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime) >= datetime(current_time,'-118 month')", "value": {"patient_id": 73713, "output_name": "gastric emesis"}, "q_tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb patient {patient_id} had any {output_name} output [time_filter_global1:rel-month-since]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b4b004c4bd0e3b96b7359109", "answer": ["1"]} {"db_id": "mimic_iii", "question": "had patient 10211 had heart rate less than 124.0 during their first hospital encounter?", "template": "has the heart rate of patient 10211 been ever less than 124.0 on the first hospital visit?", "query": "select count(*)>0 from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10211 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and chartevents.valuenum < 124.0", "value": {"patient_id": 10211, "vital_name": "heart rate", "vital_value": 124.0}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:rel-hosp-first]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6c9280a6d52826d07050cfdd", "answer": ["1"]} {"db_id": "mimic_iii", "question": "had the heart rate of patient 28443 ever been less than 80.0 in 12/2105?", "template": "has the heart rate of patient 28443 been ever less than 80.0 in 12/2105?", "query": "select count(*)>0 from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28443 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and chartevents.valuenum < 80.0 and strftime('%Y-%m',chartevents.charttime) = '2105-12'", "value": {"patient_id": 28443, "vital_name": "heart rate", "vital_value": 80.0}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:abs-month-in]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "40ae03bf979958ece1e69a18", "answer": ["1"]} {"db_id": "mimic_iii", "question": "tell me whether patient 1798's arterial bp mean was ever greater than 94.0 since 153 months ago?", "template": "has the arterial bp mean of patient 1798 been ever greater than 94.0 since 153 month ago?", "query": "select count(*)>0 from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1798 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) and chartevents.valuenum > 94.0 and datetime(chartevents.charttime) >= datetime(current_time,'-153 month')", "value": {"patient_id": 1798, "vital_name": "arterial bp mean", "vital_value": 94.0}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison:greater] than {vital_value} [time_filter_global1:rel-month-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8c1ca2b1121c5a7b6d34d57d", "answer": ["1"]} {"db_id": "mimic_iii", "question": "is patient 31854's arterial bp [systolic] ever less than 126.0 on the current hospital visit?", "template": "has the arterial bp [systolic] of patient 31854 been ever less than 126.0 on the current hospital visit?", "query": "select count(*)>0 from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31854 and admissions.dischtime is null ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) and chartevents.valuenum < 126.0", "value": {"patient_id": 31854, "vital_name": "arterial bp [systolic]", "vital_value": 126.0}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:rel-hosp-cur]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7c4ecdcc202da5bf59fc41b6", "answer": ["1"]} {"db_id": "mimic_iii", "question": "give me patient 94316's hospial admission time in 2103.", "template": "list the hospital admission time of patient 94316 in 2103.", "query": "select admissions.admittime from admissions where admissions.subject_id = 94316 and strftime('%Y',admissions.admittime) = '2103'", "value": {"patient_id": 94316}, "q_tag": "list the hospital admission time of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the hospital admission time of patient {patient_id} [time_filter_global1:abs-year-in].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6ef555c2607f86497056c6e4", "answer": ["2103-03-21 12:45:00"]} {"db_id": "mimic_iii", "question": "get me patient 61500's hospial admission time since 2105.", "template": "list the hospital admission time of patient 61500 since 2105.", "query": "select admissions.admittime from admissions where admissions.subject_id = 61500 and strftime('%Y',admissions.admittime) >= '2105'", "value": {"patient_id": 61500}, "q_tag": "list the hospital admission time of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the hospital admission time of patient {patient_id} [time_filter_global1:abs-year-since].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "16e4b4d2f200628cc18485d4", "answer": ["2105-09-29 17:36:00"]} {"db_id": "mimic_iii", "question": "how much is the yearly maximum value of rdw for patient 4758 since 2105?", "template": "list the yearly maximum rdw lab value of patient 4758 since 2105.", "query": "select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4758 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'rdw' ) and strftime('%Y',labevents.charttime) >= '2105' group by strftime('%Y',labevents.charttime)", "value": {"patient_id": 4758, "lab_name": "rdw"}, "q_tag": "list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:maximum] {lab_name} lab value of patient {patient_id} [time_filter_global1:abs-year-since].", "department": "['physician', 'infection_control', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0c689c0fa1d09d68946a3bb9", "answer": ["20.1"]} {"db_id": "mimic_iii", "question": "what is the yearly maximum value of potassium in patient 8098?", "template": "list the yearly maximum potassium lab value of patient 8098.", "query": "select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 8098 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium' ) group by strftime('%Y',labevents.charttime)", "value": {"lab_name": "potassium", "patient_id": 8098}, "q_tag": "list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:maximum] {lab_name} lab value of patient {patient_id} [time_filter_global1:null].", "department": "['physician', 'infection_control', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d25465a0c870a363a3a531b1", "answer": ["5.1"]} {"db_id": "mimic_iii", "question": "tell me patient 16715's monthly minimum epithelial cells since 2105.", "template": "list the monthly minimum epithelial cells lab value of patient 16715 since 2105.", "query": "select min(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 16715 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'epithelial cells' ) and strftime('%Y',labevents.charttime) >= '2105' group by strftime('%Y-%m',labevents.charttime)", "value": {"patient_id": 16715, "lab_name": "epithelial cells"}, "q_tag": "list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:minimum] {lab_name} lab value of patient {patient_id} [time_filter_global1:abs-year-since].", "department": "['physician', 'infection_control', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1c546d7e380a9cead0caad0d", "answer": ["0.0"]} {"db_id": "mimic_iii", "question": "what is the daily minimum value of weight of patient 31854 in 2105?", "template": "list the daily minimum weight of patient 31854 in 2105.", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31854 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) and strftime('%Y',chartevents.charttime) = '2105' group by strftime('%Y-%m-%d',chartevents.charttime)", "value": {"patient_id": 31854}, "q_tag": "list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:minimum] weight of patient {patient_id} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "dd3ce2569b66f35377690804", "answer": ["68.18000030517578"]} {"db_id": "mimic_iii", "question": "get me patient 6215's yearly maximum weight until 09/2103.", "template": "list the yearly maximum weight of patient 6215 until 09/2103.", "query": "select max(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 6215 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m',chartevents.charttime) <= '2103-09' group by strftime('%Y',chartevents.charttime)", "value": {"patient_id": 6215}, "q_tag": "list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-month-until", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:maximum] weight of patient {patient_id} [time_filter_global1:abs-month-until].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "29231a661a273a1c800d9dd6", "answer": ["122.0"]} {"db_id": "mimic_iii", "question": "retrieve patient 4269's yearly minimum weight since 2 years ago.", "template": "list the yearly minimum weight of patient 4269 since 2 year ago.", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4269 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime) >= datetime(current_time,'-2 year') group by strftime('%Y',chartevents.charttime)", "value": {"patient_id": 4269}, "q_tag": "list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:minimum] weight of patient {patient_id} [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "baab1ff7574ab8bb9739844f", "answer": ["70.30000305175781"]} {"db_id": "mimic_iii", "question": "what is patient 3369's yearly maximum weight since 5 years ago?", "template": "list the yearly maximum weight of patient 3369 since 5 year ago.", "query": "select max(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3369 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit wt' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime) >= datetime(current_time,'-5 year') group by strftime('%Y',chartevents.charttime)", "value": {"patient_id": 3369}, "q_tag": "list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:maximum] weight of patient {patient_id} [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6e9c10553a22ef5a562626d2", "answer": ["110.0"]} {"db_id": "mimic_iii", "question": "what was the daily average dose of chemo:alb w/ sargram that patient 1272 was taking during the last hospital visit?", "template": "list the daily average volume of chemo:alb w/ sargram intake that patient 1272 received on the last hospital visit.", "query": "select avg(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1272 and admissions.dischtime is not null order by admissions.admittime desc limit 1 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'chemo:alb w/ sargram' and d_items.linksto = 'inputevents_cv' ) group by strftime('%Y-%m-%d',inputevents_cv.charttime)", "value": {"intake_name": "chemo:alb w/ sargram", "patient_id": 1272}, "q_tag": "list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].", "t_tag": ["rel-hosp-last", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-hosp-last].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6af5740cdb997c74c031807d", "answer": ["11.0"]} {"db_id": "mimic_iii", "question": "list the daily average nepro w/ promod intake of patient 1269 since 09/2104.", "template": "list the daily average volume of nepro w/ promod intake that patient 1269 received since 09/2104.", "query": "select avg(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1269 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'nepro w/ promod' and d_items.linksto = 'inputevents_cv' ) and strftime('%Y-%m',inputevents_cv.charttime) >= '2104-09' group by strftime('%Y-%m-%d',inputevents_cv.charttime)", "value": {"intake_name": "nepro w/ promod", "patient_id": 1269}, "q_tag": "list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:abs-month-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "963769a182b3966196bf664f", "answer": ["30.0"]} {"db_id": "mimic_iii", "question": "tell me the monthly average amount of patient 14054's e 20 fe fs po intake on the first hospital visit.", "template": "list the monthly average volume of e 20 fe fs po intake that patient 14054 received on the first hospital visit.", "query": "select avg(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14054 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'e 20 fe fs po' and d_items.linksto = 'inputevents_cv' ) group by strftime('%Y-%m',inputevents_cv.charttime)", "value": {"intake_name": "e 20 fe fs po", "patient_id": 14054}, "q_tag": "list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-hosp-first].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c219a478b5d943f8f7fbd774", "answer": ["8.0"]} {"db_id": "mimic_iii", "question": "what is patient 24894's monthly average amount of dextrose 20% since 157 months ago?", "template": "list the monthly average volume of dextrose 20% intake that patient 24894 received since 157 month ago.", "query": "select avg(inputevents_cv.amount) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24894 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'dextrose 20%' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-157 month') group by strftime('%Y-%m',inputevents_cv.charttime)", "value": {"intake_name": "dextrose 20%", "patient_id": 24894}, "q_tag": "list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-month-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c3f30faedc36d4b421c33b91", "answer": ["25.0"]} {"db_id": "mimic_iii", "question": "what is the monthly average cerebral drain l ventricular drain of patient 462 on the first hospital visit?", "template": "list the monthly average volume of cerebral drain l ventricular drain output that patient 462 had on the first hospital visit.", "query": "select avg(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 462 and admissions.dischtime is not null order by admissions.admittime asc limit 1 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'cerebral drain l ventricular drain' and d_items.linksto = 'outputevents' ) group by strftime('%Y-%m',outputevents.charttime)", "value": {"output_name": "cerebral drain l ventricular drain", "patient_id": 462}, "q_tag": "list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].", "t_tag": ["rel-hosp-first", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:average] volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-hosp-first].", "department": "['physician', 'infection_control']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d821a8693c091fef86d1b795", "answer": ["10.0"]} {"db_id": "mimic_iii", "question": "show me the yearly minimum drain out #1 t tube of patient 72107 until 03/29/2102.", "template": "list the yearly minimum volume of drain out #1 t tube output that patient 72107 had until 03/29/2102.", "query": "select min(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 72107 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'drain out #1 t tube' and d_items.linksto = 'outputevents' ) and strftime('%Y-%m-%d',outputevents.charttime) <= '2102-03-29' group by strftime('%Y',outputevents.charttime)", "value": {"output_name": "drain out #1 t tube", "patient_id": 72107}, "q_tag": "list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].", "t_tag": ["abs-day-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:minimum] volume of {output_name} output that patient {patient_id} had [time_filter_global1:abs-day-until].", "department": "['physician', 'infection_control']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4247e6e1965ebeed02bb4efe", "answer": ["5.0"]} {"db_id": "mimic_iii", "question": "tell me the daily maximum arterial bp [systolic] of patient 23969 in 04/2105.", "template": "list the daily maximum arterial bp [systolic] of patient 23969 in 04/2105.", "query": "select max(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 23969 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [systolic]' and d_items.linksto = 'chartevents' ) and strftime('%Y-%m',chartevents.charttime) = '2105-04' group by strftime('%Y-%m-%d',chartevents.charttime)", "value": {"vital_name": "arterial bp [systolic]", "patient_id": 23969}, "q_tag": "list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:maximum] {vital_name} of patient {patient_id} [time_filter_global1:abs-month-in].", "department": "['physician', 'infection_control', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "171ea66d05072a577d36a4e9", "answer": ["161.0", "141.0"]} {"db_id": "mimic_iii", "question": "what is patient 27739's monthly minimum value of arterial bp [diastolic] since 1068 days ago?", "template": "list the monthly minimum arterial bp [diastolic] of patient 27739 since 1068 day ago.", "query": "select min(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27739 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime) >= datetime(current_time,'-1068 day') group by strftime('%Y-%m',chartevents.charttime)", "value": {"patient_id": 27739, "vital_name": "arterial bp [diastolic]"}, "q_tag": "list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-day-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:rel-day-since].", "department": "['physician', 'infection_control', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "49b8e6afbd09c994a266d66d", "answer": ["29.0"]} {"db_id": "mimic_iii", "question": "get me patient 18678's daily average arterial bp [diastolic] since 26 months ago.", "template": "list the daily average arterial bp [diastolic] of patient 18678 since 26 month ago.", "query": "select avg(chartevents.valuenum) from chartevents where chartevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18678 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp [diastolic]' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime) >= datetime(current_time,'-26 month') group by strftime('%Y-%m-%d',chartevents.charttime)", "value": {"patient_id": 18678, "vital_name": "arterial bp [diastolic]"}, "q_tag": "list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:average] {vital_name} of patient {patient_id} [time_filter_global1:rel-month-since].", "department": "['physician', 'infection_control', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aa95927b0e33595ff182eac9", "answer": ["58.05555555555556", "54.07692307692308", "54.833333333333336"]} {"db_id": "mimic_iii", "question": "how many times does patient 94937 come to the hospital during this year.", "template": "count the number of hospital visits of patient 94937 this year.", "query": "select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 94937 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 94937}, "q_tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1:rel-year-this].", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af4fbb06992298fd06b6a31b", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count on the number of hospital visits of patient 2482 until 1 year ago.", "template": "count the number of hospital visits of patient 2482 until 1 year ago.", "query": "select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 2482 and datetime(admissions.admittime) <= datetime(current_time,'-1 year')", "value": {"patient_id": 2482}, "q_tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1:rel-year-until].", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "68bef7f4805f50a0990d0be4", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times did patient 60219 visit the hospital in 2104?", "template": "count the number of hospital visits of patient 60219 in 2104.", "query": "select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 60219 and strftime('%Y',admissions.admittime) = '2104'", "value": {"patient_id": 60219}, "q_tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "253fd5f3a0968b3c191e28ae", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times has patient 9964 visited the hospital in 2105?", "template": "count the number of hospital visits of patient 9964 in 2105.", "query": "select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 9964 and strftime('%Y',admissions.admittime) = '2105'", "value": {"patient_id": 9964}, "q_tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of hospital visits of patient {patient_id} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e938b2f5710ae2cf111e1084", "answer": ["1"]} {"db_id": "mimic_iii", "question": "calculate the number of intensive care unit visits patient 20589 has.", "template": "count the number of icu visits of patient 20589.", "query": "select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20589 )", "value": {"patient_id": 20589}, "q_tag": "count the number of icu visits of patient {patient_id} [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of icu visits of patient {patient_id} [time_filter_global1:null].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "912b74ff13c2287587cce762", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times do patient 55360's visit the icu in 2105?", "template": "count the number of icu visits of patient 55360 in 2105.", "query": "select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 55360 ) and strftime('%Y',icustays.intime) = '2105'", "value": {"patient_id": 55360}, "q_tag": "count the number of icu visits of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5b1b0a2c5b8b7dc783160c0c", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times has patient 29806 been admitted to the icu since 2103?", "template": "count the number of icu visits of patient 29806 since 2103.", "query": "select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29806 ) and strftime('%Y',icustays.intime) >= '2103'", "value": {"patient_id": 29806}, "q_tag": "count the number of icu visits of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d02c74a2e656a07d16fd296b", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times has patient 45612 come to the icu until 2101?", "template": "count the number of icu visits of patient 45612 until 2101.", "query": "select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 45612 ) and strftime('%Y',icustays.intime) <= '2101'", "value": {"patient_id": 45612}, "q_tag": "count the number of icu visits of patient {patient_id} [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-until].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ca96c7487f1de5a6775b704a", "answer": ["1"]} {"db_id": "mimic_iii", "question": "count the number of times that patient 31854 has received a contr cerebr arteriogram procedure this year.", "template": "count the number of times that patient 31854 received a contr cerebr arteriogram procedure this year.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'contr cerebr arteriogram' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31854 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 31854, "procedure_name": "contr cerebr arteriogram"}, "q_tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-this].", "department": "['other', 'physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "dd041bf013eeeec1d706e7ee", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of times that patient 14035 received the procedure for procedure-one vessel since 3 years ago.", "template": "count the number of times that patient 14035 received a procedure-one vessel procedure since 3 year ago.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'procedure-one vessel' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14035 ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-3 year')", "value": {"patient_id": 14035, "procedure_name": "procedure-one vessel"}, "q_tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-since].", "department": "['other', 'physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "928b37e2564f6a7e0975234b", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times does patient 99791 get op red-int fix rad/ulna?", "template": "count the number of times that patient 99791 received a op red-int fix rad/ulna procedure.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'op red-int fix rad/ulna' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 99791 )", "value": {"procedure_name": "op red-int fix rad/ulna", "patient_id": 99791}, "q_tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:null].", "department": "['other', 'physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a872f35fe55353314ed4df3f", "answer": ["1"]} {"db_id": "mimic_iii", "question": "count the number of times that patient 54825 has had a rt/left heart card cath treatment during the last year.", "template": "count the number of times that patient 54825 received a rt/left heart card cath procedure last year.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'rt/left heart card cath' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 54825 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 54825, "procedure_name": "rt/left heart card cath"}, "q_tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last].", "department": "['other', 'physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ba66b0a4b626b0777211e84a", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times has patient 31141 received sm bowel endoscopy nec since 2104?", "template": "count the number of times that patient 31141 received a sm bowel endoscopy nec procedure since 2104.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'sm bowel endoscopy nec' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 31141 ) and strftime('%Y',procedures_icd.charttime) >= '2104'", "value": {"patient_id": 31141, "procedure_name": "sm bowel endoscopy nec"}, "q_tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-since].", "department": "['other', 'physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c3b99db5716e5110a7abf342", "answer": ["1"]} {"db_id": "mimic_iii", "question": "count how many drugs are prescribed to patient 81461 during their current hospital visit.", "template": "count the number of drugs patient 81461 were prescribed on the current hospital visit.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 81461 and admissions.dischtime is null )", "value": {"patient_id": 81461}, "q_tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1].", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-hosp-cur].", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b42e82b4992d46b09c28729b", "answer": ["10"]} {"db_id": "mimic_iii", "question": "what was the number of drugs patient 30509 was prescribed until 1 year ago?", "template": "count the number of drugs patient 30509 were prescribed until 1 year ago.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30509 ) and datetime(prescriptions.startdate) <= datetime(current_time,'-1 year')", "value": {"patient_id": 30509}, "q_tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-year-until].", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "adff80ff95e34597dd5212a8", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many medications is patient 1561 prescribed in this month?", "template": "count the number of drugs patient 1561 were prescribed this month.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1561 ) and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"patient_id": 1561}, "q_tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1].", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-month-this].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a77a789bdca4d720feb819f8", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many drugs is patient 26777 ordered until 109 months ago?", "template": "count the number of drugs patient 26777 were prescribed until 109 month ago.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 26777 ) and datetime(prescriptions.startdate) <= datetime(current_time,'-109 month')", "value": {"patient_id": 26777}, "q_tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1].", "t_tag": ["rel-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-month-until].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "af286a9b3a2ff4619660b899", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many drugs have been given to patient 54386 until 09/2104?", "template": "count the number of drugs patient 54386 were prescribed until 09/2104.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 54386 ) and strftime('%Y-%m',prescriptions.startdate) <= '2104-09'", "value": {"patient_id": 54386}, "q_tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1].", "t_tag": ["abs-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of drugs patient {patient_id} were prescribed [time_filter_global1:abs-month-until].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "751ec9a627799c90dcdb930d", "answer": ["29"]} {"db_id": "mimic_iii", "question": "calculate how many times patient 41132 has been prescribed diltiazem extended-release in 2101.", "template": "count the number of times that patient 41132 were prescribed diltiazem extended-release in 2101.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 41132 ) and prescriptions.drug = 'diltiazem extended-release' and strftime('%Y',prescriptions.startdate) = '2101'", "value": {"patient_id": 41132, "drug_name": "diltiazem extended-release"}, "q_tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "80f620956efdca792813a8e2", "answer": ["1"]} {"db_id": "mimic_iii", "question": "calculate the number of times that furosemide was prescribed to patient 27038 since 81 months ago.", "template": "count the number of times that patient 27038 were prescribed furosemide since 81 month ago.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27038 ) and prescriptions.drug = 'furosemide' and datetime(prescriptions.startdate) >= datetime(current_time,'-81 month')", "value": {"patient_id": 27038, "drug_name": "furosemide"}, "q_tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1:rel-month-since].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a236eeab650db54539515236", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times is nitroglycerin prescribed to patient 54825 since 3 years ago?", "template": "count the number of times that patient 54825 were prescribed nitroglycerin since 3 year ago.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 54825 ) and prescriptions.drug = 'nitroglycerin' and datetime(prescriptions.startdate) >= datetime(current_time,'-3 year')", "value": {"patient_id": 54825, "drug_name": "nitroglycerin"}, "q_tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c70b3964c889a977ecfc5683", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many times has patient 52898 been prescribed for ns in this month?", "template": "count the number of times that patient 52898 were prescribed ns this month.", "query": "select count(*) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 52898 ) and prescriptions.drug = 'ns' and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"patient_id": 52898, "drug_name": "ns"}, "q_tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} were prescribed {drug_name} [time_filter_global1:rel-month-this].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "05ee12303269c8bf2181de2e", "answer": ["0"]} {"db_id": "mimic_iii", "question": "the number of times patient 28447 has received a hematocrit test during this year.", "template": "count the number of times that patient 28447 received a hematocrit lab test this year.", "query": "select count(*) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'hematocrit' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28447 ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 28447, "lab_name": "hematocrit"}, "q_tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-year-this].", "department": "['insurance_review']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6812db2935b715fa0e0fff51", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times until 69 months ago did patient 64538 get a creatine kinase (ck) test?", "template": "count the number of times that patient 64538 received a creatine kinase (ck) lab test until 69 month ago.", "query": "select count(*) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatine kinase (ck)' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 64538 ) and datetime(labevents.charttime) <= datetime(current_time,'-69 month')", "value": {"patient_id": 64538, "lab_name": "creatine kinase (ck)"}, "q_tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-until].", "department": "['insurance_review']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5f9ee75b40aa7b05578e576c", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times does patient 85895 receive a ph test the last month?", "template": "count the number of times that patient 85895 received a ph lab test last month.", "query": "select count(*) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'ph' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 85895 ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month')", "value": {"lab_name": "ph", "patient_id": 85895}, "q_tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-month-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-last].", "department": "['insurance_review']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3bba5e1d8ed898dc8d6fba9e", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times does patient 10855 get a creatine kinase, mb isoenzyme test in 12/this year?", "template": "count the number of times that patient 10855 received a creatine kinase, mb isoenzyme lab test in 12/this year.", "query": "select count(*) from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatine kinase, mb isoenzyme' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10855 ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',labevents.charttime) = '12'", "value": {"patient_id": 10855, "lab_name": "creatine kinase, mb isoenzyme"}, "q_tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1].", "t_tag": ["mix-month-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} received a {lab_name} lab test [time_filter_global1:mix-month-this_year].", "department": "['insurance_review']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3e1f40c2766fd8290e967bbf", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of times patient 18677 received sodium bicarb on the first intensive care unit visit.", "template": "count the number of times that patient 18677 had a sodium bicarb intake on the first icu visit.", "query": "select count(*) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18677 ) and icustays.outtime is not null order by icustays.intime asc limit 1 ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'sodium bicarb' and d_items.linksto = 'inputevents_cv' )", "value": {"intake_name": "sodium bicarb", "patient_id": 18677}, "q_tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1].", "t_tag": ["rel-icu-first", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1:rel-icu-first].", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f3ad0463b363cb5f01ac5ea2", "answer": ["1"]} {"db_id": "mimic_iii", "question": "what is the number of times patient 14035 had a d10w intake?", "template": "count the number of times that patient 14035 had a d10w intake.", "query": "select count(*) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 14035 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd10w' and d_items.linksto = 'inputevents_cv' )", "value": {"patient_id": 14035, "intake_name": "d10w"}, "q_tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1:null].", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "aa7edbe53859cb3e8666ec78", "answer": ["3"]} {"db_id": "mimic_iii", "question": "how many times has patient 17638 got a rescue flush intake in 06/2105?", "template": "count the number of times that patient 17638 had a rescue flush intake in 06/2105.", "query": "select count(*) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 17638 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'rescue flush' and d_items.linksto = 'inputevents_cv' ) and strftime('%Y-%m',inputevents_cv.charttime) = '2105-06'", "value": {"intake_name": "rescue flush", "patient_id": 17638}, "q_tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1].", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1:abs-month-in].", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6918ed9375119dd48051b412", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times does patient 20165 receive a nutren pulmonary intake until 1729 days ago?", "template": "count the number of times that patient 20165 had a nutren pulmonary intake until 1729 day ago.", "query": "select count(*) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20165 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'nutren pulmonary' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) <= datetime(current_time,'-1729 day')", "value": {"patient_id": 20165, "intake_name": "nutren pulmonary"}, "q_tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1].", "t_tag": ["rel-day-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1:rel-day-until].", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fb903886ca7a9a4c259aade4", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times does patient 27463 get a e 24 fs po intake since 08/2103?", "template": "count the number of times that patient 27463 had a e 24 fs po intake since 08/2103.", "query": "select count(*) from inputevents_cv where inputevents_cv.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27463 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'e 24 fs po' and d_items.linksto = 'inputevents_cv' ) and strftime('%Y-%m',inputevents_cv.charttime) >= '2103-08'", "value": {"intake_name": "e 24 fs po", "patient_id": 27463}, "q_tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1].", "t_tag": ["abs-month-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {intake_name} intake [time_filter_global1:abs-month-since].", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "83a80f5332f1b2f968f8bead", "answer": ["2"]} {"db_id": "mimic_iii", "question": "count the number of times that patient 63849 had jackson pratt #1 in 12/2103.", "template": "count the number of times that patient 63849 had a jackson pratt #1 output in 12/2103.", "query": "select count(*) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 63849 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'jackson pratt #1' and d_items.linksto = 'outputevents' ) and strftime('%Y-%m',outputevents.charttime) = '2103-12'", "value": {"output_name": "jackson pratt #1", "patient_id": 63849}, "q_tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1].", "t_tag": ["abs-month-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1:abs-month-in].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "113e9c39686340c369fd316e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many times patient 11688 has had a void output on 11/26/last year?", "template": "count the number of times that patient 11688 had a void output on 11/26/last year.", "query": "select count(*) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11688 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'void' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m-%d',outputevents.charttime) = '11-26'", "value": {"patient_id": 11688, "output_name": "void"}, "q_tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1].", "t_tag": ["mix-day-last_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1:mix-day-last_year].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ea9d48aefac409b9694b8160", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times has patient 11823 had a ostomy (output) output in 11/last year?", "template": "count the number of times that patient 11823 had a ostomy (output) output in 11/last year.", "query": "select count(*) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11823 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'ostomy (output)' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',outputevents.charttime) = '11'", "value": {"output_name": "ostomy (output)", "patient_id": 11823}, "q_tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1].", "t_tag": ["mix-month-last_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1:mix-month-last_year].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "357d273f2472a9cb366ff17a", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times does patient 28447 have a urine out foley event on the current intensive care unit visit?", "template": "count the number of times that patient 28447 had a urine out foley output on the current icu visit.", "query": "select count(*) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 28447 ) and icustays.outtime is null ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out foley' and d_items.linksto = 'outputevents' )", "value": {"patient_id": 28447, "output_name": "urine out foley"}, "q_tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1].", "t_tag": ["rel-icu-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of times that patient {patient_id} had a {output_name} output [time_filter_global1:rel-icu-cur].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d9961dbdc4230f144a5aecde", "answer": ["37"]} {"db_id": "mimic_iii", "question": "how many patients have been admitted?", "template": "count the number of current patients.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null", "value": {}, "q_tag": "count the number of current patients.", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients.", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "681651da5b002c5f1cf2c7ce", "answer": ["100"]} {"db_id": "mimic_iii", "question": "how many people were there who are current patients?", "template": "count the number of current patients.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null", "value": {}, "q_tag": "count the number of current patients.", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients.", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6fd61d6adcc50fa5843bc16d", "answer": ["100"]} {"db_id": "mimic_iii", "question": "count the number of patients in the hospital.", "template": "count the number of current patients.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null", "value": {}, "q_tag": "count the number of current patients.", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients.", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c1e303219a5e89193ea761a0", "answer": ["100"]} {"db_id": "mimic_iii", "question": "how many hospitalized patients are there currently?", "template": "count the number of current patients.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null", "value": {}, "q_tag": "count the number of current patients.", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients.", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b824113a7003d04b4ed2db08", "answer": ["100"]} {"db_id": "mimic_iii", "question": "how many current patients are of age 40s?", "template": "count the number of current patients aged 40s.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null and admissions.age between 40 and 49", "value": {}, "q_tag": "count the number of current patients aged [age_group].", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["40s", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients aged [age_group:40s].", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "abb64cf541ffbd41dff58f81", "answer": ["13"]} {"db_id": "mimic_iii", "question": "count the number of current patients whose age is 50s.", "template": "count the number of current patients aged 50s.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null and admissions.age between 50 and 59", "value": {}, "q_tag": "count the number of current patients aged [age_group].", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["50s", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients aged [age_group:50s].", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "521bab0d0bd6cd7da2a2a661", "answer": ["23"]} {"db_id": "mimic_iii", "question": "how many patients aged 30s are there?", "template": "count the number of current patients aged 30s.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null and admissions.age between 30 and 39", "value": {}, "q_tag": "count the number of current patients aged [age_group].", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["30s", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients aged [age_group:30s].", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3529201d013370bb6e645b98", "answer": ["3"]} {"db_id": "mimic_iii", "question": "count the number of current patients whose ages are 50s.", "template": "count the number of current patients aged 50s.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is null and admissions.age between 50 and 59", "value": {}, "q_tag": "count the number of current patients aged [age_group].", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["50s", "", "", "", "", "", "", "", ""], "tag": "count the number of current patients aged [age_group:50s].", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "830667ac87582467971ba475", "answer": ["23"]} {"db_id": "mimic_iii", "question": "what is the total cost of the maximum hospital involving a laboratory test for granular casts in 2105?", "template": "what is the maximum total hospital cost that involves a granular casts lab test in 2105?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'granular casts' ) ) and strftime('%Y',cost.chargetime) = '2105' group by cost.hadm_id ) as t1", "value": {"lab_name": "granular casts"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a {lab_name} lab test [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a {lab_name} lab test [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8ca948ceea27ab8a5af3d59b", "answer": ["7262.089999999987"]} {"db_id": "mimic_iii", "question": "tell me the maximum hospital cost that involves factor ix how much does it cost until 2103?", "template": "what was the maximum total hospital cost that involves a factor ix lab test until 2103?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'factor ix' ) ) and strftime('%Y',cost.chargetime) <= '2103' group by cost.hadm_id ) as t1", "value": {"lab_name": "factor ix"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a {lab_name} lab test [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a {lab_name} lab test [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d1ef264cc0acb9d026d7a285", "answer": ["9458.319999999978"]} {"db_id": "mimic_iii", "question": "tell me the maximum total hospital cost that involves ld, body fluid since 5 years ago?", "template": "what is the maximum total hospital cost that involves a ld, body fluid lab test since 5 year ago?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'ld, body fluid' ) ) and datetime(cost.chargetime) >= datetime(current_time,'-5 year') group by cost.hadm_id ) as t1", "value": {"lab_name": "ld, body fluid"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a {lab_name} lab test [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a567aedaedd1180c2e204ab0", "answer": ["7667.239999999995"]} {"db_id": "mimic_iii", "question": "what's the maximum total cost of a hospital that involves unarmed fight or brawl until 2104?", "template": "what was the maximum total hospital cost that involves a diagnosis named unarmed fight or brawl until 2104?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'unarmed fight or brawl' ) ) and strftime('%Y',cost.chargetime) <= '2104' group by cost.hadm_id ) as t1", "value": {"diagnosis_name": "unarmed fight or brawl"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ee041948e5d927be5165dba3", "answer": ["1629.8600000000004"]} {"db_id": "mimic_iii", "question": "what is the maximum cost of the hospital which involves aortic valve disorder in 2105?", "template": "what is the maximum total hospital cost that involves a diagnosis named aortic valve disorder in 2105?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'aortic valve disorder' ) ) and strftime('%Y',cost.chargetime) = '2105' group by cost.hadm_id ) as t1", "value": {"diagnosis_name": "aortic valve disorder"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "dad787d1fa703e781f0ce34b", "answer": ["7667.239999999995"]} {"db_id": "mimic_iii", "question": "what is the minimum total hospital cost which involves c1-c4 fx-cl/cord inj nos since 2105?", "template": "what is the minimum total hospital cost that involves a diagnosis named c1-c4 fx-cl/cord inj nos since 2105?", "query": "select min(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'c1-c4 fx-cl/cord inj nos' ) ) and strftime('%Y',cost.chargetime) >= '2105' group by cost.hadm_id ) as t1", "value": {"diagnosis_name": "c1-c4 fx-cl/cord inj nos"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6a5099a67c69172de6ef7d60", "answer": ["3407.0699999999993"]} {"db_id": "mimic_iii", "question": "list the patient identifications of patients who have been diagnosed with cannabis abuse-unspec since 2 years ago.", "template": "list the ids of patients diagnosed with cannabis abuse-unspec since 2 year ago.", "query": "select admissions.subject_id from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cannabis abuse-unspec' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-2 year') )", "value": {"diagnosis_name": "cannabis abuse-unspec"}, "q_tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since].", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d7cbf514b13a7b12bcd517b2", "answer": ["64983", "18677", "92063"]} {"db_id": "mimic_iii", "question": "tell me the patient ids who are diagnosed with hx of liver malignancy since 2104.", "template": "list the ids of patients diagnosed with hx of liver malignancy since 2104.", "query": "select admissions.subject_id from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hx of liver malignancy' ) and strftime('%Y',diagnoses_icd.charttime) >= '2104' )", "value": {"diagnosis_name": "hx of liver malignancy"}, "q_tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "46f71bc280cc07877a453952", "answer": ["73713", "48706"]} {"db_id": "mimic_iii", "question": "show me the patient ids who are diagnosed with b-complex defic nec in 2101.", "template": "list the ids of patients diagnosed with b-complex defic nec in 2101.", "query": "select admissions.subject_id from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'b-complex defic nec' ) and strftime('%Y',diagnoses_icd.charttime) = '2101' )", "value": {"diagnosis_name": "b-complex defic nec"}, "q_tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in].", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "16304cb28e1da562354c4e81", "answer": ["51577"]} {"db_id": "mimic_iii", "question": "retrieve the patient ids who are diagnosed with nonrupt cerebral aneurym since 2105.", "template": "list the ids of patients diagnosed with nonrupt cerebral aneurym since 2105.", "query": "select admissions.subject_id from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'nonrupt cerebral aneurym' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' )", "value": {"diagnosis_name": "nonrupt cerebral aneurym"}, "q_tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "dcaa1f44c83e6991d183893f", "answer": ["70169", "79348", "12917", "70234", "70267"]} {"db_id": "mimic_iii", "question": "what is the minimum monthly number of patients who had abn react-procedure nec in 2104?", "template": "what is the minimum monthly number of patient records diagnosed with abn react-procedure nec in 2104?", "query": "select min(t1.c1) from ( select count( distinct diagnoses_icd.hadm_id ) as c1 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'abn react-procedure nec' ) and strftime('%Y',diagnoses_icd.charttime) = '2104' group by strftime('%Y-%m',diagnoses_icd.charttime) ) as t1", "value": {"diagnosis_name": "abn react-procedure nec"}, "q_tag": "what is the [agg_function] [unit_average] number of patient records diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "what is the [agg_function:minimum] [unit_average:monthly] number of patient records diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "612b868355aeea681442ab00", "answer": ["1"]} {"db_id": "mimic_iii", "question": "what are the minimum yearly number of patients diagnosed with reflux esophagitis?", "template": "what is the minimum yearly number of patient records diagnosed with reflux esophagitis?", "query": "select min(t1.c1) from ( select count( distinct diagnoses_icd.hadm_id ) as c1 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'reflux esophagitis' ) group by strftime('%Y',diagnoses_icd.charttime) ) as t1", "value": {"diagnosis_name": "reflux esophagitis"}, "q_tag": "what is the [agg_function] [unit_average] number of patient records diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "yearly", ""], "tag": "what is the [agg_function:minimum] [unit_average:yearly] number of patient records diagnosed with {diagnosis_name} [time_filter_global1:null]?", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0ba0f7f776692cb97fbb2fc0", "answer": ["1"]} {"db_id": "mimic_iii", "question": "what is the average daily number of patients had helicobacter pylori since 4 years ago?", "template": "what is the average daily number of patient records diagnosed with helicobacter pylori since 4 year ago?", "query": "select avg(t1.c1) from ( select count( distinct diagnoses_icd.hadm_id ) as c1 from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'helicobacter pylori' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') group by strftime('%Y-%m-%d',diagnoses_icd.charttime) ) as t1", "value": {"diagnosis_name": "helicobacter pylori"}, "q_tag": "what is the [agg_function] [unit_average] number of patient records diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "daily", ""], "tag": "what is the [agg_function:average] [unit_average:daily] number of patient records diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "31125c876cd49738a5bc67b9", "answer": ["1.0"]} {"db_id": "mimic_iii", "question": "how many patients are dead after having been diagnosed with fx femoral condyle-open within the same hospital visit since 2 years ago?", "template": "count the number of patients who were dead after having been diagnosed with fx femoral condyle-open within the same hospital visit since 2 year ago.", "query": "select count( distinct t2.subject_id ) from ( select t1.subject_id, t1.charttime, t1.hadm_id from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'fx femoral condyle-open' ) ) as t1 group by t1.subject_id having min(t1.charttime) = t1.charttime and datetime(t1.charttime) >= datetime(current_time,'-2 year') ) as t2 join ( select patients.subject_id, admissions.hadm_id, patients.dod from admissions join patients on patients.subject_id = admissions.subject_id where patients.dod is not null and datetime(patients.dod) >= datetime(current_time,'-2 year') ) as t3 on t2.subject_id = t3.subject_id where t2.hadm_id = t3.hadm_id", "value": {"diagnosis_name": "fx femoral condyle-open"}, "q_tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within] [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within:within-hosp] [time_filter_global1:rel-year-since].", "department": "['health_records', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f607e1f4cce8eea9e647fc54", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients died after being diagnosed this year with chr osteomyelit-l/leg within 2 months?", "template": "count the number of patients who were dead after having been diagnosed with chr osteomyelit-l/leg within 2 month this year.", "query": "select count( distinct t2.subject_id ) from ( select t1.subject_id, t1.charttime from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chr osteomyelit-l/leg' ) ) as t1 group by t1.subject_id having min(t1.charttime) = t1.charttime and datetime(t1.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t2 join ( select patients.subject_id, admissions.hadm_id, patients.dod from admissions join patients on patients.subject_id = admissions.subject_id where patients.dod is not null and datetime(patients.dod,'start of year') = datetime(current_time,'start of year','-0 year') ) as t3 on t2.subject_id = t3.subject_id where ( datetime(t3.dod) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') ) or ( datetime(t2.charttime) between datetime(t3.dod) and datetime(t3.dod,'+2 month') )", "value": {"diagnosis_name": "chr osteomyelit-l/leg"}, "q_tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within] [time_filter_global1].", "t_tag": ["rel-year-this", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within:within-n_month] [time_filter_global1:rel-year-this].", "department": "['health_records', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3120e72adc521ded3a119ddb", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients died within 2 months after being diagnosed with chronic nephritis nos until 1 year ago?", "template": "count the number of patients who were dead after having been diagnosed with chronic nephritis nos within 2 month until 1 year ago.", "query": "select count( distinct t2.subject_id ) from ( select t1.subject_id, t1.charttime from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chronic nephritis nos' ) ) as t1 group by t1.subject_id having min(t1.charttime) = t1.charttime and datetime(t1.charttime) <= datetime(current_time,'-1 year') ) as t2 join ( select patients.subject_id, admissions.hadm_id, patients.dod from admissions join patients on patients.subject_id = admissions.subject_id where patients.dod is not null and datetime(patients.dod) <= datetime(current_time,'-1 year') ) as t3 on t2.subject_id = t3.subject_id where ( datetime(t3.dod) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') ) or ( datetime(t2.charttime) between datetime(t3.dod) and datetime(t3.dod,'+2 month') )", "value": {"diagnosis_name": "chronic nephritis nos"}, "q_tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within] [time_filter_global1].", "t_tag": ["rel-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within:within-n_month] [time_filter_global1:rel-year-until].", "department": "['health_records', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1ae088a4d6a59f3c291745c1", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients died after being diagnosed with dmii wo cmp nt st uncntr during the same hospital encounter since 6 years ago?", "template": "count the number of patients who were dead after having been diagnosed with dmii wo cmp nt st uncntr within the same hospital visit since 6 year ago.", "query": "select count( distinct t2.subject_id ) from ( select t1.subject_id, t1.charttime, t1.hadm_id from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'dmii wo cmp nt st uncntr' ) ) as t1 group by t1.subject_id having min(t1.charttime) = t1.charttime and datetime(t1.charttime) >= datetime(current_time,'-6 year') ) as t2 join ( select patients.subject_id, admissions.hadm_id, patients.dod from admissions join patients on patients.subject_id = admissions.subject_id where patients.dod is not null and datetime(patients.dod) >= datetime(current_time,'-6 year') ) as t3 on t2.subject_id = t3.subject_id where t2.hadm_id = t3.hadm_id", "value": {"diagnosis_name": "dmii wo cmp nt st uncntr"}, "q_tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within] [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were dead after having been diagnosed with {diagnosis_name} [time_filter_within:within-hosp] [time_filter_global1:rel-year-since].", "department": "['health_records', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3faf7d1abdb5c0d12ba85c9d", "answer": ["51"]} {"db_id": "mimic_iii", "question": "calculate the number of patients who were diagnosed with ventricular fibrillation and did not return to the hospital within the same month in 2103.", "template": "count the number of patients who did not come back to the hospital within the same month after diagnosed with ventricular fibrillation in 2103.", "query": "select ( select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ventricular fibrillation' ) and strftime('%Y',diagnoses_icd.charttime) = '2103' ) as t1 ) - ( select count( distinct t2.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ventricular fibrillation' ) and strftime('%Y',diagnoses_icd.charttime) = '2103' ) as t2 join admissions on t2.subject_id = admissions.subject_id where t2.charttime < admissions.admittime and strftime('%Y',admissions.admittime) = '2103' and datetime(t2.charttime,'start of month') = datetime(admissions.admittime,'start of month') )", "value": {"diagnosis_name": "ventricular fibrillation"}, "q_tag": "count the number of patients who did not come back to the hospital [time_filter_within] after diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-in", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who did not come back to the hospital [time_filter_within:within-month] after diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e3d1c62033fead40f5d7b898", "answer": ["3"]} {"db_id": "mimic_iii", "question": "count the number of patients that have been diagnosed with stenosis of larynx and didn't come back to the hospital within 2 months since 2 years ago.", "template": "count the number of patients who did not come back to the hospital within 2 month after diagnosed with stenosis of larynx since 2 year ago.", "query": "select ( select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'stenosis of larynx' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-2 year') ) as t1 ) - ( select count( distinct t2.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'stenosis of larynx' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-2 year') ) as t2 join admissions on t2.subject_id = admissions.subject_id where t2.charttime < admissions.admittime and datetime(admissions.admittime) >= datetime(current_time,'-2 year') and datetime(admissions.admittime) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') )", "value": {"diagnosis_name": "stenosis of larynx"}, "q_tag": "count the number of patients who did not come back to the hospital [time_filter_within] after diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who did not come back to the hospital [time_filter_within:within-n_month] after diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1d15ca66b63a1170959a2cd8", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients were diagnosed with cardiomyopath in oth dis and not readmitted within 2 months since 2 years ago?", "template": "count the number of patients who did not come back to the hospital within 2 month after diagnosed with cardiomyopath in oth dis since 2 year ago.", "query": "select ( select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cardiomyopath in oth dis' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-2 year') ) as t1 ) - ( select count( distinct t2.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cardiomyopath in oth dis' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-2 year') ) as t2 join admissions on t2.subject_id = admissions.subject_id where t2.charttime < admissions.admittime and datetime(admissions.admittime) >= datetime(current_time,'-2 year') and datetime(admissions.admittime) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') )", "value": {"diagnosis_name": "cardiomyopath in oth dis"}, "q_tag": "count the number of patients who did not come back to the hospital [time_filter_within] after diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who did not come back to the hospital [time_filter_within:within-n_month] after diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e76d48470ff847483f941ce5", "answer": ["1"]} {"db_id": "mimic_iii", "question": "count the number of patients who were diagnosed with oth nonauto hem anemia and did not come back to the hospital within 2 months in 2103.", "template": "count the number of patients who did not come back to the hospital within 2 month after diagnosed with oth nonauto hem anemia in 2103.", "query": "select ( select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'oth nonauto hem anemia' ) and strftime('%Y',diagnoses_icd.charttime) = '2103' ) as t1 ) - ( select count( distinct t2.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'oth nonauto hem anemia' ) and strftime('%Y',diagnoses_icd.charttime) = '2103' ) as t2 join admissions on t2.subject_id = admissions.subject_id where t2.charttime < admissions.admittime and strftime('%Y',admissions.admittime) = '2103' and datetime(admissions.admittime) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') )", "value": {"diagnosis_name": "oth nonauto hem anemia"}, "q_tag": "count the number of patients who did not come back to the hospital [time_filter_within] after diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-in", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who did not come back to the hospital [time_filter_within:within-n_month] after diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d97f431f033f85a4cf22365e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "during this year, how many patients have not come back to the hospital within 2 months after diagnosed with esoph varice oth dis nos.", "template": "count the number of patients who did not come back to the hospital within 2 month after diagnosed with esoph varice oth dis nos this year.", "query": "select ( select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'esoph varice oth dis nos' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t1 ) - ( select count( distinct t2.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'esoph varice oth dis nos' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t2 join admissions on t2.subject_id = admissions.subject_id where t2.charttime < admissions.admittime and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year') and datetime(admissions.admittime) between datetime(t2.charttime) and datetime(t2.charttime,'+2 month') )", "value": {"diagnosis_name": "esoph varice oth dis nos"}, "q_tag": "count the number of patients who did not come back to the hospital [time_filter_within] after diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-this", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who did not come back to the hospital [time_filter_within:within-n_month] after diagnosed with {diagnosis_name} [time_filter_global1:rel-year-this].", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "165fff7d30544533ff7bb567", "answer": ["0"]} {"db_id": "mimic_iii", "question": "what is the number of patients that were admitted to the hospital in this year?", "template": "count the number of patients who were admitted to the hospital this year.", "query": "select count( distinct admissions.subject_id ) from admissions where datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {}, "q_tag": "count the number of patients who were admitted to the hospital [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were admitted to the hospital [time_filter_global1:rel-year-this].", "department": "['other', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9bbd95caec81795d82a77c57", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients have been admitted to hospital until 2103?", "template": "count the number of patients who were admitted to the hospital until 2103.", "query": "select count( distinct admissions.subject_id ) from admissions where strftime('%Y',admissions.admittime) <= '2103'", "value": {}, "q_tag": "count the number of patients who were admitted to the hospital [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were admitted to the hospital [time_filter_global1:abs-year-until].", "department": "['other', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "06d267e880d814cff22856da", "answer": ["437"]} {"db_id": "mimic_iii", "question": "tell me the number of patients hospitalized in 2102?", "template": "count the number of patients who were admitted to the hospital in 2102.", "query": "select count( distinct admissions.subject_id ) from admissions where strftime('%Y',admissions.admittime) = '2102'", "value": {}, "q_tag": "count the number of patients who were admitted to the hospital [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were admitted to the hospital [time_filter_global1:abs-year-in].", "department": "['other', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0987b14d1353de0a9c73caf3", "answer": ["126"]} {"db_id": "mimic_iii", "question": "how many patients were admitted to the hospital until 3 years ago?", "template": "count the number of patients who were admitted to the hospital until 3 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where datetime(admissions.admittime) <= datetime(current_time,'-3 year')", "value": {}, "q_tag": "count the number of patients who were admitted to the hospital [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were admitted to the hospital [time_filter_global1:rel-year-until].", "department": "['other', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "445fad5add50cba3f29db533", "answer": ["0"]} {"db_id": "mimic_iii", "question": "find out how many patients were discharged from the hospital in 2100.", "template": "count the number of patients who were discharged from the hospital in 2100.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is not null and strftime('%Y',admissions.dischtime) = '2100'", "value": {}, "q_tag": "count the number of patients who were discharged from the hospital [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were discharged from the hospital [time_filter_global1:abs-year-in].", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "981a41cfdbbbcea9417b22ad", "answer": ["47"]} {"db_id": "mimic_iii", "question": "calculate the number of patients who had been discharged from hospital since 2105.", "template": "count the number of patients who were discharged from the hospital since 2105.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is not null and strftime('%Y',admissions.dischtime) >= '2105'", "value": {}, "q_tag": "count the number of patients who were discharged from the hospital [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were discharged from the hospital [time_filter_global1:abs-year-since].", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3dddacfd0a9c2afe487548fc", "answer": ["298"]} {"db_id": "mimic_iii", "question": "tell me the total number of patients who were discharged from the hospital?", "template": "count the number of patients who were discharged from the hospital.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is not null", "value": {}, "q_tag": "count the number of patients who were discharged from the hospital [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were discharged from the hospital [time_filter_global1:null].", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ca26141a92852f7592c524c0", "answer": ["917"]} {"db_id": "mimic_iii", "question": "tell me the number of patients discharged since 1 year ago?", "template": "count the number of patients who were discharged from the hospital since 1 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.dischtime is not null and datetime(admissions.dischtime) >= datetime(current_time,'-1 year')", "value": {}, "q_tag": "count the number of patients who were discharged from the hospital [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were discharged from the hospital [time_filter_global1:rel-year-since].", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9aa046555862b8bfecba736b", "answer": ["917"]} {"db_id": "mimic_iii", "question": "how many patients this year were staying in the ward 29?", "template": "count the number of patients who stayed in ward 29 this year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.wardid = 29 and datetime(transfers.intime,'start of year') = datetime(current_time,'start of year','-0 year') )", "value": {"ward_id": 29.0}, "q_tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1:rel-year-this].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9aa324d21407ac70f05f5380", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients are in hospital ward 12 in 2102?", "template": "count the number of patients who stayed in ward 12 in 2102.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.wardid = 12 and strftime('%Y',transfers.intime) = '2102' )", "value": {"ward_id": 12.0}, "q_tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "83633067d5e6039dd8660b9e", "answer": ["8"]} {"db_id": "mimic_iii", "question": "tell me the number of patients who stayed in ward 52 until 2102?", "template": "count the number of patients who stayed in ward 52 until 2102.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.wardid = 52 and strftime('%Y',transfers.intime) <= '2102' )", "value": {"ward_id": 52.0}, "q_tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1:abs-year-until].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "32e6936d6a535e8622bd9ee0", "answer": ["44"]} {"db_id": "mimic_iii", "question": "tell me the total number of patients who stayed in ward 15 since 3 years ago?", "template": "count the number of patients who stayed in ward 15 since 3 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.wardid = 15 and datetime(transfers.intime) >= datetime(current_time,'-3 year') )", "value": {"ward_id": 15.0}, "q_tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in ward {ward_id} [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "96be0c91c27629d4ef9b0039", "answer": ["127"]} {"db_id": "mimic_iii", "question": "what is the number of patients who are in careunit csru until 2101?", "template": "count the number of patients who stayed in careunit csru until 2101.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.careunit = 'csru' and strftime('%Y',transfers.intime) <= '2101' )", "value": {"careunit": "csru"}, "q_tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1:abs-year-until].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4adb6b409be59801bfc8e15a", "answer": ["39"]} {"db_id": "mimic_iii", "question": "what is the number of patients who have stayed in careunit ccu during the previous year?", "template": "count the number of patients who stayed in careunit ccu last year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.careunit = 'ccu' and datetime(transfers.intime,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"careunit": "ccu"}, "q_tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1:rel-year-last].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bc13f08d61adf25fa189aee6", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were in careunit ccu since 5 years ago?", "template": "count the number of patients who stayed in careunit ccu since 5 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.careunit = 'ccu' and datetime(transfers.intime) >= datetime(current_time,'-5 year') )", "value": {"careunit": "ccu"}, "q_tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ac34ae20c90427634c1b5002", "answer": ["166"]} {"db_id": "mimic_iii", "question": "tell me the total number of patients who stayed in careunit sicu?", "template": "count the number of patients who stayed in careunit sicu.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select transfers.hadm_id from transfers where transfers.careunit = 'sicu' )", "value": {"careunit": "sicu"}, "q_tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who stayed in careunit {careunit} [time_filter_global1:null].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d4f48eb0f0044726cf91d892", "answer": ["203"]} {"db_id": "mimic_iii", "question": "since 4 years ago how many patients were diagnosed as having streptococcal septicemia within 2 months after being diagnosed with acute respiratry failure?", "template": "count the number of patients who were diagnosed with acute respiratry failure within 2 month after having been diagnosed with streptococcal septicemia since 4 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'streptococcal septicemia' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acute respiratry failure' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"diagnosis_name1": "streptococcal septicemia", "diagnosis_name2": "acute respiratry failure"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within] after having been diagnosed with {diagnosis_name1} [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name1} [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8ecc6cf7b1587506390c83f1", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients in 2105 were diagnosed with hyperpotassemia within the same hospital visit after the first diagnosis with cardiac tamponade?", "template": "count the number of patients who were diagnosed with cardiac tamponade within the same hospital visit after having been diagnosed with hyperpotassemia in 2105.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hyperpotassemia' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cardiac tamponade' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"diagnosis_name1": "hyperpotassemia", "diagnosis_name2": "cardiac tamponade"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within] after having been diagnosed with {diagnosis_name1} [time_filter_global1].", "t_tag": ["abs-year-in", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name1} [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "40ec79ce0fa4c0c93a38f412", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were diagnosed with long-term use of insulin within the same month after previously being diagnosed with atriovent block complete, the previous year?", "template": "count the number of patients who were diagnosed with atriovent block complete within the same month after having been diagnosed with long-term use of insulin last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'long-term use of insulin' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'atriovent block complete' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month')", "value": {"diagnosis_name1": "long-term use of insulin", "diagnosis_name2": "atriovent block complete"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within] after having been diagnosed with {diagnosis_name1} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name1} [time_filter_global1:rel-year-last].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a9bd0215f99c5c2bbceddd44", "answer": ["0"]} {"db_id": "mimic_iii", "question": "since 4 years ago, how many patients were diagnosed with food/vomit pneumonitis during the same month after the previous diagnosis of adv eff antilipemics?", "template": "count the number of patients who were diagnosed with food/vomit pneumonitis within the same month after having been diagnosed with adv eff antilipemics since 4 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'adv eff antilipemics' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'food/vomit pneumonitis' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month')", "value": {"diagnosis_name1": "adv eff antilipemics", "diagnosis_name2": "food/vomit pneumonitis"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within] after having been diagnosed with {diagnosis_name1} [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name1} [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "decc56bbeb393002dc693d7f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "in 2105, how many patients were diagnosed with athscl extrm ntv art nos during the same hospital visit after the diagnosis with hypothyroidism nos?", "template": "count the number of patients who were diagnosed with athscl extrm ntv art nos within the same hospital visit after having been diagnosed with hypothyroidism nos in 2105.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hypothyroidism nos' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'athscl extrm ntv art nos' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"diagnosis_name1": "hypothyroidism nos", "diagnosis_name2": "athscl extrm ntv art nos"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within] after having been diagnosed with {diagnosis_name1} [time_filter_global1].", "t_tag": ["abs-year-in", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name2} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name1} [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "29b9bb053328dec8d2fbc2b5", "answer": ["0"]} {"db_id": "mimic_iii", "question": "the number of patients who have been diagnosed with late effect acute polio.", "template": "count the number of patients who were diagnosed with late effect acute polio.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'late effect acute polio' ) )", "value": {"diagnosis_name": "late effect acute polio"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1:null].", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c184bfb4db690916164bd7ec", "answer": ["1"]} {"db_id": "mimic_iii", "question": "since 2103 how many patients were diagnosed with long-term use steroids.", "template": "count the number of patients who were diagnosed with long-term use steroids since 2103.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'long-term use steroids' ) and strftime('%Y',diagnoses_icd.charttime) >= '2103' )", "value": {"diagnosis_name": "long-term use steroids"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2c2cd120646a53945e296a5f", "answer": ["7"]} {"db_id": "mimic_iii", "question": "tell me the total number of patients who are diagnosed with malign neopl ovary until 2102?", "template": "count the number of patients who were diagnosed with malign neopl ovary until 2102.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'malign neopl ovary' ) and strftime('%Y',diagnoses_icd.charttime) <= '2102' )", "value": {"diagnosis_name": "malign neopl ovary"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until].", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a194faaea77bf0f933ac9472", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many patients were diagnosed with celiac disease since 2105?", "template": "count the number of patients who were diagnosed with celiac disease since 2105.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select diagnoses_icd.hadm_id from diagnoses_icd where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'celiac disease' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' )", "value": {"diagnosis_name": "celiac disease"}, "q_tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5693a37f9b34c72469ed2554", "answer": ["1"]} {"db_id": "mimic_iii", "question": "count the number of people who have had a coronar arteriogr-2 cath procedure this year.", "template": "count the number of patients who received a coronar arteriogr-2 cath procedure this year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select procedures_icd.hadm_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'coronar arteriogr-2 cath' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') )", "value": {"procedure_name": "coronar arteriogr-2 cath"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1:rel-year-this].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9851a065ab9f4c52ee6bb068", "answer": ["0"]} {"db_id": "mimic_iii", "question": "the number of patients who have received a partial hepatectomy.", "template": "count the number of patients who received a partial hepatectomy procedure.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select procedures_icd.hadm_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'partial hepatectomy' ) )", "value": {"procedure_name": "partial hepatectomy"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1:null].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ba9a6468b0e7c19f00743715", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients were given temporary tracheostomy?", "template": "count the number of patients who received a temporary tracheostomy procedure.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select procedures_icd.hadm_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'temporary tracheostomy' ) )", "value": {"procedure_name": "temporary tracheostomy"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1:null].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a34b2603e86b81cf2aa3517d", "answer": ["32"]} {"db_id": "mimic_iii", "question": "how many patients received part gastrec w jej anast since 2 years ago?", "template": "count the number of patients who received a part gastrec w jej anast procedure since 2 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select procedures_icd.hadm_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'part gastrec w jej anast' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year') )", "value": {"procedure_name": "part gastrec w jej anast"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1:rel-year-since].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "69969284d7497f8108fb475f", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many patients have undergone op tot intr-abd colectmy since 2 years ago?", "template": "count the number of patients who received a op tot intr-abd colectmy procedure since 2 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select procedures_icd.hadm_id from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'op tot intr-abd colectmy' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year') )", "value": {"procedure_name": "op tot intr-abd colectmy"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_global1:rel-year-since].", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "45d5b73e0c32cb84e662f82c", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many patients had received a aortocor bypas-3 cor art procedure two times until 2 years ago?", "template": "count the number of patients who received a aortocor bypas-3 cor art procedure two times until 2 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, count(*) as c1 from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'aortocor bypas-3 cor art' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') group by admissions.subject_id ) as t1 where t1.c1 = 2", "value": {"procedure_name": "aortocor bypas-3 cor art"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [n_times] [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [n_times:two times] [time_filter_global1:rel-year-until].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "660d27c3c7e3a7e7dcef7426", "answer": ["0"]} {"db_id": "mimic_iii", "question": "do count the number of patients who had had a skull plate insertion procedure completed two times in 2103.", "template": "count the number of patients who received a skull plate insertion procedure two times in 2103.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, count(*) as c1 from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'skull plate insertion' ) and strftime('%Y',procedures_icd.charttime) = '2103' group by admissions.subject_id ) as t1 where t1.c1 = 2", "value": {"procedure_name": "skull plate insertion"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [n_times] [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [n_times:two times] [time_filter_global1:abs-year-in].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "97b2f499be0b6d5c7e56c558", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients got tooth extraction nec two or more times until 2103?", "template": "count the number of patients who received a tooth extraction nec procedure two or more times until 2103.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, count(*) as c1 from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'tooth extraction nec' ) and strftime('%Y',procedures_icd.charttime) <= '2103' group by admissions.subject_id ) as t1 where t1.c1 >= 2", "value": {"procedure_name": "tooth extraction nec"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [n_times] [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [n_times:two or more times] [time_filter_global1:abs-year-until].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5653bb8a452fa764e9a1b72f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were given pericardiocentesis two or more times a year before?", "template": "count the number of patients who received a pericardiocentesis procedure two or more times last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, count(*) as c1 from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'pericardiocentesis' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') group by admissions.subject_id ) as t1 where t1.c1 >= 2", "value": {"procedure_name": "pericardiocentesis"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [n_times] [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [n_times:two or more times] [time_filter_global1:rel-year-last].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d9b23b4fcf054099080ecce4", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who have received a replace trach tube treatment two or more times.", "template": "count the number of patients who received a replace trach tube procedure two or more times.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, count(*) as c1 from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'replace trach tube' ) group by admissions.subject_id ) as t1 where t1.c1 >= 2", "value": {"procedure_name": "replace trach tube"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [n_times] [time_filter_global1].", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "", "two or more times", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [n_times:two or more times] [time_filter_global1:null].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6fb915ae2d15c99692d88211", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who had a int inser lead atri-vent procedure in the same hospital encounter after being given a coronar arteriogr-2 cath procedure since 2103.", "template": "count the number of patients who received a int inser lead atri-vent procedure within the same hospital visit after having received a coronar arteriogr-2 cath procedure since 2103.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'coronar arteriogr-2 cath' ) and strftime('%Y',procedures_icd.charttime) >= '2103' ) as t1 join ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'int inser lead atri-vent' ) and strftime('%Y',procedures_icd.charttime) >= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"procedure_name1": "coronar arteriogr-2 cath", "procedure_name2": "int inser lead atri-vent"}, "q_tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within] after having received a {procedure_name1} procedure [time_filter_global1].", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within:within-hosp] after having received a {procedure_name1} procedure [time_filter_global1:abs-year-since].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c1ebc509dd25bef25bc54a30", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients received the revise lg bowel anastom within 2 months after receiving the hemodialysis until 2104?", "template": "count the number of patients who received a revise lg bowel anastom procedure within 2 month after having received a hemodialysis procedure until 2104.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'hemodialysis' ) and strftime('%Y',procedures_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'revise lg bowel anastom' ) and strftime('%Y',procedures_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"procedure_name1": "hemodialysis", "procedure_name2": "revise lg bowel anastom"}, "q_tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within] after having received a {procedure_name1} procedure [time_filter_global1].", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within:within-n_month] after having received a {procedure_name1} procedure [time_filter_global1:abs-year-until].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6950a1f6b0c56f4363c542ef", "answer": ["0"]} {"db_id": "mimic_iii", "question": "until 2 years ago, how many patients underwent percu abdominal drainage within the same hospital visit after having received left heart cardiac cath?", "template": "count the number of patients who received a percu abdominal drainage procedure within the same hospital visit after having received a left heart cardiac cath procedure until 2 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'left heart cardiac cath' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'percu abdominal drainage' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"procedure_name1": "left heart cardiac cath", "procedure_name2": "percu abdominal drainage"}, "q_tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within] after having received a {procedure_name1} procedure [time_filter_global1].", "t_tag": ["rel-year-until", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within:within-hosp] after having received a {procedure_name1} procedure [time_filter_global1:rel-year-until].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "efc0fef60ec3df9592a65109", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients underwent entral infus nutrit sub in the same month after the procedure of fiber-optic bronchoscopy, since 2 years ago?", "template": "count the number of patients who received a entral infus nutrit sub procedure within the same month after having received a fiber-optic bronchoscopy procedure since 2 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'fiber-optic bronchoscopy' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'entral infus nutrit sub' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month')", "value": {"procedure_name1": "fiber-optic bronchoscopy", "procedure_name2": "entral infus nutrit sub"}, "q_tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within] after having received a {procedure_name1} procedure [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within:within-month] after having received a {procedure_name1} procedure [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8ba31696f3af4ebfd543b4fb", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients underwent closed bronchial biopsy during the same hospital encounter after having received closed bronchial biopsy,?", "template": "count the number of patients who received a closed bronchial biopsy procedure within the same hospital visit after having received a closed bronchial biopsy procedure.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'closed bronchial biopsy' ) ) as t1 join ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'closed bronchial biopsy' ) ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"procedure_name1": "closed bronchial biopsy", "procedure_name2": "closed bronchial biopsy"}, "q_tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within] after having received a {procedure_name1} procedure [time_filter_global1].", "t_tag": ["", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name2} procedure [time_filter_within:within-hosp] after having received a {procedure_name1} procedure [time_filter_global1:null].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e8aa1c48f9ae8726e0b93167", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients have undergone a circumcision within the same hospital visit after having been diagnosed with personal history of fall, last year?", "template": "count the number of patients who received a circumcision procedure within the same hospital visit after having been diagnosed with personal history of fall last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'personal history of fall' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'circumcision' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"diagnosis_name": "personal history of fall", "procedure_name": "circumcision"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'health_records']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4e263ecdc3b0b1c3f164b86c", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients until 2 years ago underwent sm bowel endoscopy nec in the same hospital visit after having been diagnosed with anisocoria?", "template": "count the number of patients who received a sm bowel endoscopy nec procedure within the same hospital visit after having been diagnosed with anisocoria until 2 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'anisocoria' ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-2 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'sm bowel endoscopy nec' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id", "value": {"diagnosis_name": "anisocoria", "procedure_name": "sm bowel endoscopy nec"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-until", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until].", "department": "['physician', 'health_records']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2d546bdd4165b984cd21bb61", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients received fiber-optic bronchoscopy during the same month after having been diagnosed with acidosis, the last year?", "template": "count the number of patients who received a fiber-optic bronchoscopy procedure within the same month after having been diagnosed with acidosis last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acidosis' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'fiber-optic bronchoscopy' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month')", "value": {"diagnosis_name": "acidosis", "procedure_name": "fiber-optic bronchoscopy"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4aeb23523fc86b832b0613e2", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients received coronar arteriogr-1 cath in the same month after the diagnosis of dermatitis nos, since 2105?", "template": "count the number of patients who received a coronar arteriogr-1 cath procedure within the same month after having been diagnosed with dermatitis nos since 2105.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'dermatitis nos' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'coronar arteriogr-1 cath' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month')", "value": {"diagnosis_name": "dermatitis nos", "procedure_name": "coronar arteriogr-1 cath"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['physician', 'health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ccff887dd5e47fffb0f479ed", "answer": ["1"]} {"db_id": "mimic_iii", "question": "a year before, how many patients received sympath nerve inject nec within 2 months after the diagnosis of crbl emblsm w infrct?", "template": "count the number of patients who received a sympath nerve inject nec procedure within 2 month after having been diagnosed with crbl emblsm w infrct last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'crbl emblsm w infrct' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'sympath nerve inject nec' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"diagnosis_name": "crbl emblsm w infrct", "procedure_name": "sympath nerve inject nec"}, "q_tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {procedure_name} procedure [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a6a5039166369a15fa79ff07", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times in the last year has nonexcis debridement wnd been ordered?", "template": "count the number of nonexcis debridement wnd procedure cases last year.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'nonexcis debridement wnd' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"procedure_name": "nonexcis debridement wnd"}, "q_tag": "count the number of {procedure_name} procedure cases [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {procedure_name} procedure cases [time_filter_global1:rel-year-last].", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "100337270b2ceea8ae4ca08f", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times has the small bowel incision nec procedure been done since 2 years ago?", "template": "count the number of small bowel incision nec procedure cases since 2 year ago.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'small bowel incision nec' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year')", "value": {"procedure_name": "small bowel incision nec"}, "q_tag": "count the number of {procedure_name} procedure cases [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {procedure_name} procedure cases [time_filter_global1:rel-year-since].", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f9c42b762e2e0e2d61abacdd", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many impacted feces removal procedures occurred until 3 years ago?", "template": "count the number of impacted feces removal procedure cases until 3 year ago.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'impacted feces removal' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-3 year')", "value": {"procedure_name": "impacted feces removal"}, "q_tag": "count the number of {procedure_name} procedure cases [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {procedure_name} procedure cases [time_filter_global1:rel-year-until].", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b946e83f460b461625d3741d", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many times is other brain incision done since 2103?", "template": "count the number of other brain incision procedure cases since 2103.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'other brain incision' ) and strftime('%Y',procedures_icd.charttime) >= '2103'", "value": {"procedure_name": "other brain incision"}, "q_tag": "count the number of {procedure_name} procedure cases [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {procedure_name} procedure cases [time_filter_global1:abs-year-since].", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3078a5de368218226034df14", "answer": ["3"]} {"db_id": "mimic_iii", "question": "how many hemodialysis procedures took place since 2104?", "template": "count the number of hemodialysis procedure cases since 2104.", "query": "select count(*) from procedures_icd where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'hemodialysis' ) and strftime('%Y',procedures_icd.charttime) >= '2104'", "value": {"procedure_name": "hemodialysis"}, "q_tag": "count the number of {procedure_name} procedure cases [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {procedure_name} procedure cases [time_filter_global1:abs-year-since].", "department": "['other', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1893d7f711366b2da342c681", "answer": ["29"]} {"db_id": "mimic_iii", "question": "how many patients during this year were prescribed nicardipine hcl iv?", "template": "count the number of patients who were prescribed nicardipine hcl iv this year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'nicardipine hcl iv' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') )", "value": {"drug_name": "nicardipine hcl iv"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1:rel-year-this].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e66097f9453e7d829daecb38", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who had been prescribed an heparin flush hickman (100 units/ml) since 2101.", "template": "count the number of patients who were prescribed heparin flush hickman (100 units/ml) since 2101.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'heparin flush hickman (100 units/ml)' and strftime('%Y',prescriptions.startdate) >= '2101' )", "value": {"drug_name": "heparin flush hickman (100 units/ml)"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1:abs-year-since].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "319a5518cbc4ca72823d35b9", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with maalox/benadryl/lidocaine in the previous year?", "template": "count the number of patients who were prescribed maalox/benadryl/lidocaine last year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'maalox/benadryl/lidocaine' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"drug_name": "maalox/benadryl/lidocaine"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1:rel-year-last].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "41bfa1eef76e9ff12aebcda8", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients is methylprednisolone sodium succ prescribed to the last year?", "template": "count the number of patients who were prescribed methylprednisolone sodium succ last year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'methylprednisolone sodium succ' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"drug_name": "methylprednisolone sodium succ"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_global1:rel-year-last].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5c4288af9eb639680b8bb429", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many oxymetazoline prescription cases are there in 2105?", "template": "count the number of oxymetazoline prescription cases in 2105.", "query": "select count(*) from prescriptions where prescriptions.drug = 'oxymetazoline' and strftime('%Y',prescriptions.startdate) = '2105'", "value": {"drug_name": "oxymetazoline"}, "q_tag": "count the number of {drug_name} prescription cases [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {drug_name} prescription cases [time_filter_global1:abs-year-in].", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4b4a65b340ce9a3c6cc4adcd", "answer": ["5"]} {"db_id": "mimic_iii", "question": "how many bendamustine prescriptions have taken place since 2100?", "template": "count the number of bendamustine prescription cases since 2100.", "query": "select count(*) from prescriptions where prescriptions.drug = 'bendamustine' and strftime('%Y',prescriptions.startdate) >= '2100'", "value": {"drug_name": "bendamustine"}, "q_tag": "count the number of {drug_name} prescription cases [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {drug_name} prescription cases [time_filter_global1:abs-year-since].", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e5978ff836da8f86155f8e47", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many ziprasidone prescriptions were ordered since 1 year ago?", "template": "count the number of ziprasidone prescription cases since 1 year ago.", "query": "select count(*) from prescriptions where prescriptions.drug = 'ziprasidone' and datetime(prescriptions.startdate) >= datetime(current_time,'-1 year')", "value": {"drug_name": "ziprasidone"}, "q_tag": "count the number of {drug_name} prescription cases [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {drug_name} prescription cases [time_filter_global1:rel-year-since].", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1477039475e0125860f78a95", "answer": ["4"]} {"db_id": "mimic_iii", "question": "how many triamcinolone acetonide 0.025% cream prescriptions took place since 2104?", "template": "count the number of triamcinolone acetonide 0.025% cream prescription cases since 2104.", "query": "select count(*) from prescriptions where prescriptions.drug = 'triamcinolone acetonide 0.025% cream' and strftime('%Y',prescriptions.startdate) >= '2104'", "value": {"drug_name": "triamcinolone acetonide 0.025% cream"}, "q_tag": "count the number of {drug_name} prescription cases [time_filter_global1].", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {drug_name} prescription cases [time_filter_global1:abs-year-since].", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bd4886a104ba990f899995c0", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many fluticasone-salmeterol diskus (100/50) prescriptions occurred since 6 years ago?", "template": "count the number of fluticasone-salmeterol diskus (100/50) prescription cases since 6 year ago.", "query": "select count(*) from prescriptions where prescriptions.drug = 'fluticasone-salmeterol diskus (100/50)' and datetime(prescriptions.startdate) >= datetime(current_time,'-6 year')", "value": {"drug_name": "fluticasone-salmeterol diskus (100/50)"}, "q_tag": "count the number of {drug_name} prescription cases [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of {drug_name} prescription cases [time_filter_global1:rel-year-since].", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d14938f057dcc244318db1cb", "answer": ["6"]} {"db_id": "mimic_iii", "question": "count the number of patients that were prescribed aspirin ec within 2 months after having received a venous cath nec procedure until 4 years ago.", "template": "count the number of patients who were prescribed aspirin ec within 2 month after having received a venous cath nec procedure until 4 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'venous cath nec' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'aspirin ec' and datetime(prescriptions.startdate) <= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"drug_name": "aspirin ec", "procedure_name": "venous cath nec"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-until].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1c83293b0d1ab9058bfc12af", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed levothyroxine sodium within 2 months since 2105 after the procedure of cath base invasv ep test.", "template": "count the number of patients who were prescribed levothyroxine sodium within 2 month after having received a cath base invasv ep test procedure since 2105.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'cath base invasv ep test' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'levothyroxine sodium' and strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"drug_name": "levothyroxine sodium", "procedure_name": "cath base invasv ep test"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["abs-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6cd724434fe7a168cd8732ae", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with magnesium sulfate within the same month after the treatment of cont inv mec ven <96 hrs?", "template": "count the number of patients who were prescribed magnesium sulfate within the same month after having received a cont inv mec ven <96 hrs procedure.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'cont inv mec ven <96 hrs' ) ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'magnesium sulfate' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month')", "value": {"drug_name": "magnesium sulfate", "procedure_name": "cont inv mec ven <96 hrs"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:null].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ba0ba3cac332ad613a2121ef", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with docusate sodium within 2 months after the procedure of non-invasive mech vent, in 2102?", "template": "count the number of patients who were prescribed docusate sodium within 2 month after having received a non-invasive mech vent procedure in 2102.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'non-invasive mech vent' ) and strftime('%Y',procedures_icd.charttime) = '2102' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'docusate sodium' and strftime('%Y',prescriptions.startdate) = '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"drug_name": "docusate sodium", "procedure_name": "non-invasive mech vent"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["abs-year-in", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0328f9e19e6e0163962c7065", "answer": ["0"]} {"db_id": "mimic_iii", "question": "in this year, how many patients were prescribed with hydrochlorothiazide within 2 months after receiving appl ext fix-tib/fibula?", "template": "count the number of patients who were prescribed hydrochlorothiazide within 2 month after having received a appl ext fix-tib/fibula procedure this year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'appl ext fix-tib/fibula' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'hydrochlorothiazide' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"drug_name": "hydrochlorothiazide", "procedure_name": "appl ext fix-tib/fibula"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1].", "t_tag": ["rel-year-this", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-this].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "44b4db84327691fcacbe0e72", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients for whom neostigmine was prescribed in the same month after having been diagnosed during the previous year with atherosclerosis nec.", "template": "count the number of patients who were prescribed neostigmine within the same month after having been diagnosed with atherosclerosis nec last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'atherosclerosis nec' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'neostigmine' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month')", "value": {"drug_name": "neostigmine", "diagnosis_name": "atherosclerosis nec"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "371b271b3a4fcb9f456929b9", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with ciprofloxacin iv within the same month during a year before after diagnosis of ileostomy status?", "template": "count the number of patients who were prescribed ciprofloxacin iv within the same month after having been diagnosed with ileostomy status last year.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ileostomy status' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'ciprofloxacin iv' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month')", "value": {"drug_name": "ciprofloxacin iv", "diagnosis_name": "ileostomy status"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "within-month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bb44e13034e90ceabd9e62fe", "answer": ["0"]} {"db_id": "mimic_iii", "question": "since 4 years ago, how many patients were prescribed with dextrose 5% within 2 months after diagnosed with septicemia nos?", "template": "count the number of patients who were prescribed dextrose 5% within 2 month after having been diagnosed with septicemia nos since 4 year ago.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'septicemia nos' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'dextrose 5%' and datetime(prescriptions.startdate) >= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month')", "value": {"drug_name": "dextrose 5%", "diagnosis_name": "septicemia nos"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since].", "department": "['physician', 'insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5717a739649ee336aab058b0", "answer": ["21"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with omeprazole in the same hospital encounter after the diagnosis with alcohol cirrhosis liver, until 2103?", "template": "count the number of patients who were prescribed omeprazole within the same hospital visit after having been diagnosed with alcohol cirrhosis liver until 2103.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'alcohol cirrhosis liver' ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' ) as t1 join ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'omeprazole' and strftime('%Y',prescriptions.startdate) <= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"drug_name": "omeprazole", "diagnosis_name": "alcohol cirrhosis liver"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-until", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until].", "department": "['physician', 'insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "126660153bc343ce7f10f226", "answer": ["2"]} {"db_id": "mimic_iii", "question": "how many patients were prescribed with morphine sulfate during the same hospital visit after being diagnosed with mitral valve disorder, since 2105?", "template": "count the number of patients who were prescribed morphine sulfate within the same hospital visit after having been diagnosed with mitral valve disorder since 2105.", "query": "select count( distinct t1.subject_id ) from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'mitral valve disorder' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'morphine sulfate' and strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"drug_name": "morphine sulfate", "diagnosis_name": "mitral valve disorder"}, "q_tag": "count the number of patients who were prescribed {drug_name} [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who were prescribed {drug_name} [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since].", "department": "['physician', 'insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6310dd87db8c468c4a1f402d", "answer": ["7"]} {"db_id": "mimic_iii", "question": "calculate the number of patients who have received nonsquamous epithelial cell lab tests in this year.", "template": "count the number of patients who received a nonsquamous epithelial cell lab test this year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'nonsquamous epithelial cell' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') )", "value": {"lab_name": "nonsquamous epithelial cell"}, "q_tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-this].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "acf3f0e593d039280eb3b701", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who have received the bicarbonate, stool test since 4 years ago.", "template": "count the number of patients who received a bicarbonate, stool lab test since 4 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'bicarbonate, stool' ) and datetime(labevents.charttime) >= datetime(current_time,'-4 year') )", "value": {"lab_name": "bicarbonate, stool"}, "q_tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-since].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a431bc5979d3e5d36eff202e", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients were given a parathyroid hormone lab test in this year?", "template": "count the number of patients who received a parathyroid hormone lab test this year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'parathyroid hormone' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') )", "value": {"lab_name": "parathyroid hormone"}, "q_tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-this].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ab5ffdebb15a9c264de65d1d", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients received a potassium, urine lab test in 2100?", "template": "count the number of patients who received a potassium, urine lab test in 2100.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'potassium, urine' ) and strftime('%Y',labevents.charttime) = '2100' )", "value": {"lab_name": "potassium, urine"}, "q_tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1].", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1:abs-year-in].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "83c90e14276395f93db581ba", "answer": ["6"]} {"db_id": "mimic_iii", "question": "how many patients received a cd4 cells, percent test the last year?", "template": "count the number of patients who received a cd4 cells, percent lab test last year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select labevents.hadm_id from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'cd4 cells, percent' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"lab_name": "cd4 cells, percent"}, "q_tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {lab_name} lab test [time_filter_global1:rel-year-last].", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "72cb42e9f7f0217e6aeacbd9", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who have received a microbiological eye test since 2 years ago.", "template": "count the number of patients who received a eye microbiology test since 2 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'eye' and datetime(microbiologyevents.charttime) >= datetime(current_time,'-2 year') )", "value": {"culture_name": "eye"}, "q_tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-since].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7f448e1cf47c1ab8808789ae", "answer": ["8"]} {"db_id": "mimic_iii", "question": "count the number of patients who underwent a swab microbiology test until 2104.", "template": "count the number of patients who received a swab microbiology test until 2104.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'swab' and strftime('%Y',microbiologyevents.charttime) <= '2104' )", "value": {"culture_name": "swab"}, "q_tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1:abs-year-until].", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "784ed8465d5cf85c95d50029", "answer": ["212"]} {"db_id": "mimic_iii", "question": "how many patients received a foreign body microbiology test until 4 years ago?", "template": "count the number of patients who received a foreign body microbiology test until 4 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'foreign body' and datetime(microbiologyevents.charttime) <= datetime(current_time,'-4 year') )", "value": {"culture_name": "foreign body"}, "q_tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-until].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9812fa85dbeb72e88cd9cf42", "answer": ["0"]} {"db_id": "mimic_iii", "question": "how many patients received a tissue test during a year before?", "template": "count the number of patients who received a tissue microbiology test last year.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select microbiologyevents.hadm_id from microbiologyevents where microbiologyevents.spec_type_desc = 'tissue' and datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"culture_name": "tissue"}, "q_tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who received a {culture_name} microbiology test [time_filter_global1:rel-year-last].", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "caf7393ef45619581212449d", "answer": ["0"]} {"db_id": "mimic_iii", "question": "count the number of patients who have had a .25 ns+0.5:1 heparin intake since 4 years ago.", "template": "count the number of patients who had a .25 ns+0.5:1 heparin intake since 4 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = '.25 ns+0.5:1 heparin' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-4 year') ) )", "value": {"intake_name": ".25 ns+0.5:1 heparin"}, "q_tag": "count the number of patients who had a {intake_name} intake [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-since].", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e73ecce5256ccf2e4b2ef1c4", "answer": ["3"]} {"db_id": "mimic_iii", "question": "how many patients until 2103 had nutren pulmonary intake?", "template": "count the number of patients who had a nutren pulmonary intake until 2103.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'nutren pulmonary' and d_items.linksto = 'inputevents_cv' ) and strftime('%Y',inputevents_cv.charttime) <= '2103' ) )", "value": {"intake_name": "nutren pulmonary"}, "q_tag": "count the number of patients who had a {intake_name} intake [time_filter_global1].", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who had a {intake_name} intake [time_filter_global1:abs-year-until].", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "45d4ce3c3ae06ede1314cb7b", "answer": ["50"]} {"db_id": "mimic_iii", "question": "how many patients received a bupivicaine intake since 2 years ago?", "template": "count the number of patients who had a bupivicaine intake since 2 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'bupivicaine' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) >= datetime(current_time,'-2 year') ) )", "value": {"intake_name": "bupivicaine"}, "q_tag": "count the number of patients who had a {intake_name} intake [time_filter_global1].", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-since].", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ba14fa273ce0a10e0aa28f51", "answer": ["1"]} {"db_id": "mimic_iii", "question": "how many patients had a atg intake until 2 years ago?", "template": "count the number of patients who had a atg intake until 2 year ago.", "query": "select count( distinct admissions.subject_id ) from admissions where admissions.hadm_id in ( select icustays.hadm_id from icustays where icustays.icustay_id in ( select inputevents_cv.icustay_id from inputevents_cv where inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'atg' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime) <= datetime(current_time,'-2 year') ) )", "value": {"intake_name": "atg"}, "q_tag": "count the number of patients who had a {intake_name} intake [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "count the number of patients who had a {intake_name} intake [time_filter_global1:rel-year-until].", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a985e30adab679e244dd5a80", "answer": ["0"]} {"db_id": "mimic_iii", "question": "since 4 years ago, what were the three most frequently diagnosed conditions?", "template": "what are the top three frequent diagnoses since 4 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9d5aa7a8947642bfc6f9f710", "answer": ["hypertension nos", "atrial fibrillation", "chf nos"]} {"db_id": "mimic_iii", "question": "what were the top three diagnoses most frequently diagnosed since 6 years ago?", "template": "what are the top three frequent diagnoses since 6 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9852c2888ade65798f6b9772", "answer": ["hypertension nos", "atrial fibrillation", "chf nos"]} {"db_id": "mimic_iii", "question": "give me the top three most common diagnoses?", "template": "what are the top three frequent diagnoses?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "41c8ef5815a12e20e3166028", "answer": ["hypertension nos", "atrial fibrillation", "chf nos"]} {"db_id": "mimic_iii", "question": "tell me the top three of the most common diagnoses of patients 50s since 6 years ago?", "template": "what are the top three frequent diagnoses of patients aged 50s since 6 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 50 and 59 ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["50s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses of patients aged [age_group:50s] [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4e84803ebd6dd0b5541d7a25", "answer": ["hypertension nos", "crnry athrscl natve vssl", "atrial fibrillation"]} {"db_id": "mimic_iii", "question": "what are the top three most common diagnoses for patients aged 50s until 2103?", "template": "what were the top three frequent diagnoses of patients aged 50s until 2103?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 50 and 59 ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["50s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses of patients aged [age_group:50s] [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4f1fa1f7a71f297e1bbdf99e", "answer": ["hypertension nos", "atrial fibrillation", "chf nos"]} {"db_id": "mimic_iii", "question": "retrieve the top four most frequent diagnoses of patients aged 20s in 2105?", "template": "what are the top four frequent diagnoses of patients aged 20s in 2105?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t1.icd9_code from ( select diagnoses_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from diagnoses_icd where diagnoses_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',diagnoses_icd.charttime) = '2105' group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent diagnoses of patients aged [age_group:20s] [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b64f3ae81e8c6b754214ba8e", "answer": ["herpetic encephalitis", "second malig neo liver", "secondary malig neo nec", "hdgk dis unsp xtrndl org", "dmii wo cmp nt st uncntr", "dmi wo cmp uncntrld", "pure hypercholesterolem", "hyperlipidemia nec/nos", "acidosis", "dehydration", "hypovolemia", "obesity nos", "selective ig defic nec", "ac posthemorrhag anemia", "anemia nos", "neutropenia nos", "dysthymic disorder", "alcoh dep nec/nos-unspec", "opioid dependence-contin", "tobacco use disorder", "depressive disorder nec", "obstructiv hydrocephalus", "chronic pain nec", "flccd hmiplga unspf side", "unsp hmiplga nondmnt sde", "metabolic encephalopathy", "diabetic retinopathy nos", "glaucoma nos", "hypertension nos", "subendo infarct, initial", "old myocardial infarct", "angina pectoris nec/nos", "crnry athrscl natve vssl", "chr pulmon heart dis nec", "aortic valve disorder", "atrial fibrillation", "chf nos", "chr diastolic hrt fail", "crbl emblsm w infrct", "hypotension nos", "pneumonia, organism nos", "asthma nos", "fum/vapor bronc/pneumon", "food/vomit pneumonitis", "acute respiratry failure", "other lung disease nec", "esophageal reflux", "irritable bowel syndrome", "acute necrosis of liver", "alcohol cirrhosis liver", "portal hypertension", "acute kidney failure nos", "chr kidney dis stage iii", "end stage renal disease", "pyelonephritis nos", "urin tract infection nos", "bph w urinary obs/luts", "dermatitis nos", "lumbago", "rotator cuff synd nos", "rhabdomyolysis", "osteomyelit nos-oth site", "cong aorta valv insuffic", "resp prob after brth nec", "convulsions nec", "septic shock", "abdmnal pain oth spcf st", "abnrml coagultion prfile", "clos skull base fracture", "fx lumbar vertebra-close", "opn cerebe lac-deep coma", "injury ulnar vessels", "react-oth vasc dev/graft", "surg comp nerv systm nec", "abn react-artif implant", "abn react-anastom/graft", "vaccin for influenza", "need prphyl vc vrl hepat", "inf mcr rst ot drg nt ml", "hx-testicular malignancy", "hx-skin malignancy nec", "hx tia/stroke w/o resid", "history of tobacco use", "nb obs genetc/metabl cnd", "single lb in-hosp w/o cs", "single lb in-hosp w cs", "joint replaced knee", "do not resusctate status", "long-term use anticoagul", "encountr palliative care"]} {"db_id": "mimic_iii", "question": "since 5 years ago, what were the three most frequent diagnoses that patients were given after receiving a exc/dest hrt lesion open in the same hospital encounter?", "template": "what are the top three frequent diagnoses that patients were diagnosed within the same hospital visit after having received a exc/dest hrt lesion open procedure since 5 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-5 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.icd9_code ) as t3 where t3.c1 <= 3 )", "value": {"procedure_name": "exc/dest hrt lesion open"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses that patients were diagnosed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f121599f0f5384aa23869bd6", "answer": ["protein-cal malnutr nos", "prim cardiomyopathy nec", "atrial fibrillation", "acute kidney failure nos", "bph w/o urinary obs/luts", "accidental op laceration"]} {"db_id": "mimic_iii", "question": "since 6 years ago what are the five most frequent diagnoses that patients were given within 2 months after receiving other destru pancrea les?", "template": "what are the top five frequent diagnoses that patients were diagnosed within 2 month after having received a other destru pancrea les procedure since 6 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'other destru pancrea les' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-6 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-6 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"procedure_name": "other destru pancrea les"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d8e0cc10ddac1a07d0922868", "answer": ["int inf clstrdium dfcile", "klebsiella pneumoniae", "chrnc hpt c wo hpat coma", "acidosis", "mitral valve disorder", "left bb block nec", "atrial fibrillation", "athscl extrm ntv art nos", "pneumonia, organism nos", "obs chr bronc w(ac) exac", "urin tract infection nos", "rhabdomyolysis", "convulsions nec", "diarrhea", "ileostomy status", "routine circumcision"]} {"db_id": "mimic_iii", "question": "get me the top five most frequent diagnoses that patients were given within the same month after receiving exc/dest hrt lesion open since 3 years ago.", "template": "what are the top five frequent diagnoses that patients were diagnosed within the same month after having received a exc/dest hrt lesion open procedure since 3 year ago?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-3 year') ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where datetime(diagnoses_icd.charttime) >= datetime(current_time,'-3 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"procedure_name": "exc/dest hrt lesion open"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "74ffeee58ef5d18562bb1e97", "answer": ["protein-cal malnutr nos", "prim cardiomyopathy nec", "atrial fibrillation", "acute kidney failure nos", "bph w/o urinary obs/luts", "accidental op laceration"]} {"db_id": "mimic_iii", "question": "among patients who received exc/dest hrt lesion open , what are the top four most frequent diagnoses that followed afterwards during the same hospital visit?", "template": "what are the top four frequent diagnoses that patients were diagnosed within the same hospital visit after having received a exc/dest hrt lesion open procedure?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'exc/dest hrt lesion open' ) ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "exc/dest hrt lesion open"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent diagnoses that patients were diagnosed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9f20cda33363ec3323409715", "answer": ["protein-cal malnutr nos", "prim cardiomyopathy nec", "atrial fibrillation", "acute kidney failure nos", "bph w/o urinary obs/luts", "accidental op laceration"]} {"db_id": "mimic_iii", "question": "tell me the top five most frequent diagnoses that patients were diagnosed with within the same month after receiving replace trach tube until 2104.", "template": "what were the top five frequent diagnoses that patients were diagnosed within the same month after having received a replace trach tube procedure until 2104?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'replace trach tube' ) and strftime('%Y',procedures_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"procedure_name": "replace trach tube"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e56d7f715c36b2045fca3ada", "answer": ["mal neo middle 3rd esoph", "hypothyroidism nos", "dmii neuro nt st uncntrl", "hyperlipidemia nec/nos", "obstructiv hydrocephalus", "hypertension nos", "intermed coronary synd", "need prphyl vc vrl hepat", "hx of alcoholism"]} {"db_id": "mimic_iii", "question": "list the top five most frequent diagnoses that the patients were diagnosed with within 2 months after being diagnosed with alcohol cirrhosis liver until 2104.", "template": "what were the top five frequent diagnoses that patients were diagnosed within 2 month after having been diagnosed with alcohol cirrhosis liver until 2104?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'alcohol cirrhosis liver' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"diagnosis_name": "alcohol cirrhosis liver"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician', 'insurance_review']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4104cf98655dce3a911da39a", "answer": ["meth susc staph aur sept", "malignant neoplasm cecum", "pure hypercholesterolem", "hyperlipidemia nec/nos", "hypovolemia", "acq hemolytic anemia nos", "adjustmnt dis w depressn", "blindness, one eye", "hypertension nos", "crnry athrscl natve vssl", "pulm embol/infarct nec", "chr pulmon heart dis nec", "atrial fibrillation", "chf nos", "esoph varice oth dis nos", "pneumonia, organism nos", "bronchiectas w/o ac exac", "dvrtclo colon w/o hmrhg", "pancreat cyst/pseudocyst", "end stage renal disease", "backache nos", "biliary & liver anom nec", "insomnia nos", "fever nos", "epistaxis", "severe sepsis", "surg compl-heart", "adv eff analgesic nos", "carrier nec"]} {"db_id": "mimic_iii", "question": "for patients diagnosed with gangrene until 2104, what are the top five most frequent diagnoses that followed within 2 months?", "template": "what were the top five frequent diagnoses that patients were diagnosed within 2 month after having been diagnosed with gangrene until 2104?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'gangrene' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"diagnosis_name": "gangrene"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician', 'insurance_review']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a2abdb323ff44db774ab337d", "answer": ["cryptosporidiosis", "hypothyroidism nos", "dmii wo cmp uncntrld", "acidosis", "tobacco use disorder", "cereb degeneration nos", "ami anterolateral, init", "pneumonia e coli", "food/vomit pneumonitis", "acute necrosis of liver", "end stage renal disease", "cardiac murmurs nec", "abn react-anastom/graft", "abn react-procedure nec", "adv eff blood products", "inf mcrg rstn pncllins"]} {"db_id": "mimic_iii", "question": "what are the three commonly given diagnoses for patients diagnosed with acute pericarditis nec previously in the same month, in 2105?", "template": "what are the top three frequent diagnoses that patients were diagnosed within the same month after having been diagnosed with acute pericarditis nec in 2105?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acute pericarditis nec' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "acute pericarditis nec"}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses that patients were diagnosed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses that patients were diagnosed [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['physician', 'insurance_review']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8dc32a6aec69a689b10a3df2", "answer": ["secondary malig neo nec", "hypothyroidism nos", "dmii wo cmp nt st uncntr", "protein-cal malnutr nos", "acute gouty arthropathy", "hyperosmolality", "hypopotassemia", "iron defic anemia nos", "drug induced neutropenia", "panic dis w/o agorphobia", "depressive disorder nec", "encephalopathy nos", "toxic encephalopathy", "hypertension nos", "intermed coronary synd", "cor ath unsp vsl ntv/gft", "atrial fibrillation", "cardiac dysrhythmias nec", "ocl crtd art w infrct", "pneumonia, organism nos", "gstr/ddnts nos w/o hmrhg", "bilat inguinal hernia", "peritoneal abscess", "chronic kidney dis nos", "urin tract infection nos", "secundum atrial sept def", "convulsions nec", "complic med care nec/nos", "accid in resident instit", "abn react-procedure nec", "inf mcrg rstn pncllins", "personal history uti", "long-term use anticoagul", "long-term use of insulin"]} {"db_id": "mimic_iii", "question": "tell me what are the top four most common procedures until 2102?", "template": "what were the top four frequent procedures until 2102?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where strftime('%Y',procedures_icd.charttime) <= '2102' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2e2a642beca71c7e718becf7", "answer": ["venous cath nec", "insert endotracheal tube", "entral infus nutrit sub", "cont inv mec ven <96 hrs", "packed cell transfusion"]} {"db_id": "mimic_iii", "question": "show me the top three most frequent treatments?", "template": "what are the top three frequent procedures?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent procedures [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "07d8a5c09d6b2976d9e8ba74", "answer": ["venous cath nec", "insert endotracheal tube", "entral infus nutrit sub"]} {"db_id": "mimic_iii", "question": "since 2104, what was the four most frequent procedure for patients 20s?", "template": "what are the top four frequent procedures of patients aged 20s since 2104?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',procedures_icd.charttime) >= '2104' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures of patients aged [age_group:20s] [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3a37fa0328dd8b87bf1e695f", "answer": ["venous cath nec", "insert endotracheal tube", "cont inv mec ven <96 hrs", "cont inv mec ven 96+ hrs"]} {"db_id": "mimic_iii", "question": "what are the three most frequently given procedures for patients with age 60 or above?", "template": "what are the top three frequent procedures of patients aged 60 or above?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age >= 60 ) group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["60 or above", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent procedures of patients aged [age_group:60 or above] [time_filter_global1:null]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f66374d800d34817b9ccd417", "answer": ["venous cath nec", "insert endotracheal tube", "entral infus nutrit sub"]} {"db_id": "mimic_iii", "question": "until 2100, what are the three commonly ordered procedures for patients of age 30s?", "template": "what were the top three frequent procedures of patients aged 30s until 2100?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 30 and 39 ) and strftime('%Y',procedures_icd.charttime) <= '2100' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["30s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent procedures of patients aged [age_group:30s] [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "91b0fa723606d608de98a109", "answer": ["closed bronchial biopsy", "open lung biopsy", "left heart cardiac cath", "int inser lead atri-vent", "arterial catheterization", "venous cath nec", "suture of vein", "endosc destru lg int les", "insert endotracheal tube", "entral infus nutrit sub", "cont inv mec ven 96+ hrs", "remov ureteral drain", "packed cell transfusion", "parent infus nutrit sub"]} {"db_id": "mimic_iii", "question": "what are the four common procedures for patients 40s since 2100?", "template": "what are the top four frequent procedures of patients aged 40s since 2100?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t1.icd9_code from ( select procedures_icd.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 40 and 49 ) and strftime('%Y',procedures_icd.charttime) >= '2100' group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["40s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures of patients aged [age_group:40s] [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3e08b1cf598ade45161eb336", "answer": ["venous cath nec", "insert endotracheal tube", "entral infus nutrit sub", "cont inv mec ven <96 hrs", "vaccination nec"]} {"db_id": "mimic_iii", "question": "since 2101, what are the four most frequent interventions that patients were given in the same month after receiving aortocor bypas-3 cor art?", "template": "what are the top four frequent procedures that patients received within the same month after having received a aortocor bypas-3 cor art procedure since 2101?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'aortocor bypas-3 cor art' ) and strftime('%Y',procedures_icd.charttime) >= '2101' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2101' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "aortocor bypas-3 cor art"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f43ab21fc9a3a3effc523ef3", "answer": ["closed bronchial biopsy", "left heart cardiac cath", "pulsation balloon implan", "implt/repl carddefib tot", "arterial catheterization", "cv cath plcmt w guidance", "simp exc lymph struc nec", "packed cell transfusion", "vaccination nec"]} {"db_id": "mimic_iii", "question": "list the top four most frequent procedures that patients were given within the same month after receiving endosc remove bile stone since 2105.", "template": "what are the top four frequent procedures that patients received within the same month after having received a endosc remove bile stone procedure since 2105?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'endosc remove bile stone' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "endosc remove bile stone"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "228a176ead6a30e7d7ea4a7b", "answer": ["create cutanperiton fist", "lingual thyroid excision", "parent infus nutrit sub", "vaccination nec"]} {"db_id": "mimic_iii", "question": "among patients who received other skin & subq i & d since 2105, what are the top four most common procedures that followed afterwards in the same month?", "template": "what are the top four frequent procedures that patients received within the same month after having received a other skin & subq i & d procedure since 2105?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'other skin & subq i & d' ) and strftime('%Y',procedures_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "other skin & subq i & d"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "017aafa6f0b30406240b7394", "answer": ["create cutanperiton fist", "lingual thyroid excision", "parent infus nutrit sub", "vaccination nec"]} {"db_id": "mimic_iii", "question": "what were the three most frequent procedures that patients received within 2 months after the diagnosis of wbc disease nec?", "template": "what are the top three frequent procedures that patients received within 2 month after having been diagnosed with wbc disease nec?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'wbc disease nec' ) ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "wbc disease nec"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent procedures that patients received [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a0e8fe81cef2e999ac7f0880", "answer": ["venous cath nec", "ven cath renal dialysis", "sympath nerve inject nec", "dx ultrasound-heart", "insert endotracheal tube", "cont inv mec ven <96 hrs"]} {"db_id": "mimic_iii", "question": "what are the four most frequently given procedures for patients diagnosed with ath ext ntv art gngrene previously in the same month, since 4 years ago?", "template": "what are the top four frequent procedures that patients received within the same month after having been diagnosed with ath ext ntv art gngrene since 4 year ago?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ath ext ntv art gngrene' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-4 year') ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where datetime(procedures_icd.charttime) >= datetime(current_time,'-4 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"diagnosis_name": "ath ext ntv art gngrene"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f05efe1f25b45182b191e3e9", "answer": ["ivus intrathoracic ves", "opn tricus valvuloplasty", "annuloplasty", "interruption vena cava", "arterial catheterization", "ven cath renal dialysis", "oth endo proc oth vessel", "procedure-one vessel", "part sm bowel resect nec", "endosc sphincterotomy", "lt heart angiocardiogram", "coronar arteriogr-2 cath", "immobiliz/wound attn nec", "cont inv mec ven <96 hrs", "cont inv mec ven 96+ hrs", "packed cell transfusion", "parent infus nutrit sub", "inj/inf platelet inhibit"]} {"db_id": "mimic_iii", "question": "for patients who were diagnosed with cystic kidney diseas nos since 2102, what are the top five most common treatments that followed afterwards during the same month?", "template": "what are the top five frequent procedures that patients received within the same month after having been diagnosed with cystic kidney diseas nos since 2102?", "query": "select d_icd_procedures.short_title from d_icd_procedures where d_icd_procedures.icd9_code in ( select t3.icd9_code from ( select t2.icd9_code, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'cystic kidney diseas nos' ) and strftime('%Y',diagnoses_icd.charttime) >= '2102' ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where strftime('%Y',procedures_icd.charttime) >= '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"diagnosis_name": "cystic kidney diseas nos"}, "q_tag": "what are_verb the top [n_rank] frequent procedures that patients received [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent procedures that patients received [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7563111a2e8c52d901418f89", "answer": ["contr cerebr arteriogram", "dx ultrasound-heart", "other phototherapy"]} {"db_id": "mimic_iii", "question": "show me the top four most commonly prescribed medications since 2 years ago?", "template": "what are the top four frequently prescribed drugs since 2 year ago?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where datetime(prescriptions.startdate) >= datetime(current_time,'-2 year') group by prescriptions.drug ) as t1 where t1.c1 <= 4", "value": {}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3a4c7a38c26020b9fd61dcdb", "answer": ["potassium chloride", "insulin", "d5w", "furosemide"]} {"db_id": "mimic_iii", "question": "show the top three most commonly prescribed drugs for patients of the age of 40s until 2100?", "template": "what were the top three frequently prescribed drugs of patients aged 40s until 2100?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 40 and 49 ) and strftime('%Y',prescriptions.startdate) <= '2100' group by prescriptions.drug ) as t1 where t1.c1 <= 3", "value": {}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["40s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs of patients aged [age_group:40s] [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bf831a47464344794a26b0af", "answer": ["potassium chloride", "furosemide", "insulin", "d5w"]} {"db_id": "mimic_iii", "question": "retrieve the top four most commonly prescribed drugs for patients 20s in 2102?", "template": "what were the top four frequently prescribed drugs of patients aged 20s in 2102?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',prescriptions.startdate) = '2102' group by prescriptions.drug ) as t1 where t1.c1 <= 4", "value": {}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs of patients aged [age_group:20s] [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5cc451d70e10d1584de5a74c", "answer": ["insulin", "potassium chloride", "ns", "sodium chloride 0.9% flush"]} {"db_id": "mimic_iii", "question": "for patients 60 or above since 2102, what are the top five prescribed drugs?", "template": "what are the top five frequently prescribed drugs of patients aged 60 or above since 2102?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.age >= 60 ) and strftime('%Y',prescriptions.startdate) >= '2102' group by prescriptions.drug ) as t1 where t1.c1 <= 5", "value": {}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["60 or above", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs of patients aged [age_group:60 or above] [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1aa4c34d9423d8c8958a93d9", "answer": ["potassium chloride", "insulin", "furosemide", "d5w", "ns"]} {"db_id": "mimic_iii", "question": "what are the three most frequently prescribed drugs for patients who are also prescribed amlodipine besylate at the same time in 2105?", "template": "what are the top three frequent prescribed drugs for patients who were also prescribed amlodipine besylate at the same time in 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'amlodipine besylate' and strftime('%Y',prescriptions.startdate) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"drug_name": "amlodipine besylate"}, "q_tag": "what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-same", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:abs-year-in]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2051006e3e4a944f0d948b68", "answer": ["ns", "amlodipine besylate", "warfarin", "iso-osmotic dextrose", "dexamethasone"]} {"db_id": "mimic_iii", "question": "what are the four most frequently prescribed drugs for patients also prescribed with amlodipine besylate at the same time, in 2105?", "template": "what are the top four frequent prescribed drugs for patients who were also prescribed amlodipine besylate at the same time in 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'amlodipine besylate' and strftime('%Y',prescriptions.startdate) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"drug_name": "amlodipine besylate"}, "q_tag": "what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-same", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:abs-year-in]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2c5d6c15626a1e5becb40fc3", "answer": ["ns", "amlodipine besylate", "warfarin", "iso-osmotic dextrose", "dexamethasone", "sodium chloride 0.9% flush", "morphine sulfate", "lr", "heparin", "docusate sodium", "diltiazem", "acetaminophen", "0.9% sodium chloride"]} {"db_id": "mimic_iii", "question": "retrieve the top four most ordered drugs for patients also prescribed with cefepime at the same time?", "template": "what are the top four frequent prescribed drugs for patients who were also prescribed cefepime at the same time?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'cefepime' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where datetime(t1.startdate) = datetime(t2.startdate) group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"drug_name": "cefepime"}, "q_tag": "what are_verb the top [n_rank] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within] [time_filter_global1]?", "t_tag": ["", "", "within-same", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:null]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6390db70f528e0a7823575b6", "answer": ["cefepime", "potassium chloride", "insulin", "d5w"]} {"db_id": "mimic_iii", "question": "list the top three most frequently prescribed drugs that patients were prescribed with within 2 months after they were prescribed with syringe (iv room) until 2102.", "template": "what were the top three frequent drugs that patients were prescribed within 2 month after having been prescribed with syringe (iv room) until 2102?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'syringe (iv room)' and strftime('%Y',prescriptions.startdate) <= '2102' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) <= '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t2.startdate) between datetime(t1.startdate) and datetime(t1.startdate,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"drug_name": "syringe (iv room)"}, "q_tag": "what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent drugs that patients were prescribed [time_filter_within:within-n_month] after having been prescribed with {drug_name} [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2379b752a6d677408e7cf8e7", "answer": ["potassium chloride", "furosemide", "insulin"]} {"db_id": "mimic_iii", "question": "what are the top four most frequent medications that followed during the same month for those patients that were prescribed creon 12 in 2104?", "template": "what were the top four frequent drugs that patients were prescribed within the same month after having been prescribed with creon 12 in 2104?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'creon 12' and strftime('%Y',prescriptions.startdate) = '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t1.startdate,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"drug_name": "creon 12"}, "q_tag": "what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-month] after having been prescribed with {drug_name} [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6042253ee30f0ff24a4f5aba", "answer": ["pantoprazole", "metoprolol tartrate", "d5w", "zolpidem tartrate", "vancomycin", "sodium bicarbonate", "oxycodone-acetaminophen", "ns", "metoprolol", "mannitol 20%", "magnesium sulfate", "lr", "iso-osmotic dextrose", "heparin flush (10 units/ml)", "furosemide", "epinephrine", "desitin", "chlorhexidine gluconate 0.12% oral rinse", "cephalexin", "ceftriaxone", "aspirin", "alteplase (catheter clearance)", "albuterol 0.083% neb soln"]} {"db_id": "mimic_iii", "question": "among patients that were prescribed with sterile water for irrigation since 5 years ago, what are the top five most common drugs that followed afterwards during the same month?", "template": "what are the top five frequent drugs that patients were prescribed within the same month after having been prescribed with sterile water for irrigation since 5 year ago?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'sterile water for irrigation' and datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t1.startdate,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"drug_name": "sterile water for irrigation"}, "q_tag": "what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent drugs that patients were prescribed [time_filter_within:within-month] after having been prescribed with {drug_name} [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b0e90158b53790651cffce9a", "answer": ["ns", "iso-osmotic dextrose", "propofol", "lr", "levothyroxine sodium", "levofloxacin", "furosemide", "bag", "5% dextrose (excel bag)"]} {"db_id": "mimic_iii", "question": "for patients who were prescribed with d15w , what are the top four most common medications that followed within 2 months?", "template": "what are the top four frequent drugs that patients were prescribed within 2 month after having been prescribed with d15w?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'd15w' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and datetime(t2.startdate) between datetime(t1.startdate) and datetime(t1.startdate,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"drug_name": "d15w"}, "q_tag": "what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?", "t_tag": ["", "", "within-n_month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-n_month] after having been prescribed with {drug_name} [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7e618eb63029241ace979fc4", "answer": ["potassium chloride", "d5w", "ns", "insulin", "furosemide"]} {"db_id": "mimic_iii", "question": "among patients that were prescribed with acetami since 2105, what are the top four most common drugs that followed in the same hospital encounter?", "template": "what are the top four frequent drugs that patients were prescribed within the same hospital visit after having been prescribed with acetami since 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'acetami' and strftime('%Y',prescriptions.startdate) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.startdate < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"drug_name": "acetami"}, "q_tag": "what are_verb the top [n_rank] frequent drugs that patients were prescribed [time_filter_within] after having been prescribed with {drug_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent drugs that patients were prescribed [time_filter_within:within-hosp] after having been prescribed with {drug_name} [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "eafd86a3960a6e98d418c96e", "answer": ["potassium chloride", "furosemide", "0.9% sodium chloride", "d5w", "iso-osmotic dextrose"]} {"db_id": "mimic_iii", "question": "what are the three most commonly prescribed medications for patients who previously received the platelet transfusion within 2 months,?", "template": "what are the top three frequently prescribed drugs that patients were prescribed within 2 month after having received a platelet transfusion procedure?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'platelet transfusion' ) ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"procedure_name": "platelet transfusion"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e0b3a68e022e4d5fd4abc2d7", "answer": ["furosemide", "d5w", "potassium chloride", "ns"]} {"db_id": "mimic_iii", "question": "what are the five frequently ordered drugs for patients that received cont inv mec ven 96+ hrs previously within the same hospital visit, in 2102?", "template": "what were the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having received a cont inv mec ven 96+ hrs procedure in 2102?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'cont inv mec ven 96+ hrs' ) and strftime('%Y',procedures_icd.charttime) = '2102' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"procedure_name": "cont inv mec ven 96+ hrs"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5c27d1e5a0cb2c4e39a7f3f5", "answer": ["syringe", "atenolol"]} {"db_id": "mimic_iii", "question": "for patients who took lingual thyroid excision in 2105, what are the top five most frequent drugs that followed in the same month?", "template": "what are the top five frequently prescribed drugs that patients were prescribed within the same month after having received a lingual thyroid excision procedure in 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'lingual thyroid excision' ) and strftime('%Y',procedures_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"procedure_name": "lingual thyroid excision"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "20b1f38657ed9465f01e4888", "answer": ["potassium chloride", "insulin", "5% dextrose", "vial", "metoprolol", "iso-osmotic dextrose", "hydralazine", "potassium chl 20 meq / 1000 ml d5 1/2 ns", "magnesium sulfate", "lisinopril", "levofloxacin", "d5w", "ciprofloxacin iv", "atorvastatin", "0.9% sodium chloride", "warfarin", "vancomycin enema", "vancomycin", "valganciclovir", "trazodone", "sw", "sterile water", "sodium bicarbonate", "senna", "ranitidine (liquid)", "prismasate (b22 k4)", "potassium phosphate", "phenytoin sodium", "phenylephrine", "pantoprazole sodium", "oxycodone sr (oxycontin)", "ns", "norepinephrine", "nitroglycerin", "neutra-phos", "neostigmine", "neo*iv*gentamicin", "montelukast sodium", "mirtazapine", "milrinone", "metronidazole", "metoprolol tartrate", "metoclopramide", "magnesium citrate", "maalox/diphenhydramine/lidocaine", "linezolid", "levothyroxine sodium", "lactated ringers", "iso-osmotic sodium chloride", "ipratropium bromide neb", "humulin-r insulin", "furosemide", "fentanyl patch", "esmolol", "docusate sodium (liquid)", "docusate sodium", "ciprofloxacin hcl", "ceftriaxone", "calcium gluconate", "bupivacaine 0.5%", "bupivacaine 0.1%", "bag", "aspirin", "ampicillin sodium", "amlodipine", "albuterol mdi", "albuterol inhaler", "acetazolamide sodium", "5% dextrose (excel bag)"]} {"db_id": "mimic_iii", "question": "what were the three most common medications prescribed for patients who had previously been diagnosed with pleurisy w/o effus or tb within 2 months, since 5 years ago?", "template": "what are the top three frequently prescribed drugs that patients were prescribed within 2 month after having been diagnosed with pleurisy w/o effus or tb since 5 year ago?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'pleurisy w/o effus or tb' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-5 year') ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where datetime(prescriptions.startdate) >= datetime(current_time,'-5 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "pleurisy w/o effus or tb"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6632ae0a05fa2f1fa37914f4", "answer": ["potassium chloride", "insulin", "ns", "metoprolol tartrate", "iso-osmotic dextrose", "d5w", "5% dextrose", "docusate sodium", "0.9% sodium chloride"]} {"db_id": "mimic_iii", "question": "what were the top four most commonly prescribed drugs to patients in the same hospital visit after they were diagnosed with fracture two ribs-closed?", "template": "what are the top four frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with fracture two ribs-closed?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'fracture two ribs-closed' ) ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"diagnosis_name": "fracture two ribs-closed"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f9cba84478f94136fdaff8f9", "answer": ["potassium chloride", "magnesium sulfate", "insulin", "0.9% sodium chloride", "d5w", "furosemide"]} {"db_id": "mimic_iii", "question": "what are the five commonly ordered medications for patients who were diagnosed with chf nos previously within 2 months, until 2103?", "template": "what were the top five frequently prescribed drugs that patients were prescribed within 2 month after having been diagnosed with chf nos until 2103?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chf nos' ) and strftime('%Y',diagnoses_icd.charttime) <= '2103' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) <= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "chf nos"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b7fc8f34d339cc476c9ecd64", "answer": ["potassium chloride", "d5w", "furosemide", "insulin", "ns"]} {"db_id": "mimic_iii", "question": "among patients who were diagnosed with liver transplant status since 2105, what are the top five most frequent medications that followed afterwards in the same hospital visit?", "template": "what are the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with liver transplant status since 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'liver transplant status' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "liver transplant status"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "df6fbd190fad13b8e90d2ed8", "answer": ["potassium chloride", "furosemide", "sodium chloride 0.9% flush", "insulin", "bisacodyl", "sodium bicarbonate", "iso-osmotic dextrose", "d5w"]} {"db_id": "mimic_iii", "question": "what are the five commonly ordered drugs for patients that were diagnosed with surg compl-heart previously during the same hospital visit, since 2103?", "template": "what are the top five frequently prescribed drugs that patients were prescribed within the same hospital visit after having been diagnosed with surg compl-heart since 2103?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'surg compl-heart' ) and strftime('%Y',diagnoses_icd.charttime) >= '2103' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where strftime('%Y',prescriptions.startdate) >= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "surg compl-heart"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "abe1948f0ccad36d530e0418", "answer": ["potassium chloride", "insulin", "furosemide", "d5w", "ns", "0.9% sodium chloride"]} {"db_id": "mimic_iii", "question": "what is the five drug most frequently prescribed to the patients aged 60 or above within 2 months after they have been diagnosed with comp-oth cardiac device?", "template": "what are the top five frequently prescribed drugs that patients aged 60 or above were prescribed within 2 month after having been diagnosed with comp-oth cardiac device?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'comp-oth cardiac device' ) ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age >= 60 ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "comp-oth cardiac device"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["", "", "within-n_month", "", ""], "o_tag": ["60 or above", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients aged [age_group:60 or above] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "58262888d6ec07c49669806c", "answer": ["potassium chloride", "ns", "d5w", "furosemide", "insulin", "0.9% sodium chloride"]} {"db_id": "mimic_iii", "question": "what were the four most frequent drugs that were prescribed to patients in their 20s within 2 months after they had been diagnosed with osteoporosis nos until 2104?", "template": "what were the top four frequently prescribed drugs that patients aged 20s were prescribed within 2 month after having been diagnosed with osteoporosis nos until 2104?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'osteoporosis nos' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age between 20 and 29 and strftime('%Y',prescriptions.startdate) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"diagnosis_name": "osteoporosis nos"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-n_month", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs that patients aged [age_group:20s] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b26b02003efaedaa43491e93", "answer": ["insulin", "furosemide", "heparin", "vancomycin hcl", "iso-osmotic dextrose", "sodium chloride 0.9% flush", "sodium bicarbonate", "nystatin oral suspension", "ns", "famotidine", "acetaminophen"]} {"db_id": "mimic_iii", "question": "among patients who were diagnosed with anemia in chr kidney dis since 2104, what are the top four most commonly prescribed medications that followed afterwards within 2 months to the patients aged 40s?", "template": "what are the top four frequently prescribed drugs that patients aged 40s were prescribed within 2 month after having been diagnosed with anemia in chr kidney dis since 2104?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'anemia in chr kidney dis' ) and strftime('%Y',diagnoses_icd.charttime) >= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.age between 40 and 49 and strftime('%Y',prescriptions.startdate) >= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"diagnosis_name": "anemia in chr kidney dis"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-n_month", "", ""], "o_tag": ["40s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs that patients aged [age_group:40s] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "88de8cb449d9e268400dbd9d", "answer": ["potassium chloride", "ns", "iso-osmotic dextrose", "insulin", "sw", "metoprolol", "docusate sodium", "warfarin", "neutra-phos", "iso-osmotic sodium chloride", "heparin sodium", "5% dextrose"]} {"db_id": "mimic_iii", "question": "since 2105, what are the four most frequent medications prescribed to female patients of 50s after they have been diagnosed with acute respiratry failure within 2 months?", "template": "what are the top four frequently prescribed drugs that female patients aged 50s were prescribed within 2 month after having been diagnosed with acute respiratry failure since 2105?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acute respiratry failure' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id in ( select patients.subject_id from patients where patients.gender = 'f' ) and admissions.age between 50 and 59 and strftime('%Y',prescriptions.startdate) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"diagnosis_name": "acute respiratry failure", "gender": "f"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that {gender} patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-n_month", "", ""], "o_tag": ["50s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs that {gender} patients aged [age_group:50s] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8b3cf9752aa28d2b6509c313", "answer": ["furosemide", "insulin", "ns", "5% dextrose", "magnesium sulfate"]} {"db_id": "mimic_iii", "question": "what are the three most frequent medicines that were prescribed within 2 months to the female patients of age 60 or above after they have been diagnosed with ch obst asth w (ac) exac in 2100?", "template": "what were the top three frequently prescribed drugs that female patients aged 60 or above were prescribed within 2 month after having been diagnosed with ch obst asth w (ac) exac in 2100?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'ch obst asth w (ac) exac' ) and strftime('%Y',diagnoses_icd.charttime) = '2100' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id in ( select patients.subject_id from patients where patients.gender = 'f' ) and admissions.age >= 60 and strftime('%Y',prescriptions.startdate) = '2100' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t2.startdate) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "ch obst asth w (ac) exac", "gender": "f"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that {gender} patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-n_month", "", ""], "o_tag": ["60 or above", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that {gender} patients aged [age_group:60 or above] were prescribed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['physician']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b9c76f4a21f3f43ed6cad0d5", "answer": ["insulin", "sw", "potassium chloride", "iso-osmotic dextrose", "d5w"]} {"db_id": "mimic_iii", "question": "for patients who were diagnosed with chr airway obstruct nec until 2104, what are the top four most commonly prescribed drugs that followed afterwards within the same hospital visit to the male patients aged 40s?", "template": "what were the top four frequently prescribed drugs that male patients aged 40s were prescribed within the same hospital visit after having been diagnosed with chr airway obstruct nec until 2104?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chr airway obstruct nec' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id in ( select patients.subject_id from patients where patients.gender = 'm' ) and admissions.age between 40 and 49 and strftime('%Y',prescriptions.startdate) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"diagnosis_name": "chr airway obstruct nec", "gender": "m"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that {gender} patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-hosp", "", ""], "o_tag": ["40s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs that {gender} patients aged [age_group:40s] were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "527df071a13afb527362b145", "answer": ["vial", "vancomycin", "sw", "sterile water", "pantoprazole", "oxycodone", "meropenem", "lr", "lisinopril", "hydromorphone (dilaudid)", "heparin", "haloperidol", "ganciclovir", "docusate sodium", "d5w", "bisacodyl"]} {"db_id": "mimic_iii", "question": "what are the five most commonly prescribed medications in the same month to the female patients aged 20s after having been diagnosed with chf nos until 2104?", "template": "what were the top five frequently prescribed drugs that female patients aged 20s were prescribed within the same month after having been diagnosed with chf nos until 2104?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'chf nos' ) and strftime('%Y',diagnoses_icd.charttime) <= '2104' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id in ( select patients.subject_id from patients where patients.gender = 'f' ) and admissions.age between 20 and 29 and strftime('%Y',prescriptions.startdate) <= '2104' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and datetime(t1.charttime,'start of month') = datetime(t2.startdate,'start of month') group by t2.drug ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "chf nos", "gender": "f"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that {gender} patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-until", "", "within-month", "", ""], "o_tag": ["20s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that {gender} patients aged [age_group:20s] were prescribed [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-until]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1656ecf626da99fce95e57b9", "answer": ["insulin", "potassium chloride", "0.9% sodium chloride", "ns", "albuterol 0.083% neb soln", "furosemide", "acetaminophen", "magnesium sulfate", "5% dextrose"]} {"db_id": "mimic_iii", "question": "what are the three most commonly prescribed drugs in the same hospital visit to the male patients aged 40s after they have been diagnosed with do not resusctate status since 2101?", "template": "what are the top three frequently prescribed drugs that male patients aged 40s were prescribed within the same hospital visit after having been diagnosed with do not resusctate status since 2101?", "query": "select t3.drug from ( select t2.drug, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'do not resusctate status' ) and strftime('%Y',diagnoses_icd.charttime) >= '2101' ) as t1 join ( select admissions.subject_id, prescriptions.drug, prescriptions.startdate, admissions.hadm_id from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where admissions.subject_id in ( select patients.subject_id from patients where patients.gender = 'm' ) and admissions.age between 40 and 49 and strftime('%Y',prescriptions.startdate) >= '2101' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "do not resusctate status", "gender": "m"}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs that {gender} patients aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["40s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that {gender} patients aged [age_group:40s] were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a32102448e42a9bdce00484e", "answer": ["insulin", "sw", "potassium chloride"]} {"db_id": "mimic_iii", "question": "what was the three most frequently performed lab tests in 2105?", "template": "what are the top three frequent lab tests in 2105?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where strftime('%Y',labevents.charttime) = '2105' group by labevents.itemid ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent lab tests [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "623894bc284dcf73db4ce2f4", "answer": ["potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "what are the four most frequent lab tests?", "template": "what are the top four frequent lab tests?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents group by labevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "ea81d82cfc65426a8d6bdc08", "answer": ["chloride", "potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "list the top five most frequent lab tests?", "template": "what are the top five frequent lab tests?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents group by labevents.itemid ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent lab tests [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3a0eb417c591ad880a3002bc", "answer": ["chloride", "creatinine", "potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "get me the top four most frequent lab tests until 2104?", "template": "what were the top four frequent lab tests until 2104?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where strftime('%Y',labevents.charttime) <= '2104' group by labevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b236c0ce31f4d3e4f751881f", "answer": ["chloride", "potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "what are the four most frequently ordered laboratory tests for patients of age 20s?", "template": "what are the top four frequent lab tests of patients aged 20s?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) group by labevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests of patients aged [age_group] [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests of patients aged [age_group:20s] [time_filter_global1:null]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8d714c3ccb1a55e376ba9dc4", "answer": ["creatinine", "potassium", "sodium", "urea nitrogen", "hematocrit"]} {"db_id": "mimic_iii", "question": "what are the five most commonly taken lab tests for patients of age 40s in 2105?", "template": "what are the top five frequent lab tests of patients aged 40s in 2105?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 40 and 49 ) and strftime('%Y',labevents.charttime) = '2105' group by labevents.itemid ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["40s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent lab tests of patients aged [age_group:40s] [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7b06787fdfd733e7c072ac0e", "answer": ["anion gap", "creatinine", "potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "what are the four most commonly given lab tests for patients of age 20s until 2103?", "template": "what were the top four frequent lab tests of patients aged 20s until 2103?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) and strftime('%Y',labevents.charttime) <= '2103' group by labevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests of patients aged [age_group] [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests of patients aged [age_group:20s] [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0291bf92bbb616c9f77cef9e", "answer": ["glucose", "potassium", "sodium", "hematocrit"]} {"db_id": "mimic_iii", "question": "what are the top four commonly taken lab tests for patients 20s?", "template": "what are the top four frequent lab tests of patients aged 20s?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t1.itemid from ( select labevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.age between 20 and 29 ) group by labevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent lab tests of patients aged [age_group] [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["20s", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests of patients aged [age_group:20s] [time_filter_global1:null]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3008e6cde0f169c74ef70985", "answer": ["creatinine", "potassium", "sodium", "urea nitrogen", "hematocrit"]} {"db_id": "mimic_iii", "question": "in 2105 what were the top three most frequent lab tests given to patients during the same month after they were diagnosed with acq spondylolisthesis?", "template": "what are the top three frequent lab tests that patients had within the same month after having been diagnosed with acq spondylolisthesis in 2105?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t3.itemid from ( select t2.itemid, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'acq spondylolisthesis' ) and strftime('%Y',diagnoses_icd.charttime) = '2105' ) as t1 join ( select admissions.subject_id, labevents.itemid, labevents.charttime from labevents join admissions on labevents.hadm_id = admissions.hadm_id where strftime('%Y',labevents.charttime) = '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.itemid ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "acq spondylolisthesis"}, "q_tag": "what are_verb the top [n_rank] frequent lab tests that patients had [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-in", "", "within-month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent lab tests that patients had [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "ead95bc839e3932d2ad66de0", "answer": ["base excess", "free calcium", "po2", "albumin", "calcium, total", "chloride", "creatine kinase (ck)", "creatinine", "glucose", "magnesium", "osmolality, measured", "phosphate", "potassium", "myelocytes", "red blood cells", "white blood cells"]} {"db_id": "mimic_iii", "question": "what are the four most commonly given laboratory tests for patients who had previously received insert intercostal cath during the same month, since 2 years ago?", "template": "what are the top four frequent lab tests that patients had within the same month after having received a insert intercostal cath procedure since 2 year ago?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t3.itemid from ( select t2.itemid, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'insert intercostal cath' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-2 year') ) as t1 join ( select admissions.subject_id, labevents.itemid, labevents.charttime from labevents join admissions on labevents.hadm_id = admissions.hadm_id where datetime(labevents.charttime) >= datetime(current_time,'-2 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t1.charttime,'start of month') = datetime(t2.charttime,'start of month') group by t2.itemid ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "insert intercostal cath"}, "q_tag": "what are_verb the top [n_rank] frequent lab tests that patients had [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests that patients had [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "93e82c6ea4135e69d1be340b", "answer": ["base excess", "anion gap", "bicarbonate", "sodium", "urea nitrogen", "mcv", "red blood cells", "white blood cells"]} {"db_id": "mimic_iii", "question": "what were the five most frequent lab tests that patients had within the same hospital visit after receiving a parent infus nutrit sub?", "template": "what are the top five frequent lab tests that patients had within the same hospital visit after having received a parent infus nutrit sub procedure?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t3.itemid from ( select t2.itemid, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'parent infus nutrit sub' ) ) as t1 join ( select admissions.subject_id, labevents.itemid, labevents.charttime, admissions.hadm_id from labevents join admissions on labevents.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.itemid ) as t3 where t3.c1 <= 5 )", "value": {"procedure_name": "parent infus nutrit sub"}, "q_tag": "what are_verb the top [n_rank] frequent lab tests that patients had [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent lab tests that patients had [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d28b0fb2e9c57b3a203c242c", "answer": ["free calcium", "hematocrit, calculated", "lactate", "ph", "alkaline phosphatase", "anion gap", "bicarbonate", "glucose", "phenytoin", "phosphate", "potassium", "sodium", "hematocrit", "platelet count", "rdw", "red blood cells", "lymphocytes", "specific gravity"]} {"db_id": "mimic_iii", "question": "for patients who received endosc control gast hem since 3 years ago, what are the top four most frequent lab tests that followed within 2 months?", "template": "what are the top four frequent lab tests that patients had within 2 month after having received a endosc control gast hem procedure since 3 year ago?", "query": "select d_labitems.label from d_labitems where d_labitems.itemid in ( select t3.itemid from ( select t2.itemid, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'endosc control gast hem' ) and datetime(procedures_icd.charttime) >= datetime(current_time,'-3 year') ) as t1 join ( select admissions.subject_id, labevents.itemid, labevents.charttime from labevents join admissions on labevents.hadm_id = admissions.hadm_id where datetime(labevents.charttime) >= datetime(current_time,'-3 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.itemid ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "endosc control gast hem"}, "q_tag": "what are_verb the top [n_rank] frequent lab tests that patients had [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests that patients had [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d733bf0081e4f4424205bf51", "answer": ["anion gap", "creatinine", "hematocrit", "mcv", "red blood cells", "white blood cells"]} {"db_id": "mimic_iii", "question": "what were the four most frequently ordered specimen tests in 2100?", "template": "what were the top four frequent specimens tested in 2100?", "query": "select t1.spec_type_desc from ( select microbiologyevents.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from microbiologyevents where strftime('%Y',microbiologyevents.charttime) = '2100' group by microbiologyevents.spec_type_desc ) as t1 where t1.c1 <= 4", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent specimens tested [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent specimens tested [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a6b8f8128acba2055d08f126", "answer": ["blood culture", "urine", "sputum", "mrsa screen"]} {"db_id": "mimic_iii", "question": "since 2104 what was the four most common specimen test?", "template": "what are the top four frequent specimens tested since 2104?", "query": "select t1.spec_type_desc from ( select microbiologyevents.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from microbiologyevents where strftime('%Y',microbiologyevents.charttime) >= '2104' group by microbiologyevents.spec_type_desc ) as t1 where t1.c1 <= 4", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent specimens tested [time_filter_global1]?", "t_tag": ["abs-year-since", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent specimens tested [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a82a2e85381e7f8e19cf62bf", "answer": ["blood culture", "urine", "sputum", "swab"]} {"db_id": "mimic_iii", "question": "what are the five common cultures tested?", "template": "what are the top five frequent specimens tested?", "query": "select t1.spec_type_desc from ( select microbiologyevents.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from microbiologyevents group by microbiologyevents.spec_type_desc ) as t1 where t1.c1 <= 5", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent specimens tested [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens tested [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "45483c5275633c70c42fe97f", "answer": ["blood culture", "urine", "sputum", "swab", "mrsa screen"]} {"db_id": "mimic_iii", "question": "what are the top five most common specimen tests that patients had in the same hospital encounter after being diagnosed with lumbosacral neuritis nos since 1 year ago?", "template": "what are the top five frequent specimens that patients were tested within the same hospital visit after having been diagnosed with lumbosacral neuritis nos since 1 year ago?", "query": "select t3.spec_type_desc from ( select t2.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'lumbosacral neuritis nos' ) and datetime(diagnoses_icd.charttime) >= datetime(current_time,'-1 year') ) as t1 join ( select admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id from microbiologyevents join admissions on microbiologyevents.hadm_id = admissions.hadm_id where datetime(microbiologyevents.charttime) >= datetime(current_time,'-1 year') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.spec_type_desc ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "lumbosacral neuritis nos"}, "q_tag": "what are_verb the top [n_rank] frequent specimens that patients were tested [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens that patients were tested [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af848a7f4dbe297cb33a021c", "answer": ["blood culture", "urine", "sputum", "swab", "tissue", "swab, r/o gc", "stool", "mrsa screen", "bronchoalveolar lavage"]} {"db_id": "mimic_iii", "question": "give me the top five most frequently tested cultures that patients took during the same hospital visit after being diagnosed with fx mult ribs nos-closed since 2105.", "template": "what are the top five frequent specimens that patients were tested within the same hospital visit after having been diagnosed with fx mult ribs nos-closed since 2105?", "query": "select t3.spec_type_desc from ( select t2.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime, admissions.hadm_id from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'fx mult ribs nos-closed' ) and strftime('%Y',diagnoses_icd.charttime) >= '2105' ) as t1 join ( select admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id from microbiologyevents join admissions on microbiologyevents.hadm_id = admissions.hadm_id where strftime('%Y',microbiologyevents.charttime) >= '2105' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.spec_type_desc ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "fx mult ribs nos-closed"}, "q_tag": "what are_verb the top [n_rank] frequent specimens that patients were tested [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens that patients were tested [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "be6a88096e737997f72e2690", "answer": ["blood culture", "urine", "stool", "serology/blood", "mrsa screen", "abscess"]} {"db_id": "mimic_iii", "question": "retrieve the top three most frequently tested cultures that patients had within 2 months after being diagnosed with adv eff blood agent nec since 2102.", "template": "what are the top three frequent specimens that patients were tested within 2 month after having been diagnosed with adv eff blood agent nec since 2102?", "query": "select t3.spec_type_desc from ( select t2.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'adv eff blood agent nec' ) and strftime('%Y',diagnoses_icd.charttime) >= '2102' ) as t1 join ( select admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime from microbiologyevents join admissions on microbiologyevents.hadm_id = admissions.hadm_id where strftime('%Y',microbiologyevents.charttime) >= '2102' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and datetime(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.spec_type_desc ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "adv eff blood agent nec"}, "q_tag": "what are_verb the top [n_rank] frequent specimens that patients were tested [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent specimens that patients were tested [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b8c15da5d4390a07e7f07068", "answer": ["blood culture", "sputum", "swab", "mrsa screen", "fecal swab", "csf;spinal fluid", "bronchoalveolar lavage"]} {"db_id": "mimic_iii", "question": "what are the three most frequent microbiological tests patients had in the same hospital visit after undergoing a inject into thorax cavit?", "template": "what are the top three frequent specimens that patients were tested within the same hospital visit after having received a inject into thorax cavit procedure?", "query": "select t3.spec_type_desc from ( select t2.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'inject into thorax cavit' ) ) as t1 join ( select admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id from microbiologyevents join admissions on microbiologyevents.hadm_id = admissions.hadm_id ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.spec_type_desc ) as t3 where t3.c1 <= 3", "value": {"procedure_name": "inject into thorax cavit"}, "q_tag": "what are_verb the top [n_rank] frequent specimens that patients were tested [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["", "", "within-hosp", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent specimens that patients were tested [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:null]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8e7df7977d8fd7bcd6d0df4c", "answer": ["mrsa screen"]} {"db_id": "mimic_iii", "question": "what is the top four most frequently performed microbiology tests for patients who receive inject into thorax cavit since 2103 that follow during the same hospital visit?", "template": "what are the top four frequent specimens that patients were tested within the same hospital visit after having received a inject into thorax cavit procedure since 2103?", "query": "select t3.spec_type_desc from ( select t2.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from ( select admissions.subject_id, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'inject into thorax cavit' ) and strftime('%Y',procedures_icd.charttime) >= '2103' ) as t1 join ( select admissions.subject_id, microbiologyevents.spec_type_desc, microbiologyevents.charttime, admissions.hadm_id from microbiologyevents join admissions on microbiologyevents.hadm_id = admissions.hadm_id where strftime('%Y',microbiologyevents.charttime) >= '2103' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.charttime and t1.hadm_id = t2.hadm_id group by t2.spec_type_desc ) as t3 where t3.c1 <= 4", "value": {"procedure_name": "inject into thorax cavit"}, "q_tag": "what are_verb the top [n_rank] frequent specimens that patients were tested [time_filter_within] after having received a {procedure_name} procedure [time_filter_global1]?", "t_tag": ["abs-year-since", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent specimens that patients were tested [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:abs-year-since]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a5ade2489078e1c03bdb4088", "answer": ["mrsa screen"]} {"db_id": "mimic_iii", "question": "what are the three intakes that are the most frequent until 2101?", "template": "what were the top three frequent intake events until 2101?", "query": "select d_items.label from d_items where d_items.itemid in ( select t1.itemid from ( select inputevents_cv.itemid, dense_rank() over ( order by count(*) desc ) as c1 from inputevents_cv where strftime('%Y',inputevents_cv.charttime) <= '2101' group by inputevents_cv.itemid ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent intake events [time_filter_global1]?", "t_tag": ["abs-year-until", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent intake events [time_filter_global1:abs-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "60aac63e7ed30eff951d11b9", "answer": ["d5w", ".9% normal saline", "d10w"]} {"db_id": "mimic_iii", "question": "what are the four most common intakes since 6 years ago?", "template": "what are the top four frequent intake events since 6 year ago?", "query": "select d_items.label from d_items where d_items.itemid in ( select t1.itemid from ( select inputevents_cv.itemid, dense_rank() over ( order by count(*) desc ) as c1 from inputevents_cv where datetime(inputevents_cv.charttime) >= datetime(current_time,'-6 year') group by inputevents_cv.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent intake events [time_filter_global1]?", "t_tag": ["rel-year-since", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent intake events [time_filter_global1:rel-year-since]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7c5a1ef6ac2a840b8508c113", "answer": ["d5w", ".9% normal saline", "lactated ringers", "d10w"]} {"db_id": "mimic_iii", "question": "give me the top three most frequent events?", "template": "what are the top three frequent output events?", "query": "select d_items.label from d_items where d_items.itemid in ( select t1.itemid from ( select outputevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from outputevents group by outputevents.itemid ) as t1 where t1.c1 <= 3 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent output events [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent output events [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "95cf4630b3cf05e7bb11b1e4", "answer": ["urine out foley", "chest tubes cticu ct 1", "foley"]} {"db_id": "mimic_iii", "question": "get me the top four most frequent outputs in 2105?", "template": "what are the top four frequent output events in 2105?", "query": "select d_items.label from d_items where d_items.itemid in ( select t1.itemid from ( select outputevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from outputevents where strftime('%Y',outputevents.charttime) = '2105' group by outputevents.itemid ) as t1 where t1.c1 <= 4 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent output events [time_filter_global1]?", "t_tag": ["abs-year-in", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent output events [time_filter_global1:abs-year-in]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "23b33525b2c307de5e387b1d", "answer": ["urine out foley", "chest tubes cticu ct 1", "urine .", "foley"]} {"db_id": "mimic_iii", "question": "list the top five most frequent outputs?", "template": "what are the top five frequent output events?", "query": "select d_items.label from d_items where d_items.itemid in ( select t1.itemid from ( select outputevents.itemid, dense_rank() over ( order by count(*) desc ) as c1 from outputevents group by outputevents.itemid ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent output events [time_filter_global1]?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent output events [time_filter_global1:null]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "209961b1a22c17c5540f1644", "answer": ["urine out foley", "chest tubes cticu ct 1", "urine .", "foley", "chest tube #1"]}