[{"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "how did patient 8814 enter the hospital until 1 year ago first?", "template": "what was the first hospital admission type of patient 8814 until 1 year ago?", "query": "select admissions.admission_type from admissions where admissions.subject_id = 8814 and datetime(admissions.admittime) <= datetime(current_time,'-1 year') order by admissions.admittime asc limit 1", "value": {"patient_id": 8814}, "q_tag": "what was the [time_filter_exact1] hospital admission type of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-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:rel-year-until]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2251f7482c58e377c28ba95d"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last ward id of patient 18678 last year?", "template": "what was the last ward of patient 18678 last year?", "query": "select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18678 ) and transfers.wardid is not null and datetime(transfers.intime,'start of year') = datetime(current_time,'start of year','-1 year') order by transfers.intime desc limit 1", "value": {"patient_id": 18678}, "q_tag": "what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] ward of patient {patient_id} [time_filter_global1:rel-year-last]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "35a56b30b35d92a16ae74064"}, {"db_id": "mimic_iii", "question": "what is the first ward id of patient 9474 in this year?", "template": "what was the first ward of patient 9474 this year?", "query": "select transfers.wardid from transfers where transfers.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 9474 ) and transfers.wardid is not null and datetime(transfers.intime,'start of year') = datetime(current_time,'start of year','-0 year') order by transfers.intime asc limit 1", "value": {"patient_id": 9474}, "q_tag": "what was the [time_filter_exact1] ward of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-first] ward of patient {patient_id} [time_filter_global1:rel-year-this]?", "department": "['other', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "6e100dfc2b48d0d405b7c1cd"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is patient 7959's height for the last time in 03/this year?", "template": "what was the last measured height of patient 7959 in 03/this year?", "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 = 7959 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'admit ht' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',chartevents.charttime) = '03' order by chartevents.charttime desc limit 1", "value": {"patient_id": 7959}, "q_tag": "what was the [time_filter_exact1] measured height of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured height of patient {patient_id} [time_filter_global1:mix-month-this_year]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7bdbba0cd97d961c8a714178"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "in this month, how much did patient 8116 weigh for the last time?", "template": "what was the last measured weight of patient 8116 this month?", "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 = 8116 ) ) 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,'start of month') = datetime(current_time,'start of month','-0 month') order by chartevents.charttime desc limit 1", "value": {"patient_id": 8116}, "q_tag": "what was the [time_filter_exact1] measured weight of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured weight of patient {patient_id} [time_filter_global1:rel-month-this]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "29794f6f007b22dafbe91a79"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what diagnosis did patient 54825 receive last in a year before?", "template": "what was the name of the diagnosis that patient 54825 last received last year?", "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 = 54825 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') order by diagnoses_icd.charttime desc limit 1 )", "value": {"patient_id": 54825}, "q_tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "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:rel-year-last]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "aad1f0f2e4629170a33d27f8"}, {"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"}, {"db_id": "mimic_iii", "question": "tell me the name of the diagnosis that patient 98015 first received in this year?", "template": "what was the name of the diagnosis that patient 98015 first received this year?", "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 = 98015 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') order by diagnoses_icd.charttime asc limit 1 )", "value": {"patient_id": 98015}, "q_tag": "what was the name of the diagnosis that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "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:rel-year-this]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2ae62bc79631787e23554e3c"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the first procedure patient 95088 had the last year.", "template": "what was the name of the procedure that patient 95088 first received last year?", "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 = 95088 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') order by procedures_icd.charttime asc limit 1 )", "value": {"patient_id": 95088}, "q_tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-year-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-year-last]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "86e24a27b84277c3c275ed39"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what procedure did patient 32154 first get during the previous year?", "template": "what was the name of the procedure that patient 32154 first received last year?", "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 = 32154 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') order by procedures_icd.charttime asc limit 1 )", "value": {"patient_id": 32154}, "q_tag": "what was the name of the procedure that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-year-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-year-last]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7841da6da154a904b2f95183"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the name of the drug that patient 8324 was first prescribed via an po/ng route in 08/last year?", "template": "what was the name of the drug that patient 8324 was first prescribed via po/ng route in 08/last year?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 8324 ) and prescriptions.route = 'po/ng' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '08' order by prescriptions.startdate asc limit 1", "value": {"patient_id": 8324, "drug_route": "po/ng"}, "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": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2a08cee611c20d93584ab030"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last medication patient 73693 was prescribed via iv drip last month?", "template": "what was the name of the drug that patient 73693 was last prescribed via iv drip route last month?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73693 ) and prescriptions.route = 'iv drip' and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') order by prescriptions.startdate desc limit 1", "value": {"patient_id": 73693, "drug_route": "iv drip"}, "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-month-last", "", "", "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-month-last]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cd6a7880fdbd01f6c6e4e9a0"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last prescription drug that was prescribed to patient 99747 during the previous month?", "template": "what was the name of the drug that patient 99747 was last prescribed last month?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 99747 ) and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') order by prescriptions.startdate desc limit 1", "value": {"patient_id": 99747}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "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-month-last]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9a8b79cfa6d152f12ede8b0b"}, {"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"}, {"db_id": "mimic_iii", "question": "what drug was patient 12775 last prescribed for in 12/this year?", "template": "what was the name of the drug that patient 12775 was last prescribed in 12/this year?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 12775 ) and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',prescriptions.startdate) = '12' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 12775}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "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:mix-month-this_year]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1b73c4e3e95867d2c435211e"}, {"db_id": "mimic_iii", "question": "get me the drug that patient 8005 has been last prescribed in 03/last year.", "template": "what was the name of the drug that patient 8005 was last prescribed in 03/last year?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 8005 ) and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '03' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 8005}, "q_tag": "what was the name of the drug that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['other', 'physician', 'infection_control', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "353a8d6e60c08b89b69f7278"}, {"db_id": "mimic_iii", "question": "what is the drug that patient 14211 was prescribed for during the same hospital encounter after being diagnosed with thrush during this month?", "template": "what was the name of the drug that patient 14211 was prescribed within the same hospital visit after having been diagnosed with thrush this month?", "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 = 14211 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'thrush' ) and datetime(diagnoses_icd.charttime,'start of month') = datetime(current_time,'start of month','-0 month') ) 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 = 14211 and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-0 month') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"patient_id": 14211, "diagnosis_name": "thrush"}, "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": ["rel-month-this", "", "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:rel-month-this]?", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "baea01110f6f3fddfe5955fb"}, {"db_id": "mimic_iii", "question": "what was the name of the drug, which patient 57023 was prescribed in the same hospital encounter after being diagnosed with single lb in-hosp w/o cs last month?", "template": "what was the name of the drug that patient 57023 was prescribed within the same hospital visit after having been diagnosed with single lb in-hosp w/o cs last month?", "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 = 57023 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'single lb in-hosp w/o cs' ) and datetime(diagnoses_icd.charttime,'start of month') = datetime(current_time,'start of month','-1 month') ) 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 = 57023 and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"patient_id": 57023, "diagnosis_name": "single lb in-hosp w/o cs"}, "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": ["rel-month-last", "", "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:rel-month-last]?", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c73352af14965c426632d296"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the drug that patient 19352 was prescribed for within 2 days after the diagnosis of hx traumatic fracture until 22 months ago?", "template": "what was the name of the drug that patient 19352 was prescribed within 2 day after having been diagnosed with hx traumatic fracture until 22 month ago?", "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 = 19352 and diagnoses_icd.icd9_code = ( select d_icd_diagnoses.icd9_code from d_icd_diagnoses where d_icd_diagnoses.short_title = 'hx traumatic fracture' ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-22 month') ) 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 = 19352 and datetime(prescriptions.startdate) <= datetime(current_time,'-22 month') ) 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": 19352, "diagnosis_name": "hx traumatic fracture"}, "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": ["rel-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 been diagnosed with {diagnosis_name} [time_filter_global1:rel-month-until]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "32636930779908710fbab19a"}, {"db_id": "mimic_iii", "question": "what was the name of the medication that patient 19894 was prescribed within 2 days after having received a ins non-d-e non-cor stnt procedure in 06/last year?", "template": "what was the name of the drug that patient 19894 was prescribed within 2 day after having received a ins non-d-e non-cor stnt procedure in 06/last year?", "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 = 19894 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'ins non-d-e non-cor stnt' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',procedures_icd.charttime) = '06' ) 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 = 19894 and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '06' ) 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": {"procedure_name": "ins non-d-e non-cor stnt", "patient_id": 19894}, "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": ["mix-month-last_year", "", "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:mix-month-last_year]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9c1d8c2123cf9ffef34e246d"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the drug that patient 25696 prescribed with during the same hospital encounter after undergoing insert endotracheal tube in 03/last year?", "template": "what was the name of the drug that patient 25696 was prescribed within the same hospital visit after having received a insert endotracheal tube procedure in 03/last year?", "query": "select t2.drug 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 admissions.subject_id = 25696 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'insert endotracheal tube' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',procedures_icd.charttime) = '03' ) 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 = 25696 and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '03' ) as t2 on t1.subject_id = t2.subject_id where t1.charttime < t2.startdate and t1.hadm_id = t2.hadm_id", "value": {"patient_id": 25696, "procedure_name": "insert endotracheal tube"}, "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": ["mix-month-last_year", "", "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 received a {procedure_name} procedure [time_filter_global1:mix-month-last_year]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e15ffdbb668be3dced23f8bc"}, {"db_id": "mimic_iii", "question": "what drug was patient 66015 prescribed with within 2 days after the precedure of reopen recent lap site a month before?", "template": "what was the name of the drug that patient 66015 was prescribed within 2 day after having received a reopen recent lap site procedure last month?", "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 = 66015 and procedures_icd.icd9_code = ( select d_icd_procedures.icd9_code from d_icd_procedures where d_icd_procedures.short_title = 'reopen recent lap site' ) and datetime(procedures_icd.charttime,'start of month') = datetime(current_time,'start of month','-1 month') ) 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 = 66015 and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') ) 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": 66015, "procedure_name": "reopen recent lap site"}, "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-month-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-month-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "39b737c561343930e69f313c"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last prescribed dose of erythromycin 0.5% ophth oint that patient 73693 got the last month?", "template": "what was the dose of erythromycin 0.5% ophth oint that patient 73693 was last prescribed last month?", "query": "select prescriptions.dose_val_rx from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73693 ) and prescriptions.drug = 'erythromycin 0.5% ophth oint' and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') order by prescriptions.startdate desc limit 1", "value": {"drug_name": "erythromycin 0.5% ophth oint", "patient_id": 73693}, "q_tag": "what was the dose of {drug_name} that patient {patient_id} was [time_filter_exact1] prescribed [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "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:rel-month-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "efada1d8a629f7d18321a48e"}, {"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"}, {"db_id": "mimic_iii", "question": "what amount of topiramate has been prescribed to patient 62413 in total in 02/this year?", "template": "what was the total amount of dose of topiramate that patient 62413 were prescribed in 02/this year?", "query": "select sum(prescriptions.dose_val_rx) from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 62413 ) and prescriptions.drug = 'topiramate' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',prescriptions.startdate) = '02'", "value": {"drug_name": "topiramate", "patient_id": 62413}, "q_tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total amount of dose of {drug_name} that patient {patient_id} were prescribed [time_filter_global1:mix-month-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "caba08d9d14a377562da938f"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the drug that patient 23061 has been prescribed two times until 44 months ago?", "template": "what was the name of the drug that patient 23061 were prescribed two times until 44 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 = 23061 ) and datetime(prescriptions.startdate) <= datetime(current_time,'-44 month') group by prescriptions.drug ) as t1 where t1.c1 = 2", "value": {"patient_id": 23061}, "q_tag": "what was the name of the drug that patient {patient_id} were prescribed [n_times] [time_filter_global1]?", "t_tag": ["rel-month-until", "", "", "", ""], "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-until]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "019f757abab52194df17aeab"}, {"db_id": "mimic_iii", "question": "what were the new drugs of patient 19412 today compared to those yesterday?", "template": "what is the new prescription of patient 19412 today compared to the prescription yesterday?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19412 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-0 day') except select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 19412 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 19412}, "q_tag": "what is the new prescription of patient {patient_id} [time_filter_global2] compared to the prescription [time_filter_global1]?", "t_tag": ["rel-day-last", "rel-day-this", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the new prescription of patient {patient_id} [time_filter_global2:rel-day-this] compared to the prescription [time_filter_global1:rel-day-last]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7ba3b8f780444925e5021ad7"}, {"db_id": "mimic_iii", "question": "what are the drugs that is added to patient 808 today compared to the ones yesterday?", "template": "what is the new prescription of patient 808 today compared to the prescription yesterday?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 808 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-0 day') except select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 808 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 808}, "q_tag": "what is the new prescription of patient {patient_id} [time_filter_global2] compared to the prescription [time_filter_global1]?", "t_tag": ["rel-day-last", "rel-day-this", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the new prescription of patient {patient_id} [time_filter_global2:rel-day-this] compared to the prescription [time_filter_global1:rel-day-last]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "57a9dda6a3fd4cad88602c80"}, {"db_id": "mimic_iii", "question": "compared to yesterday, what is new in patient 83182's prescription today?", "template": "what is the new prescription of patient 83182 today compared to the prescription yesterday?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83182 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-0 day') except select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 83182 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 83182}, "q_tag": "what is the new prescription of patient {patient_id} [time_filter_global2] compared to the prescription [time_filter_global1]?", "t_tag": ["rel-day-last", "rel-day-this", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the new prescription of patient {patient_id} [time_filter_global2:rel-day-this] compared to the prescription [time_filter_global1:rel-day-last]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4ab448c875d1b3258ec5fd9b"}, {"db_id": "mimic_iii", "question": "what is the drug that is added to patient 4401 today compared to yesterday?", "template": "what is the new prescription of patient 4401 today compared to the prescription yesterday?", "query": "select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4401 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-0 day') except select prescriptions.drug from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 4401 ) and datetime(prescriptions.startdate,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 4401}, "q_tag": "what is the new prescription of patient {patient_id} [time_filter_global2] compared to the prescription [time_filter_global1]?", "t_tag": ["rel-day-last", "rel-day-this", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the new prescription of patient {patient_id} [time_filter_global2:rel-day-this] compared to the prescription [time_filter_global1:rel-day-last]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "298064ac8da10f4b6bd393ff"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last measured creatinine lab test for patient 21003 in 09/this year?", "template": "what was the last measured value of a creatinine lab test of patient 21003 in 09/this year?", "query": "select labevents.valuenum from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 21003 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatinine' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',labevents.charttime) = '09' order by labevents.charttime desc limit 1", "value": {"lab_name": "creatinine", "patient_id": 21003}, "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": ["mix-month-this_year", "", "", "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:mix-month-this_year]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "44d5178356bff63fcc88d86f"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what lab test was given to patient 3929 for the last time this month?", "template": "what was the name of the lab test that patient 3929 last received this month?", "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 = 3929 ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') order by labevents.charttime desc limit 1 )", "value": {"patient_id": 3929}, "q_tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1] received [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the name of the lab test that patient {patient_id} [time_filter_exact1:exact-last] received [time_filter_global1:rel-month-this]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a28094278c3b3bb67bbcce3b"}, {"db_id": "mimic_iii", "question": "question was what was the maximum absolute cd4 count value of patient 10855 in this month?", "template": "what was the maximum absolute cd4 count value of patient 10855 this month?", "query": "select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 10855 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'absolute cd4 count' ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month')", "value": {"lab_name": "absolute cd4 count", "patient_id": 10855}, "q_tag": "what was the [agg_function] {lab_name} value of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:maximum] {lab_name} value of patient {patient_id} [time_filter_global1:rel-month-this]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9396c15b448a8ef52e1752a1"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the organism found in patient 3125's last swab test in 12/this year?", "template": "what was the organism name found in the last swab microbiology test of patient 3125 in 12/this year?", "query": "select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 3125 ) and microbiologyevents.spec_type_desc = 'swab' 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": {"patient_id": 3125, "culture_name": "swab"}, "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": ["mix-month-this_year", "", "", "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:mix-month-this_year]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "648ae615f5b1fbff97917916"}, {"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"}, {"db_id": "mimic_iii", "question": "what organism was found in patient 89875's first blood culture microbiology test this month?", "template": "what was the organism name found in the first blood culture microbiology test of patient 89875 this month?", "query": "select microbiologyevents.org_name from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 89875 ) and microbiologyevents.spec_type_desc = 'blood culture' and microbiologyevents.org_name is not null and datetime(microbiologyevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') order by microbiologyevents.charttime asc limit 1", "value": {"culture_name": "blood culture", "patient_id": 89875}, "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": ["rel-month-this", "", "", "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:rel-month-this]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "61bd463519ce30d07bee7d6c"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what specimen was patient 27465 tested for the last time in 06/this year?", "template": "what was the name of the specimen that patient 27465 was last tested in 06/this year?", "query": "select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 27465 ) and datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',microbiologyevents.charttime) = '06' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 27465}, "q_tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "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:mix-month-this_year]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d50598b1e70f1426206aaed1"}, {"db_id": "mimic_iii", "question": "what was patient 96344's last tested culture in 12/last year?", "template": "what was the name of the specimen that patient 96344 was last tested in 12/last year?", "query": "select microbiologyevents.spec_type_desc from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96344 ) and datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',microbiologyevents.charttime) = '12' order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 96344}, "q_tag": "what was the name of the specimen that patient {patient_id} was [time_filter_exact1] tested [time_filter_global1]?", "t_tag": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4f029ae17973ca09cd22d2d7"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "give me the total amount of tpn d22.5 that patient 22782 has taken on 04/17/this year?", "template": "what was the total volume of tpn d22.5 intake that patient 22782 received on 04/17/this year?", "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 = 22782 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'tpn d22.5' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',inputevents_cv.charttime) = '04-17'", "value": {"intake_name": "tpn d22.5", "patient_id": 22782}, "q_tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "af2b9c63c4841b2d9e4cd664"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "show me patient 10855's total solumedrol mg/kg/min intake amount on this month/21.", "template": "what was the total volume of solumedrol mg/kg/min intake that patient 10855 received on this month/21?", "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 = 10855 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'solumedrol mg/kg/min' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of month') = datetime(current_time,'start of month','-0 month') and strftime('%d',inputevents_cv.charttime) = '21'", "value": {"intake_name": "solumedrol mg/kg/min", "patient_id": 10855}, "q_tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["mix-day-this_month", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:mix-day-this_month]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "035a6dd3d9f86ef27b172f33"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the total amount of input that patient 15794 got during the previous day?", "template": "what was the total volume of intake that patient 15794 received yesterday?", "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 = 15794 ) ) and datetime(inputevents_cv.charttime,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 15794}, "q_tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["rel-day-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1:rel-day-last]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "57984deb08efaa01338f9bd1"}, {"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"}, {"db_id": "mimic_iii", "question": "get me patient 739's total input on 12/23/this year.", "template": "what was the total volume of intake that patient 739 received on 12/23/this year?", "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 = 739 ) ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',inputevents_cv.charttime) = '12-23'", "value": {"patient_id": 739}, "q_tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of intake that patient {patient_id} received [time_filter_global1:mix-day-this_year]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "88823ae80b9180261b0dcb72"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the name of the output that patient 8016 got first on 11/27/this year?", "template": "what was the name of the output that patient 8016 first had on 11/27/this year?", "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 = 8016 ) ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',outputevents.charttime) = '11-27' order by outputevents.charttime asc limit 1 )", "value": {"patient_id": 8016}, "q_tag": "what was the name of the output that patient {patient_id} [time_filter_exact1] had [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "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:mix-day-this_year]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b2baeb6218cee114970ac3a8"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "tell me the amount of chest tubes cticu ct 1 patient 31854 has had on this month/30?", "template": "what was the total volume of chest tubes cticu ct 1 output that patient 31854 had on this month/30?", "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 = 31854 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'chest tubes cticu ct 1' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') and strftime('%d',outputevents.charttime) = '30'", "value": {"patient_id": 31854, "output_name": "chest tubes cticu ct 1"}, "q_tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["mix-day-this_month", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:mix-day-this_month]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "b5ca8324254be11eb0f422ca"}, {"db_id": "mimic_iii", "question": "give me the total amount of chest tubes cticu ct 2 that patient 65582 has produced on 12/08/this year.", "template": "what was the total volume of chest tubes cticu ct 2 output that patient 65582 had on 12/08/this year?", "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 = 65582 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'chest tubes cticu ct 2' 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) = '12-08'", "value": {"patient_id": 65582, "output_name": "chest tubes cticu ct 2"}, "q_tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3802e3f135ce205a1df27516"}, {"db_id": "mimic_iii", "question": "what is the total amount of cerebral ventricular #1 output that patient 94122 had on 06/05/this year?", "template": "what was the total volume of cerebral ventricular #1 output that patient 94122 had on 06/05/this year?", "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 = 94122 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'cerebral ventricular #1' 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) = '06-05'", "value": {"output_name": "cerebral ventricular #1", "patient_id": 94122}, "q_tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4e189b159d6abd05a22be9f3"}, {"db_id": "mimic_iii", "question": "what is the total urine . output amount that patient 73713 had on last month/04?", "template": "what was the total volume of urine . output that patient 73713 had on last month/04?", "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 = 73713 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine .' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') and strftime('%d',outputevents.charttime) = '04'", "value": {"output_name": "urine .", "patient_id": 73713}, "q_tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["mix-day-last_month", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of {output_name} output that patient {patient_id} had [time_filter_global1:mix-day-last_month]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e6b05f990c98fd95f1d22217"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "get me patient 27451's total output volume until 2031 days ago.", "template": "what was the total volume of output that patient 27451 had until 2031 day ago?", "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 = 27451 ) ) and datetime(outputevents.charttime) <= datetime(current_time,'-2031 day')", "value": {"patient_id": 27451}, "q_tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["rel-day-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1:rel-day-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8534df7ea1efb26f3c07f13c"}, {"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"}, {"db_id": "mimic_iii", "question": "give me patient 1114's total volume of output on 12/24/this year.", "template": "what was the total volume of output that patient 1114 had on 12/24/this year?", "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 = 1114 ) ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',outputevents.charttime) = '12-24'", "value": {"patient_id": 1114}, "q_tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the total volume of output that patient {patient_id} had [time_filter_global1:mix-day-this_year]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f827c4d73e60420f6178a6a3"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "calculate the difference between patient 12775's total volume of input and output today.", "template": "what is the difference between the total volume of intake and output of patient 12775 today?", "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 = 12775 ) ) and datetime(inputevents_cv.charttime,'start of day') = datetime(current_time,'start of day','-0 day') ) - ( 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 = 12775 ) ) and datetime(outputevents.charttime,'start of day') = datetime(current_time,'start of day','-0 day') )", "value": {"patient_id": 12775}, "q_tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-day-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:rel-day-this]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3d15d3b61cc32ff3abeb4244"}, {"db_id": "mimic_iii", "question": "show me the difference between patient 19096's total input and output on 07/09/this year.", "template": "what is the difference between the total volume of intake and output of patient 19096 on 07/09/this year?", "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 = 19096 ) ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',inputevents_cv.charttime) = '07-09' ) - ( 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 = 19096 ) ) and datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',outputevents.charttime) = '07-09' )", "value": {"patient_id": 19096}, "q_tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is the difference between the total volume of intake and output of patient {patient_id} [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "838951c8474d437663b10b5d"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the last arterial bp [diastolic] value for patient 15107 on 11/21/last year?", "template": "what was the last measured arterial bp [diastolic] of patient 15107 on 11/21/last year?", "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 = 15107 ) ) 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,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m-%d',chartevents.charttime) = '11-21' order by chartevents.charttime desc limit 1", "value": {"vital_name": "arterial bp [diastolic]", "patient_id": 15107}, "q_tag": "what was the [time_filter_exact1] measured {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-last_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured {vital_name} of patient {patient_id} [time_filter_global1:mix-day-last_year]?", "department": "['other', 'physician', 'health_records', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "f3b8b66065d21cd4ccfa6206"}, {"db_id": "mimic_iii", "question": "what was patient 2514's last measured arterial bp [diastolic] on 07/01/this year?", "template": "what was the last measured arterial bp [diastolic] of patient 2514 on 07/01/this year?", "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 = 2514 ) ) 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,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',chartevents.charttime) = '07-01' order by chartevents.charttime desc limit 1", "value": {"vital_name": "arterial bp [diastolic]", "patient_id": 2514}, "q_tag": "what was the [time_filter_exact1] measured {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured {vital_name} of patient {patient_id} [time_filter_global1:mix-day-this_year]?", "department": "['other', 'physician', 'health_records', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cadf9d34892d6bab6f608894"}, {"db_id": "mimic_iii", "question": "what was the last measured value of heart rate of patient 31854 today?", "template": "what was the last measured heart rate of patient 31854 today?", "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 = 31854 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime,'start of day') = datetime(current_time,'start of day','-0 day') order by chartevents.charttime desc limit 1", "value": {"vital_name": "heart rate", "patient_id": 31854}, "q_tag": "what was the [time_filter_exact1] measured {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-day-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what was the [time_filter_exact1:exact-last] measured {vital_name} of patient {patient_id} [time_filter_global1:rel-day-this]?", "department": "['other', 'physician', 'health_records', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "83be1b43f92522568a7321a3"}, {"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"}, {"db_id": "mimic_iii", "question": "what's the maximum heart rate of patient 19175 on last month/04?", "template": "what was the maximum heart rate of patient 19175 on last month/04?", "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 = 19175 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'heart rate' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') and strftime('%d',chartevents.charttime) = '04'", "value": {"vital_name": "heart rate", "patient_id": 19175}, "q_tag": "what was the [agg_function] {vital_name} of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-last_month", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what was the [agg_function:maximum] {vital_name} of patient {patient_id} [time_filter_global1:mix-day-last_month]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fe3fb4e2d48264665d39f645"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "how much is the total hospital cost of patient 8245 in the last year?", "template": "what was the total hospital cost of patient 8245 last year?", "query": "select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 8245 ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-1 year')", "value": {"patient_id": 8245}, "q_tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:rel-year-last]?", "department": "['insurance_review']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d1720ef83f4e73b9a6d08381"}, {"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"}, {"db_id": "mimic_iii", "question": "how much is patient 18677's total hospital bill during their stay until 2 years ago?", "template": "what was the total hospital cost of patient 18677 until 2 year ago?", "query": "select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 18677 ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year')", "value": {"patient_id": 18677}, "q_tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "what is_verb the total hospital cost of patient {patient_id} [time_filter_global1:rel-year-until]?", "department": "['insurance_review']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "86c63469318577a8f02ef3f5"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 4326 last get admitted to the hospital during this year?", "template": "when was the last hospital admission time of patient 4326 this year?", "query": "select admissions.admittime from admissions where admissions.subject_id = 4326 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year') order by admissions.admittime desc limit 1", "value": {"patient_id": 4326}, "q_tag": "when was the [time_filter_exact1] hospital admission time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital admission time of patient {patient_id} [time_filter_global1:rel-year-this]?", "department": "['other', 'physician', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9ea9a35a97a3222042458322"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when was patient 68641 for the last time leaving the hospital the last year?", "template": "when was the last hospital discharge time of patient 68641 last year?", "query": "select admissions.dischtime from admissions where admissions.subject_id = 68641 and datetime(admissions.dischtime,'start of year') = datetime(current_time,'start of year','-1 year') order by admissions.dischtime desc limit 1", "value": {"patient_id": 68641}, "q_tag": "when was the [time_filter_exact1] hospital discharge time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] hospital discharge time of patient {patient_id} [time_filter_global1:rel-year-last]?", "department": "['other', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5ba8ec424ae2ea6aa620ad98"}, {"db_id": "mimic_iii", "question": "when did patient 16554 first come out of hospital in this year?", "template": "when was the first hospital discharge time of patient 16554 this year?", "query": "select admissions.dischtime from admissions where admissions.subject_id = 16554 and datetime(admissions.dischtime,'start of year') = datetime(current_time,'start of year','-0 year') order by admissions.dischtime asc limit 1", "value": {"patient_id": 16554}, "q_tag": "when was the [time_filter_exact1] hospital discharge time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital discharge time of patient {patient_id} [time_filter_global1:rel-year-this]?", "department": "['other', 'insurance_review', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fa6552497e04b7425556b149"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 17944 get discharged from the hospital for the first time in this year?", "template": "when was the first hospital discharge time of patient 17944 this year?", "query": "select admissions.dischtime from admissions where admissions.subject_id = 17944 and datetime(admissions.dischtime,'start of year') = datetime(current_time,'start of year','-0 year') order by admissions.dischtime asc limit 1", "value": {"patient_id": 17944}, "q_tag": "when was the [time_filter_exact1] hospital discharge time of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] hospital discharge time of patient {patient_id} [time_filter_global1:rel-year-this]?", "department": "['other', 'insurance_review', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "18447d51db06f29e7497346a"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 73595 receive the revise sm bowel anastom for the first time until 3 years ago?", "template": "when was the first time that patient 73595 received a revise sm bowel anastom procedure until 3 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 = 'revise sm bowel anastom' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73595 ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-3 year') order by procedures_icd.charttime asc limit 1", "value": {"procedure_name": "revise sm bowel anastom", "patient_id": 73595}, "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-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-until]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4eb9d81289e601ebee38aff4"}, {"db_id": "mimic_iii", "question": "when was patient 2238 first received cont inv mec ven 96+ hrs during the previous year?", "template": "when was the first time that patient 2238 received a cont inv mec ven 96+ hrs procedure last year?", "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 = 'cont inv mec ven 96+ hrs' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 2238 ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') order by procedures_icd.charttime asc limit 1", "value": {"patient_id": 2238, "procedure_name": "cont inv mec ven 96+ hrs"}, "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-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "145ae280d87c395f1f27b53b"}, {"db_id": "mimic_iii", "question": "what was patient 96365's first procedure time of debrid opn fx-tibia/fib until 2 years ago?", "template": "when was the first time that patient 96365 received a debrid opn fx-tibia/fib procedure until 2 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 = 'debrid opn fx-tibia/fib' ) and procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 96365 ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') order by procedures_icd.charttime asc limit 1", "value": {"patient_id": 96365, "procedure_name": "debrid opn fx-tibia/fib"}, "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-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-until]?", "department": "['physician', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "31a93fb0a1c6ab944fa67081"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when the last time patient 63368 was prescribed ondansetron in 06/last year?", "template": "when was the last time that patient 63368 was prescribed ondansetron in 06/last year?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 63368 ) and prescriptions.drug = 'ondansetron' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '06' order by prescriptions.startdate desc limit 1", "value": {"patient_id": 63368, "drug_name": "ondansetron"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?", "t_tag": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "289f42707a3794347e0d1ab8"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 42956 first receive a prescription for fentanyl patch in 03/last year?", "template": "when was the first time that patient 42956 was prescribed fentanyl patch in 03/last year?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 42956 ) and prescriptions.drug = 'fentanyl patch' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',prescriptions.startdate) = '03' order by prescriptions.startdate asc limit 1", "value": {"drug_name": "fentanyl patch", "patient_id": 42956}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} was prescribed {drug_name} [time_filter_global1]?", "t_tag": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cd4cea77de08d89f45740330"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when was patient 92642 prescribed docusate sodium and acetaminophen at the same time for the last time until 62 months ago?", "template": "when was the last time that patient 92642 was prescribed docusate sodium and acetaminophen at the same time until 62 month ago?", "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 = 'docusate sodium' and admissions.subject_id = 92642 and datetime(prescriptions.startdate) <= datetime(current_time,'-62 month') ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'acetaminophen' and admissions.subject_id = 92642 and datetime(prescriptions.startdate) <= datetime(current_time,'-62 month') ) 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": "docusate sodium", "drug_name2": "acetaminophen", "patient_id": 92642}, "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": ["rel-month-until", "", "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:rel-month-until]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8027ac4735f44040b7486733"}, {"db_id": "mimic_iii", "question": "when was patient 20441 last prescribed both potassium chl 20 meq / 1000 ml d5 1/2 ns and vial at the same time in 03/this year?", "template": "when was the last time that patient 20441 was prescribed potassium chl 20 meq / 1000 ml d5 1/2 ns and vial at the same time in 03/this year?", "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 = 'potassium chl 20 meq / 1000 ml d5 1/2 ns' and admissions.subject_id = 20441 and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',prescriptions.startdate) = '03' ) as t1 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'vial' and admissions.subject_id = 20441 and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',prescriptions.startdate) = '03' ) 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": "potassium chl 20 meq / 1000 ml d5 1/2 ns", "drug_name2": "vial", "patient_id": 20441}, "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": ["mix-month-this_year", "", "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:mix-month-this_year]?", "department": "['physician']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8ef910e50b1da1e82d0db98b"}, {"db_id": "mimic_iii", "question": "a month before, when was the last time that patient 51177 was prescribed with a medication via sl route?", "template": "when was the last time that patient 51177 was prescribed a medication via sl route last month?", "query": "select prescriptions.startdate from prescriptions where prescriptions.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 51177 ) and prescriptions.route = 'sl' and datetime(prescriptions.startdate,'start of month') = datetime(current_time,'start of month','-1 month') order by prescriptions.startdate desc limit 1", "value": {"drug_route": "sl", "patient_id": 51177}, "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-last", "", "", "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-month-last]?", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "efb1bb0ee60e033fea17dd96"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "in 12/this year, when did patient 32153 receive the last lab test?", "template": "when was the last lab test of patient 32153 in 12/this year?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 32153 ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',labevents.charttime) = '12' order by labevents.charttime desc limit 1", "value": {"patient_id": 32153}, "q_tag": "when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] lab test of patient {patient_id} [time_filter_global1:mix-month-this_year]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "52154b2bb8070dbdac250281"}, {"db_id": "mimic_iii", "question": "when was patient 95892 given the last test for the lab this month?", "template": "when was the last lab test of patient 95892 this month?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 95892 ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') order by labevents.charttime desc limit 1", "value": {"patient_id": 95892}, "q_tag": "when was the [time_filter_exact1] lab test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] lab test of patient {patient_id} [time_filter_global1:rel-month-this]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e45eec1698853286346a99e9"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did the last time patient 3369 have a potassium lab test until 20 months ago?", "template": "when was the last time that patient 3369 received a potassium lab test until 20 month ago?", "query": "select labevents.charttime 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 = 3369 ) and datetime(labevents.charttime) <= datetime(current_time,'-20 month') order by labevents.charttime desc limit 1", "value": {"patient_id": 3369, "lab_name": "potassium"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-month-until", "", "", "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:rel-month-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e629706e86680f8dc549b4d3"}, {"db_id": "mimic_iii", "question": "what was the first time patient 11362 had a sodium test in 11/this year?", "template": "when was the first time that patient 11362 received a sodium lab test in 11/this year?", "query": "select labevents.charttime from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'sodium' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 11362 ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',labevents.charttime) = '11' order by labevents.charttime asc limit 1", "value": {"patient_id": 11362, "lab_name": "sodium"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["mix-month-this_year", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1:mix-month-this_year]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "85109b93352886471daf1bec"}, {"db_id": "mimic_iii", "question": "when did patient 3516 first receive calculated total co2 lab test until 42 months ago?", "template": "when was the first time that patient 3516 received a calculated total co2 lab test until 42 month ago?", "query": "select 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 = 3516 ) and datetime(labevents.charttime) <= datetime(current_time,'-42 month') order by labevents.charttime asc limit 1", "value": {"patient_id": 3516, "lab_name": "calculated total co2"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-month-until", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-until]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aca51124cb358e4d55163333"}, {"db_id": "mimic_iii", "question": "when was patient 23070 first tested for mchc a month before?", "template": "when was the first time that patient 23070 received a mchc lab test last month?", "query": "select labevents.charttime from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'mchc' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 23070 ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') order by labevents.charttime asc limit 1", "value": {"patient_id": 23070, "lab_name": "mchc"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-last]?", "department": "['physician', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "814b824e9cb3538d7f07a28a"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when was the first time that patient 85895 had the maximum chloride in a month before?", "template": "when was the first time that patient 85895 had the maximum value of chloride last month?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 85895 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'chloride' ) and datetime(labevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') order by labevents.valuenum desc, labevents.charttime asc limit 1", "value": {"lab_name": "chloride", "patient_id": 85895}, "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-month-last", "", "", "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-month-last]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0fd53dbcd8ce26b1ec7a1253"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 73075 have the maximum value of creatinine for the first time in 12/last year?", "template": "when was the first time that patient 73075 had the maximum value of creatinine in 12/last year?", "query": "select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 73075 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'creatinine' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',labevents.charttime) = '12' order by labevents.valuenum desc, labevents.charttime asc limit 1", "value": {"lab_name": "creatinine", "patient_id": 73075}, "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": ["mix-month-last_year", "", "", "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:mix-month-last_year]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7c998c6f428cc762ed327228"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 808 get a microbiology test for the last time this month?", "template": "when was the last microbiology test of patient 808 this month?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 808 ) and datetime(microbiologyevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') order by microbiologyevents.charttime desc limit 1", "value": {"patient_id": 808}, "q_tag": "when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?", "t_tag": ["rel-month-this", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:rel-month-this]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6d63ccb043fe26496727be53"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 57023 receive a blood culture ( myco/f lytic bottle) microbiology test last the previous month?", "template": "when was patient 57023's last blood culture ( myco/f lytic bottle) microbiology test last month?", "query": "select microbiologyevents.charttime from microbiologyevents where microbiologyevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 57023 ) and microbiologyevents.spec_type_desc = 'blood culture ( myco/f lytic bottle)' 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": "blood culture ( myco/f lytic bottle)", "patient_id": 57023}, "q_tag": "when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was patient {patient_id}'s [time_filter_exact1:exact-last] {culture_name} microbiology test [time_filter_global1:rel-month-last]?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a32d8ad05fd3438f56e1762e"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 15794 first get the d5/.45ns intake during the previous day?", "template": "when was the first time that patient 15794 had a d5/.45ns intake yesterday?", "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 = 15794 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd5/.45ns' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of day') = datetime(current_time,'start of day','-1 day') order by inputevents_cv.charttime asc limit 1", "value": {"intake_name": "d5/.45ns", "patient_id": 15794}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?", "t_tag": ["rel-day-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:rel-day-last]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "461a1dc2b9b71941843c3c89"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 20862 get a d5w intake for the last time on 02/19/last year?", "template": "when was the last time that patient 20862 had a d5w intake on 02/19/last year?", "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 = 20862 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd5w' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m-%d',inputevents_cv.charttime) = '02-19' order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 20862, "intake_name": "d5w"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?", "t_tag": ["mix-day-last_year", "", "", "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:mix-day-last_year]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bfeec1c75bf971818ba87588"}, {"db_id": "mimic_iii", "question": "what was patient 8016's first d5w intake time on last month/24?", "template": "when was the first time that patient 8016 had a d5w intake on last month/24?", "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 = 8016 ) ) and inputevents_cv.itemid in ( select d_items.itemid from d_items where d_items.label = 'd5w' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of month') = datetime(current_time,'start of month','-1 month') and strftime('%d',inputevents_cv.charttime) = '24' order by inputevents_cv.charttime asc limit 1", "value": {"patient_id": 8016, "intake_name": "d5w"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?", "t_tag": ["mix-day-last_month", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:mix-day-last_month]?", "department": "['physician', 'insurance_review', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "3b598bacac0b4dac321212c9"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 31880 had the first intake on 01/08/last year?", "template": "when was the first intake time of patient 31880 on 01/08/last year?", "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 = 31880 ) ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m-%d',inputevents_cv.charttime) = '01-08' order by inputevents_cv.charttime asc limit 1", "value": {"patient_id": 31880}, "q_tag": "when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-last_year", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] intake time of patient {patient_id} [time_filter_global1:mix-day-last_year]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "480b70e73d4bb3a48c5ddde0"}, {"db_id": "mimic_iii", "question": "when was the last time patient 12927 had an intake on 12/30/this year.", "template": "when was the last intake time of patient 12927 on 12/30/this year?", "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 = 12927 ) ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',inputevents_cv.charttime) = '12-30' order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 12927}, "q_tag": "when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:mix-day-this_year]?", "department": "['nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3a2bd02fa74af361aeed3362"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 5310 last receive an intake on last month/02?", "template": "when was the last intake time of patient 5310 on last month/02?", "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 = 5310 ) ) and datetime(inputevents_cv.charttime,'start of month') = datetime(current_time,'start of month','-1 month') and strftime('%d',inputevents_cv.charttime) = '02' order by inputevents_cv.charttime desc limit 1", "value": {"patient_id": 5310}, "q_tag": "when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?", "t_tag": ["mix-day-last_month", "", "", "exact-last", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:mix-day-last_month]?", "department": "['nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8c9d6fcbfe5faff9051393f0"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 22897 have a urine out foley output for the first time on 03/08/last year?", "template": "when was the first time that patient 22897 had a urine out foley output on 03/08/last year?", "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 = 22897 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out foley' 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) = '03-08' order by outputevents.charttime asc limit 1", "value": {"output_name": "urine out foley", "patient_id": 22897}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?", "t_tag": ["mix-day-last_year", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {output_name} output [time_filter_global1:mix-day-last_year]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e827701a145ec3db560322d6"}, {"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"}, {"db_id": "mimic_iii", "question": "what was patient 19428's first urine . event time during yesterday?", "template": "when was the first time that patient 19428 had a urine . output yesterday?", "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 = 19428 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine .' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of day') = datetime(current_time,'start of day','-1 day') order by outputevents.charttime asc limit 1", "value": {"output_name": "urine .", "patient_id": 19428}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?", "t_tag": ["rel-day-last", "", "", "exact-first", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {output_name} output [time_filter_global1:rel-day-last]?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b591c74271ba2b336ea490d7"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "when did patient 2514 have the first heart rate to be less than 87.0 on 06/26/this year?", "template": "when was the first time that the heart rate of patient 2514 was less than 87.0 on 06/26/this year?", "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 = 2514 ) ) 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 < 87.0 and datetime(chartevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',chartevents.charttime) = '06-26' order by chartevents.charttime asc limit 1", "value": {"patient_id": 2514, "vital_name": "heart rate", "vital_value": 87.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": ["mix-day-this_year", "", "", "exact-first", ""], "o_tag": ["", "", "less", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-first] time that the {vital_name} of patient {patient_id} was [comparison:less] than {vital_value} [time_filter_global1:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1ffa998fe2e7989c63229b84"}, {"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"}, {"db_id": "mimic_iii", "question": "when was the time that patient 28447's arterial bp mean was greater than 62.0 for the last time today?", "template": "when was the last time that the arterial bp mean of patient 28447 was greater than 62.0 today?", "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 = 28447 ) ) 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 > 62.0 and datetime(chartevents.charttime,'start of day') = datetime(current_time,'start of day','-0 day') order by chartevents.charttime desc limit 1", "value": {"patient_id": 28447, "vital_name": "arterial bp mean", "vital_value": 62.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-day-this", "", "", "exact-last", ""], "o_tag": ["", "", "greater", "", "", "", "", "", ""], "tag": "when was the [time_filter_exact1:exact-last] time that the {vital_name} of patient {patient_id} was [comparison:greater] than {vital_value} [time_filter_global1:rel-day-this]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "075fd8ad290418caa248b845"}, {"db_id": "mimic_iii", "question": "tell me the time when patient 5395's heart rate was less than 81.0 for the last time on 09/24/this year?", "template": "when was the last time that the heart rate of patient 5395 was less than 81.0 on 09/24/this year?", "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 = 5395 ) ) 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 < 81.0 and datetime(chartevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',chartevents.charttime) = '09-24' order by chartevents.charttime desc limit 1", "value": {"patient_id": 5395, "vital_name": "heart rate", "vital_value": 81.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": ["mix-day-this_year", "", "", "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:mix-day-this_year]?", "department": "['physician', 'nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "47afcc1507285b86090b042e"}, {"db_id": "mimic_iii", "question": "on 08/21/this year, when was the first time that patient 19144 had the minimum arterial bp [diastolic]?", "template": "when was the first time that patient 19144 had the minimum arterial bp [diastolic] on 08/21/this year?", "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 = 19144 ) ) 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,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m-%d',chartevents.charttime) = '08-21' order by chartevents.valuenum asc, chartevents.charttime asc limit 1", "value": {"patient_id": 19144, "vital_name": "arterial bp [diastolic]"}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?", "t_tag": ["mix-day-this_year", "", "", "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:mix-day-this_year]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "4efdd23bb96fca0c046d701a"}, {"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"}, {"db_id": "mimic_iii", "question": "when was the first time that patient 2518 had the minimum value of arterial bp [diastolic] today?", "template": "when was the first time that patient 2518 had the minimum arterial bp [diastolic] today?", "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 = 2518 ) ) 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,'start of day') = datetime(current_time,'start of day','-0 day') order by chartevents.valuenum asc, chartevents.charttime asc limit 1", "value": {"vital_name": "arterial bp [diastolic]", "patient_id": 2518}, "q_tag": "when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?", "t_tag": ["rel-day-this", "", "", "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:rel-day-this]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "7017a3160f7897c47bcb6ebe"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what's the name of the treatment that patient 25997's got two times until 58 months ago?", "template": "what was the name of the procedure that patient 25997 received two times until 58 month ago?", "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 = 25997 ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-58 month') group by procedures_icd.icd9_code ) as t1 where t1.c1 = 2 )", "value": {"patient_id": 25997}, "q_tag": "what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?", "t_tag": ["rel-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} received [n_times:two times] [time_filter_global1:rel-month-until]?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c7827a4e1c0e08f18f255b6c"}, {"db_id": "mimic_iii", "question": "what was the procedure which during a month before had been given to patient 51200 two times?", "template": "what was the name of the procedure that patient 51200 received two times last month?", "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 = 51200 ) and datetime(procedures_icd.charttime,'start of month') = datetime(current_time,'start of month','-1 month') group by procedures_icd.icd9_code ) as t1 where t1.c1 = 2 )", "value": {"patient_id": 51200}, "q_tag": "what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?", "t_tag": ["rel-month-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "two times", "", "", ""], "tag": "what was the name of the procedure that patient {patient_id} received [n_times:two times] [time_filter_global1:rel-month-last]?", "department": "['insurance_review']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "200fef48bed2103e633725ef"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "is patient 5828 had normal arterial bp [systolic] in yesterday?", "template": "has the arterial bp [systolic] of patient 5828 been normal yesterday?", "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 = 5828 ) ) 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 between systolic_bp_lower and systolic_bp_upper and datetime(chartevents.charttime,'start of day') = datetime(current_time,'start of day','-1 day')", "value": {"patient_id": 5828, "vital_name": "arterial bp [systolic]"}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1]?", "t_tag": ["rel-day-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1:rel-day-last]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3cbeeac1a4b9e51d407aab16"}, {"db_id": "mimic_iii", "question": "does the temperature c (calc) of patient 11779 in 02/last year have been normal?", "template": "has the temperature c (calc) of patient 11779 been normal in 02/last year?", "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 = 11779 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'temperature c (calc)' and d_items.linksto = 'chartevents' ) and chartevents.valuenum between temperature_lower and temperature_upper and datetime(chartevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') and strftime('%m',chartevents.charttime) = '02'", "value": {"patient_id": 11779, "vital_name": "temperature c (calc)"}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1]?", "t_tag": ["mix-month-last_year", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1:mix-month-last_year]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "0c3e17b2b0a445c0748d5896"}, {"db_id": "mimic_iii", "question": "was the sao2 of patient 31854 normal during the current hospital encounter?", "template": "has the sao2 of patient 31854 been normal 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 = 'sao2' and d_items.linksto = 'chartevents' ) and chartevents.valuenum between sao2_lower and sao2_upper", "value": {"patient_id": 31854, "vital_name": "sao2"}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1]?", "t_tag": ["rel-hosp-cur", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1:rel-hosp-cur]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b6d6a9d4a3c9572ff0140fb1"}, {"db_id": "mimic_iii", "question": "has the value of the temperature c (calc) of patient 6196 been normal until 07/2103?", "template": "has the temperature c (calc) of patient 6196 been normal until 07/2103?", "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 = 6196 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'temperature c (calc)' and d_items.linksto = 'chartevents' ) and chartevents.valuenum between temperature_lower and temperature_upper and strftime('%Y-%m',chartevents.charttime) <= '2103-07'", "value": {"patient_id": 6196, "vital_name": "temperature c (calc)"}, "q_tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1]?", "t_tag": ["abs-month-until", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "has_verb the {vital_name} of patient {patient_id} been normal [time_filter_global1:abs-month-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4175177ff914a23036c00971"}, {"db_id": "mimic_iii", "question": "what were the hospital admissions times of patient 72364 during this year?", "template": "list the hospital admission time of patient 72364 this year.", "query": "select admissions.admittime from admissions where admissions.subject_id = 72364 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 72364}, "q_tag": "list the hospital admission time of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the hospital admission time of patient {patient_id} [time_filter_global1:rel-year-this].", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "fe7310d50f90b0644365a1b5"}, {"db_id": "mimic_iii", "question": "tell me the hospital admission time of patient 25365 during this year?", "template": "list the hospital admission time of patient 25365 this year.", "query": "select admissions.admittime from admissions where admissions.subject_id = 25365 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 25365}, "q_tag": "list the hospital admission time of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the hospital admission time of patient {patient_id} [time_filter_global1:rel-year-this].", "department": "['nursing']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "2e706380c3401885ab841ac2"}, {"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"}, {"db_id": "mimic_iii", "question": "retrieve patient 23938's hospial admission time in this year.", "template": "list the hospital admission time of patient 23938 this year.", "query": "select admissions.admittime from admissions where admissions.subject_id = 23938 and datetime(admissions.admittime,'start of year') = datetime(current_time,'start of year','-0 year')", "value": {"patient_id": 23938}, "q_tag": "list the hospital admission time of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the hospital admission time of patient {patient_id} [time_filter_global1:rel-year-this].", "department": "['nursing']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "58132a38f12f26308600fe3a"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "give me patient 74523's yearly maximum pt until 4 years ago.", "template": "list the yearly maximum pt lab value of patient 74523 until 4 year ago.", "query": "select max(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 74523 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pt' ) and datetime(labevents.charttime) <= datetime(current_time,'-4 year') group by strftime('%Y',labevents.charttime)", "value": {"patient_id": 74523, "lab_name": "pt"}, "q_tag": "list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:maximum] {lab_name} lab value of patient {patient_id} [time_filter_global1:rel-year-until].", "department": "['physician', 'infection_control', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "443966a327d1bb9c7fd3ffec"}, {"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"}, {"db_id": "mimic_iii", "question": "list patient 29741's monthly minimum pt the last year.", "template": "list the monthly minimum pt lab value of patient 29741 last year.", "query": "select min(labevents.valuenum) from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 29741 ) and labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'pt' ) and datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') group by strftime('%Y-%m',labevents.charttime)", "value": {"patient_id": 29741, "lab_name": "pt"}, "q_tag": "list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:minimum] {lab_name} lab value of patient {patient_id} [time_filter_global1:rel-year-last].", "department": "['physician', 'infection_control', 'nursing']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0d3cf8cf3cdcd705a062be0a"}, {"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"}, {"db_id": "mimic_iii", "question": "what would be patient 30826's monthly minimum weight this year?", "template": "list the monthly minimum weight of patient 30826 this year.", "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 = 30826 ) ) 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,'start of year') = datetime(current_time,'start of year','-0 year') group by strftime('%Y-%m',chartevents.charttime)", "value": {"patient_id": 30826}, "q_tag": "list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:minimum] weight of patient {patient_id} [time_filter_global1:rel-year-this].", "department": "['physician']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "69f9deded7b4b2f4025c41be"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "indicate the daily maximum dose of tpn w/lipids that patient 20898 had received in 12/this year.", "template": "list the daily maximum volume of tpn w/lipids intake that patient 20898 received in 12/this year.", "query": "select max(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 = 'tpn w/lipids' and d_items.linksto = 'inputevents_cv' ) and datetime(inputevents_cv.charttime,'start of year') = datetime(current_time,'start of year','-0 year') and strftime('%m',inputevents_cv.charttime) = '12' group by strftime('%Y-%m-%d',inputevents_cv.charttime)", "value": {"patient_id": 20898, "intake_name": "tpn w/lipids"}, "q_tag": "list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].", "t_tag": ["mix-month-this_year", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:maximum] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:mix-month-this_year].", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "baf3fc112b80ac50e9dfd9cc"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the daily minimum amount of ultrafiltrate ultrafiltrate in patient 73713 in the last month?", "template": "list the daily minimum volume of ultrafiltrate ultrafiltrate output that patient 73713 had last month.", "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 = 73713 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'ultrafiltrate ultrafiltrate' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') group by strftime('%Y-%m-%d',outputevents.charttime)", "value": {"patient_id": 73713, "output_name": "ultrafiltrate ultrafiltrate"}, "q_tag": "list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].", "t_tag": ["rel-month-last", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:minimum] volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-month-last].", "department": "['physician', 'infection_control']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "10f01f8988baaae76bd8b7a6"}, {"db_id": "mimic_iii", "question": "what is the monthly minimum amount of urine out void that patient 50480 had had until 70 months ago?", "template": "list the monthly minimum volume of urine out void output that patient 50480 had until 70 month ago.", "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 = 50480 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'urine out void' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime) <= datetime(current_time,'-70 month') group by strftime('%Y-%m',outputevents.charttime)", "value": {"output_name": "urine out void", "patient_id": 50480}, "q_tag": "list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].", "t_tag": ["rel-month-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "monthly", ""], "tag": "list the [unit_average:monthly] [agg_function:minimum] volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-month-until].", "department": "['physician', 'infection_control']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9eb9a2b16bc857e884880bf0"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "show me patient 85895's daily average cerebral ventricular #1 output amount in the last month.", "template": "list the daily average volume of cerebral ventricular #1 output that patient 85895 had last month.", "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 = 85895 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'cerebral ventricular #1' and d_items.linksto = 'outputevents' ) and datetime(outputevents.charttime,'start of month') = datetime(current_time,'start of month','-1 month') group by strftime('%Y-%m-%d',outputevents.charttime)", "value": {"output_name": "cerebral ventricular #1", "patient_id": 85895}, "q_tag": "list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].", "t_tag": ["rel-month-last", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:average] volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-month-last].", "department": "['physician', 'infection_control']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "70858ab4c10ac0fd3b8122d9"}, {"db_id": "mimic_iii", "question": "until 1216 days ago, list the yearly minimum arterial bp [diastolic] of patient 19059.", "template": "list the yearly minimum arterial bp [diastolic] of patient 19059 until 1216 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 = 19059 ) ) 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,'-1216 day') group by strftime('%Y',chartevents.charttime)", "value": {"patient_id": 19059, "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-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "yearly", ""], "tag": "list the [unit_average:yearly] [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:rel-day-until].", "department": "['physician', 'infection_control', 'nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "94e1c349961e4b8925e64789"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the daily maximum arterial bp mean of patient 15794 in this month?", "template": "list the daily maximum arterial bp mean of patient 15794 this month.", "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 = 15794 ) ) and chartevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'arterial bp mean' and d_items.linksto = 'chartevents' ) and datetime(chartevents.charttime,'start of month') = datetime(current_time,'start of month','-0 month') group by strftime('%Y-%m-%d',chartevents.charttime)", "value": {"patient_id": 15794, "vital_name": "arterial bp mean"}, "q_tag": "list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].", "t_tag": ["rel-month-this", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "daily", ""], "tag": "list the [unit_average:daily] [agg_function:maximum] {vital_name} of patient {patient_id} [time_filter_global1:rel-month-this].", "department": "['physician', 'infection_control', 'nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4fb0f1bda51274dac1ba0527"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the one year survival rate of a patient diagnosed with morbid obesity?", "template": "what is the one year survival rate of patients diagnosed with morbid obesity?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 1 * 365 then 1 else 0 end ) * 100 / count(*) 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 = 'morbid obesity' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 1 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id", "value": {"diagnosis_name": "morbid obesity"}, "q_tag": "what is the [n_survival_period] survival rate of patients diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "one year", "", "", "", ""], "tag": "what is the [n_survival_period:one year] survival rate of patients diagnosed with {diagnosis_name}?", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a2439c16804459c73655fd6d"}, {"db_id": "mimic_iii", "question": "what was the four year survival rate for the patients with long-term use anticoagul?", "template": "what is the four year survival rate of patients diagnosed with long-term use anticoagul?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) 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 = 'long-term use anticoagul' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id", "value": {"diagnosis_name": "long-term use anticoagul"}, "q_tag": "what is the [n_survival_period] survival rate of patients diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "four year", "", "", "", ""], "tag": "what is the [n_survival_period:four year] survival rate of patients diagnosed with {diagnosis_name}?", "department": "['physician']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "7e775c68d9939885fbb4f389"}, {"db_id": "mimic_iii", "question": "what is the two year survival rate of nb obsrv suspct infect patients?", "template": "what is the two year survival rate of patients diagnosed with nb obsrv suspct infect?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 2 * 365 then 1 else 0 end ) * 100 / count(*) 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 = 'nb obsrv suspct infect' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 2 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id", "value": {"diagnosis_name": "nb obsrv suspct infect"}, "q_tag": "what is the [n_survival_period] survival rate of patients diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "two year", "", "", "", ""], "tag": "what is the [n_survival_period:two year] survival rate of patients diagnosed with {diagnosis_name}?", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "93338ff33e2ca56363e89d39"}, {"db_id": "mimic_iii", "question": "among patients diagnosed with malnutrition mod degree, show me the three year survival probability.", "template": "what is the three year survival rate of patients diagnosed with malnutrition mod degree?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 3 * 365 then 1 else 0 end ) * 100 / count(*) 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 = 'malnutrition mod degree' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 3 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id", "value": {"diagnosis_name": "malnutrition mod degree"}, "q_tag": "what is the [n_survival_period] survival rate of patients diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "three year", "", "", "", ""], "tag": "what is the [n_survival_period:three year] survival rate of patients diagnosed with {diagnosis_name}?", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aa2d87894cfe610ef36257aa"}, {"db_id": "mimic_iii", "question": "for patients diagnosed with mv-oth veh coll-driver, tell me the four year survival probability.", "template": "what is the four year survival rate of patients diagnosed with mv-oth veh coll-driver?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) 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 = 'mv-oth veh coll-driver' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id", "value": {"diagnosis_name": "mv-oth veh coll-driver"}, "q_tag": "what is the [n_survival_period] survival rate of patients diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "four year", "", "", "", ""], "tag": "what is the [n_survival_period:four year] survival rate of patients diagnosed with {diagnosis_name}?", "department": "['physician']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "70a5258d6807ff8240bc7ded"}, {"db_id": "mimic_iii", "question": "tell me the four year survival rate of patients who have been prescribed ns after having been diagnosed with nontox multinodul goiter?", "template": "what is the four year survival rate of patients who were prescribed ns after having been diagnosed with nontox multinodul goiter?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t4.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) from ( select t2.subject_id, t2.charttime 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 = 'nontox multinodul goiter' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'ns' ) as t3 on t2.subject_id = t3.subject_id where t2.charttime < t3.startdate ) as t4 join patients on t4.subject_id = patients.subject_id", "value": {"diagnosis_name": "nontox multinodul goiter", "drug_name": "ns"}, "q_tag": "what is the [n_survival_period] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "four year", "", "", "", ""], "tag": "what is the [n_survival_period:four year] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "department": "['health_records']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "e2943e47b6f61e1e266735c5"}, {"db_id": "mimic_iii", "question": "calculate the four year survival rate among patients who were prescribed valproate sodium after having been diagnosed with resp obstr-inhal obj nec.", "template": "what is the four year survival rate of patients who were prescribed valproate sodium after having been diagnosed with resp obstr-inhal obj nec?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t4.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) from ( select t2.subject_id, t2.charttime 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 = 'resp obstr-inhal obj nec' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'valproate sodium' ) as t3 on t2.subject_id = t3.subject_id where t2.charttime < t3.startdate ) as t4 join patients on t4.subject_id = patients.subject_id", "value": {"drug_name": "valproate sodium", "diagnosis_name": "resp obstr-inhal obj nec"}, "q_tag": "what is the [n_survival_period] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "four year", "", "", "", ""], "tag": "what is the [n_survival_period:four year] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "department": "['health_records']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "a0a8546004573069c1809f69"}, {"db_id": "mimic_iii", "question": "what is the one year survival rate of patients prescribed with insulin after diagnosed with hx of alcoholism?", "template": "what is the one year survival rate of patients who were prescribed insulin after having been diagnosed with hx of alcoholism?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t4.charttime) > 1 * 365 then 1 else 0 end ) * 100 / count(*) from ( select t2.subject_id, t2.charttime 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 = 'hx of alcoholism' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 1 * 365 ) as t2 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'insulin' ) as t3 on t2.subject_id = t3.subject_id where t2.charttime < t3.startdate ) as t4 join patients on t4.subject_id = patients.subject_id", "value": {"diagnosis_name": "hx of alcoholism", "drug_name": "insulin"}, "q_tag": "what is the [n_survival_period] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "one year", "", "", "", ""], "tag": "what is the [n_survival_period:one year] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "department": "['health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "4a9d4d8feced43896356fe2e"}, {"db_id": "mimic_iii", "question": "give me the five year survival rate of patients who were prescribed morphine sulfate after having been diagnosed with fetal/neonatal jaund nos?", "template": "what is the five year survival rate of patients who were prescribed morphine sulfate after having been diagnosed with fetal/neonatal jaund nos?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t4.charttime) > 5 * 365 then 1 else 0 end ) * 100 / count(*) from ( select t2.subject_id, t2.charttime 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 = 'fetal/neonatal jaund nos' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 5 * 365 ) as t2 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'morphine sulfate' ) as t3 on t2.subject_id = t3.subject_id where t2.charttime < t3.startdate ) as t4 join patients on t4.subject_id = patients.subject_id", "value": {"drug_name": "morphine sulfate", "diagnosis_name": "fetal/neonatal jaund nos"}, "q_tag": "what is the [n_survival_period] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "five year", "", "", "", ""], "tag": "what is the [n_survival_period:five year] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "department": "['health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aaaf601f993ea90945a762e5"}, {"db_id": "mimic_iii", "question": "get me the four year survival probability of patients who were prescribed enoxaparin sodium after having been diagnosed with fx dorsal vertebra-close?", "template": "what is the four year survival rate of patients who were prescribed enoxaparin sodium after having been diagnosed with fx dorsal vertebra-close?", "query": "select sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t4.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) from ( select t2.subject_id, t2.charttime 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 = 'fx dorsal vertebra-close' ) group by admissions.subject_id having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join ( select admissions.subject_id, prescriptions.startdate from prescriptions join admissions on prescriptions.hadm_id = admissions.hadm_id where prescriptions.drug = 'enoxaparin sodium' ) as t3 on t2.subject_id = t3.subject_id where t2.charttime < t3.startdate ) as t4 join patients on t4.subject_id = patients.subject_id", "value": {"diagnosis_name": "fx dorsal vertebra-close", "drug_name": "enoxaparin sodium"}, "q_tag": "what is the [n_survival_period] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "", "four year", "", "", "", ""], "tag": "what is the [n_survival_period:four year] survival rate of patients who were prescribed {drug_name} after having been diagnosed with {diagnosis_name}?", "department": "['health_records']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c4796c7f93df99a6915e5406"}, {"db_id": "mimic_iii", "question": "give me the three top diagnoses that had the highest four year mortality rate?", "template": "what are the top three diagnoses that have the highest four year mortality rate?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t4.icd9_code from ( select t3.icd9_code, dense_rank() over ( order by t3.c1 desc ) as c2 from ( select t2.icd9_code, 100 - sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 4 * 365 then 1 else 0 end ) * 100 / count(*) as c1 from ( select t1.subject_id, t1.icd9_code, t1.charttime from ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id group by admissions.subject_id, diagnoses_icd.icd9_code having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 4 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id group by t2.icd9_code ) as t3 ) as t4 where t4.c2 <= 3 )", "value": {}, "q_tag": "what are the top [n_rank] diagnoses that have the highest [n_survival_period] mortality rate?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "four year", "", "", "", ""], "tag": "what are the top [n_rank:three] diagnoses that have the highest [n_survival_period:four year] mortality rate?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5a4e591dad61b6e8faf0a70d"}, {"db_id": "mimic_iii", "question": "what were the four diagnoses that had the highest five year mortality rate?", "template": "what are the top four diagnoses that have the highest five year mortality rate?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t4.icd9_code from ( select t3.icd9_code, dense_rank() over ( order by t3.c1 desc ) as c2 from ( select t2.icd9_code, 100 - sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 5 * 365 then 1 else 0 end ) * 100 / count(*) as c1 from ( select t1.subject_id, t1.icd9_code, t1.charttime from ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id group by admissions.subject_id, diagnoses_icd.icd9_code having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 5 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id group by t2.icd9_code ) as t3 ) as t4 where t4.c2 <= 4 )", "value": {}, "q_tag": "what are the top [n_rank] diagnoses that have the highest [n_survival_period] mortality rate?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "four", "five year", "", "", "", ""], "tag": "what are the top [n_rank:four] diagnoses that have the highest [n_survival_period:five year] mortality rate?", "department": "['nursing']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5b62e164dbe055f1190fcf5c"}, {"db_id": "mimic_iii", "question": "what are the three diagnoses with the lowest three year survival rate?", "template": "what are the top three diagnoses that have the highest three year mortality rate?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t4.icd9_code from ( select t3.icd9_code, dense_rank() over ( order by t3.c1 desc ) as c2 from ( select t2.icd9_code, 100 - sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 3 * 365 then 1 else 0 end ) * 100 / count(*) as c1 from ( select t1.subject_id, t1.icd9_code, t1.charttime from ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id group by admissions.subject_id, diagnoses_icd.icd9_code having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 3 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id group by t2.icd9_code ) as t3 ) as t4 where t4.c2 <= 3 )", "value": {}, "q_tag": "what are the top [n_rank] diagnoses that have the highest [n_survival_period] mortality rate?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "three year", "", "", "", ""], "tag": "what are the top [n_rank:three] diagnoses that have the highest [n_survival_period:three year] mortality rate?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c9a78208e77db02044e3616f"}, {"db_id": "mimic_iii", "question": "get me the top four diagnoses that have the highest five year mortality rate?", "template": "what are the top four diagnoses that have the highest five year mortality rate?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t4.icd9_code from ( select t3.icd9_code, dense_rank() over ( order by t3.c1 desc ) as c2 from ( select t2.icd9_code, 100 - sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 5 * 365 then 1 else 0 end ) * 100 / count(*) as c1 from ( select t1.subject_id, t1.icd9_code, t1.charttime from ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id group by admissions.subject_id, diagnoses_icd.icd9_code having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 5 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id group by t2.icd9_code ) as t3 ) as t4 where t4.c2 <= 4 )", "value": {}, "q_tag": "what are the top [n_rank] diagnoses that have the highest [n_survival_period] mortality rate?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "four", "five year", "", "", "", ""], "tag": "what are the top [n_rank:four] diagnoses that have the highest [n_survival_period:five year] mortality rate?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c8c943d7c5662127c1c49241"}, {"db_id": "mimic_iii", "question": "give me the top three diagnoses that have the highest three year mortality rate?", "template": "what are the top three diagnoses that have the highest three year mortality rate?", "query": "select d_icd_diagnoses.short_title from d_icd_diagnoses where d_icd_diagnoses.icd9_code in ( select t4.icd9_code from ( select t3.icd9_code, dense_rank() over ( order by t3.c1 desc ) as c2 from ( select t2.icd9_code, 100 - sum( case when patients.dod is null then 1 when strftime('%j',patients.dod) - strftime('%j',t2.charttime) > 3 * 365 then 1 else 0 end ) * 100 / count(*) as c1 from ( select t1.subject_id, t1.icd9_code, t1.charttime from ( select admissions.subject_id, diagnoses_icd.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id group by admissions.subject_id, diagnoses_icd.icd9_code having min(diagnoses_icd.charttime) = diagnoses_icd.charttime ) as t1 where strftime('%j',current_time) - strftime('%j',t1.charttime) > 3 * 365 ) as t2 join patients on t2.subject_id = patients.subject_id group by t2.icd9_code ) as t3 ) as t4 where t4.c2 <= 3 )", "value": {}, "q_tag": "what are the top [n_rank] diagnoses that have the highest [n_survival_period] mortality rate?", "t_tag": ["", "", "", "", ""], "o_tag": ["", "", "", "three", "three year", "", "", "", ""], "tag": "what are the top [n_rank:three] diagnoses that have the highest [n_survival_period:three year] mortality rate?", "department": "['nursing']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "89d81afca59a298c92948e4e"}, {"db_id": "mimic_iii", "question": "how much is the maximum hospital cost involving laparotomy nec the previous year?", "template": "what was the maximum total hospital cost that involves a procedure named laparotomy nec last year?", "query": "select max(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.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 = 'laparotomy nec' ) ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-1 year') group by cost.hadm_id ) as t1", "value": {"procedure_name": "laparotomy nec"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "maximum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:maximum] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1:rel-year-last]?", "department": "['insurance_review']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "65ec4b5e1ad3473aa7e0f736"}, {"db_id": "mimic_iii", "question": "what's the minimum total cost of the hospital that involves a procedure called remove imp device-femur until 2 years ago?", "template": "what was the minimum total hospital cost that involves a procedure named remove imp device-femur until 2 year ago?", "query": "select min(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.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 = 'remove imp device-femur' ) ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year') group by cost.hadm_id ) as t1", "value": {"procedure_name": "remove imp device-femur"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1:rel-year-until]?", "department": "['insurance_review']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c7d04a7489fc410f6a7cf8fb"}, {"db_id": "mimic_iii", "question": "what is the minimum total hospital cost that involves 1 int mam-cor art bypass in this year?", "template": "what is the minimum total hospital cost that involves a procedure named 1 int mam-cor art bypass this year?", "query": "select min(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.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 = '1 int mam-cor art bypass' ) ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-0 year') group by cost.hadm_id ) as t1", "value": {"procedure_name": "1 int mam-cor art bypass"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1:rel-year-this]?", "department": "['insurance_review']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2207320fc5d71d0b7cbca747"}, {"db_id": "mimic_iii", "question": "what is the average total hospital cost which involves nonop cardiac/vasc exam in a year before?", "template": "what was the average total hospital cost that involves a procedure named nonop cardiac/vasc exam last year?", "query": "select avg(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.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 = 'nonop cardiac/vasc exam' ) ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-1 year') group by cost.hadm_id ) as t1", "value": {"procedure_name": "nonop cardiac/vasc exam"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:average] total hospital cost that involves a procedure named {procedure_name} [time_filter_global1:rel-year-last]?", "department": "['insurance_review']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "49d60b18baea7cb5a95cd057"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the minimum total hospital cost which involves cd4/cd8 ratio in the last year?", "template": "what was the minimum total hospital cost that involves a cd4/cd8 ratio lab test last year?", "query": "select min(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 = 'cd4/cd8 ratio' ) ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-1 year') group by cost.hadm_id ) as t1", "value": {"lab_name": "cd4/cd8 ratio"}, "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-last", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a {lab_name} lab test [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "01b58531f29fcb5a15cbb224"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the average cost of the hospital involving lamotrigine until 2 years ago?", "template": "what was the average total hospital cost that involves a drug named lamotrigine until 2 year ago?", "query": "select avg(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'lamotrigine' ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year') group by cost.hadm_id ) as t1", "value": {"drug_name": "lamotrigine"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a drug named {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:average] total hospital cost that involves a drug named {drug_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "97c86ff14f0c2204a5bf037c"}, {"db_id": "mimic_iii", "question": "what is the total cost of a average hospital with a drug called albumin 5% (25g / 500ml) in this year?", "template": "what is the average total hospital cost that involves a drug named albumin 5% (25g / 500ml) this year?", "query": "select avg(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'albumin 5% (25g / 500ml)' ) and datetime(cost.chargetime,'start of year') = datetime(current_time,'start of year','-0 year') group by cost.hadm_id ) as t1", "value": {"drug_name": "albumin 5% (25g / 500ml)"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a drug named {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-this", "", "", "", ""], "o_tag": ["", "average", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:average] total hospital cost that involves a drug named {drug_name} [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "low", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "1d5abad8ad35edfcf655c017"}, {"db_id": "mimic_iii", "question": "tell me the minimum total hospital cost that involves methylprednisolone until 2 years ago?", "template": "what was the minimum total hospital cost that involves a drug named methylprednisolone until 2 year ago?", "query": "select min(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'methylprednisolone' ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year') group by cost.hadm_id ) as t1", "value": {"drug_name": "methylprednisolone"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a drug named {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a drug named {drug_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bd9b55e836dd1a98d344db01"}, {"db_id": "mimic_iii", "question": "tell me the minimum total hospital cost that includes hydroxyzine hcl until 3 years ago?", "template": "what was the minimum total hospital cost that involves a drug named hydroxyzine hcl until 3 year ago?", "query": "select min(t1.c1) from ( select sum(cost.cost) as c1 from cost where cost.hadm_id in ( select prescriptions.hadm_id from prescriptions where prescriptions.drug = 'hydroxyzine hcl' ) and datetime(cost.chargetime) <= datetime(current_time,'-3 year') group by cost.hadm_id ) as t1", "value": {"drug_name": "hydroxyzine hcl"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a drug named {drug_name} [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "minimum", "", "", "", "", "", "", ""], "tag": "what is_verb the [agg_function:minimum] total hospital cost that involves a drug named {drug_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f2db5749c9323d41f5578084"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "tell me the maximum total hospital cost that involves irritable bowel syndrome until 2 years ago?", "template": "what was the maximum total hospital cost that involves a diagnosis named irritable bowel syndrome until 2 year ago?", "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 = 'irritable bowel syndrome' ) ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year') group by cost.hadm_id ) as t1", "value": {"diagnosis_name": "irritable bowel syndrome"}, "q_tag": "what is_verb the [agg_function] total hospital cost that involves a diagnosis named {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-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:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0aa36c5e34995bae1cab5e79"}, {"db_id": "mimic_iii", "question": "list the patient identifications of those patients who were diagnosed with nasal bone fx-closed during the previous year.", "template": "list the ids of patients diagnosed with nasal bone fx-closed last year.", "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 = 'nasal bone fx-closed' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') )", "value": {"diagnosis_name": "nasal bone fx-closed"}, "q_tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1].", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "", "", "", "", "", ""], "tag": "list the ids of patients diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last].", "department": "['physician', 'nursing']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "83870f9700ae611254717649"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what is the minimum monthly number of patients with backache nos in a year before?", "template": "what is the minimum monthly number of patient records diagnosed with backache nos last year?", "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 = 'backache nos' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') group by strftime('%Y-%m',diagnoses_icd.charttime) ) as t1", "value": {"diagnosis_name": "backache nos"}, "q_tag": "what is the [agg_function] [unit_average] number of patient records diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "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:rel-year-last]?", "department": "['physician']", "importance": "low", "para_type": "human", "is_impossible": false, "split": "valid", "id": "cbce13dfef0f978626560b1b"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "list the top three most common diagnoses this year?", "template": "what are the top three frequent diagnoses this year?", "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,'start of year') = datetime(current_time,'start of year','-0 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-this", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "883756edf3d062c3d1e7fca1"}, {"db_id": "mimic_iii", "question": "tell me the top five most common diagnoses until 1 year ago?", "template": "what were the top five frequent diagnoses until 1 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,'-1 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a8c0184afbfb2cadafe34be6"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "tell me the top five most frequent diagnoses for patients of age 40s in the previous year?", "template": "what were the top five frequent diagnoses of patients aged 40s last year?", "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 40 and 49 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') group by diagnoses_icd.icd9_code ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent diagnoses of patients aged [age_group] [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["40s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent diagnoses of patients aged [age_group:40s] [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6bdc9baeec9d8e16bc078ba2"}, {"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"}, {"db_id": "mimic_iii", "question": "show me the top three most common diagnoses of patients of age 40s in the last year?", "template": "what were the top three frequent diagnoses of patients aged 40s last year?", "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 40 and 49 ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 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-last", "", "", "", ""], "o_tag": ["40s", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses of patients aged [age_group:40s] [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "f60d282909a9e2f03ea96fd0"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "in this year what was the top three most frequent diagnoses that patients were given within 2 months after being diagnosed with gastrostomy status?", "template": "what are the top three frequent diagnoses that patients were diagnosed within 2 month after having been diagnosed with gastrostomy status this year?", "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 = 'gastrostomy status' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 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,'start of year') = datetime(current_time,'start of year','-0 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 <= 3 )", "value": {"diagnosis_name": "gastrostomy status"}, "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": ["rel-year-this", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent diagnoses that patients were diagnosed [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-this]?", "department": "['physician', 'insurance_review']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "8268547cbf1bbaa8ae5f604e"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "show me the top three most frequent diagnoses that patients were given within the same month after being diagnosed with status cardiac pacemaker the last year.", "template": "what were the top three frequent diagnoses that patients were diagnosed within the same month after having been diagnosed with status cardiac pacemaker last year?", "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 = 'status cardiac pacemaker' ) 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.icd9_code, diagnoses_icd.charttime from diagnoses_icd join admissions on diagnoses_icd.hadm_id = admissions.hadm_id where 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') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "status cardiac pacemaker"}, "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": ["rel-year-last", "", "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:rel-year-last]?", "department": "['physician', 'insurance_review']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "0cd93e4cb17a7defd6324021"}, {"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"}, {"db_id": "mimic_iii", "question": "what were the top three most common procedures that were ordered until 3 years ago?", "template": "what were the top three frequent procedures until 3 year ago?", "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 datetime(procedures_icd.charttime) <= datetime(current_time,'-3 year') 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": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent procedures [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "bd5d597086275b94e5467629"}, {"db_id": "mimic_iii", "question": "what are the four most frequently ordered treatments in the previous year?", "template": "what were the top four frequent procedures last year?", "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 datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') 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": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6147371355e76f9c0e65b63d"}, {"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"}, {"db_id": "mimic_iii", "question": "get me the top four most common treatments during this year?", "template": "what are the top four frequent procedures this year?", "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 datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') 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": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "a7fba8814c4a952c05f021ae"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "until 1 year ago, what are the five frequently ordered treatments for patients with age 40s?", "template": "what were the top five frequent procedures of patients aged 40s until 1 year ago?", "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 datetime(procedures_icd.charttime) <= datetime(current_time,'-1 year') group by procedures_icd.icd9_code ) as t1 where t1.c1 <= 5 )", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent procedures of patients aged [age_group] [time_filter_global1]?", "t_tag": ["rel-year-until", "", "", "", ""], "o_tag": ["40s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent procedures of patients aged [age_group:40s] [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "efb8ccdb83f46403948f58ce"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what were the five most commonly performed procedures for patients who had received parent infus nutrit sub previously within the same month, until 1 year ago?", "template": "what were the top five frequent procedures that patients received within the same month after having received a parent infus nutrit sub procedure until 1 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, 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 = 'parent infus nutrit sub' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-1 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,'-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') group by t2.icd9_code ) as t3 where t3.c1 <= 5 )", "value": {"procedure_name": "parent infus nutrit sub"}, "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": ["rel-year-until", "", "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 received a {procedure_name} procedure [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "65f4d32eb09dbf25067377ce"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "give me the top four most frequent treatments that patients took within the same month after receiving packed cell transfusion until 1 year ago.", "template": "what were the top four frequent procedures that patients received within the same month after having received a packed cell transfusion procedure until 1 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, 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 = 'packed cell transfusion' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-1 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,'-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') group by t2.icd9_code ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "packed cell transfusion"}, "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": ["rel-year-until", "", "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:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "8fb9ff01f424efc6e0e1ff90"}, {"db_id": "mimic_iii", "question": "which are the four most frequently given procedures for patients who were diagnosed with fall nos previously within the same hospital visit during this year?", "template": "what are the top four frequent procedures that patients received within the same hospital visit after having been diagnosed with fall nos this year?", "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, 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 = 'fall nos' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) as t1 join ( select admissions.subject_id, procedures_icd.icd9_code, procedures_icd.charttime, admissions.hadm_id from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 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 <= 4 )", "value": {"diagnosis_name": "fall 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": ["rel-year-this", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent procedures that patients received [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-this]?", "department": "['nursing']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "3cfe1a4b5dffce974b6eded7"}, {"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"}, {"db_id": "mimic_iii", "question": "among patients who were diagnosed with routine circumcision during a year before, what are the top three most frequent procedures that followed afterwards within 2 months?", "template": "what were the top three frequent procedures that patients received within 2 month after having been diagnosed with routine circumcision last year?", "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 = 'routine circumcision' ) 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.icd9_code, procedures_icd.charttime from procedures_icd join admissions on procedures_icd.hadm_id = admissions.hadm_id where 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') group by t2.icd9_code ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "routine circumcision"}, "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-last", "", "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:rel-year-last]?", "department": "['nursing']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "df9e70b17b1842dd6240add6"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what were the top four most commonly prescribed medications until 3 years ago?", "template": "what were the top four frequently prescribed drugs until 3 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,'-3 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-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "179adc2533dbd5f9a4c51bf0"}, {"db_id": "mimic_iii", "question": "last year, what are the five most frequently prescribed drugs?", "template": "what were the top five frequently prescribed drugs last year?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') group by prescriptions.drug ) as t1 where t1.c1 <= 5", "value": {}, "q_tag": "what are_verb the top [n_rank] frequently prescribed drugs [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c13e14eaa3d39853c26a4047"}, {"db_id": "mimic_iii", "question": "what are the four most commonly prescribed medications the last year?", "template": "what were the top four frequently prescribed drugs last year?", "query": "select t1.drug from ( select prescriptions.drug, dense_rank() over ( order by count(*) desc ) as c1 from prescriptions where datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 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-last", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "5ed56375d15f8f0e3ea55431"}, {"db_id": "mimic_iii", "question": "retrieve the top four most frequently prescribed medications until 4 years ago?", "template": "what were the top four frequently prescribed drugs until 4 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,'-4 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-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "b27ada721c588fe977902a63"}, {"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"}, {"db_id": "mimic_iii", "question": "tell me what are the top five most commonly prescribed drugs for patients with 50s the previous year?", "template": "what were the top five frequently prescribed drugs of patients aged 50s last year?", "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 50 and 59 ) and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 year') 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": ["rel-year-last", "", "", "", ""], "o_tag": ["50s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs of patients aged [age_group:50s] [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "5d5e12867d4bc70ffb41c5fe"}, {"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"}, {"db_id": "mimic_iii", "question": "get me the top four most frequently prescribed drugs for patients 60 or above during this year?", "template": "what are the top four frequently prescribed drugs of patients aged 60 or above this year?", "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 datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-0 year') 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": ["rel-year-this", "", "", "", ""], "o_tag": ["60 or above", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequently prescribed drugs of patients aged [age_group:60 or above] [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "medium", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d7b9a7ca12d9cda9d144bfd4"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "among patients who were prescribed heparin crrt what were the five most frequently ordered drugs at the same time last year?", "template": "what were the top five frequent prescribed drugs for patients who were also prescribed heparin crrt at the same time last year?", "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 = 'heparin crrt' and datetime(prescriptions.startdate,'start of year') = datetime(current_time,'start of year','-1 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,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 <= 5", "value": {"drug_name": "heparin crrt"}, "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": ["rel-year-last", "", "within-same", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent prescribed drugs for patients who were also prescribed {drug_name} [time_filter_within:within-same] [time_filter_global1:rel-year-last]?", "department": "['physician']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "dcbbcc2423d9ef6d7bc3ab07"}, {"db_id": "mimic_iii", "question": "for patients that were prescribed with lithium carbonate sr (lithobid), what are the four most commonly ordered drugs at the same time, until 1 year ago?", "template": "what were the top four frequent prescribed drugs for patients who were also prescribed lithium carbonate sr (lithobid) at the same time until 1 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 = 'lithium carbonate sr (lithobid)' and datetime(prescriptions.startdate) <= datetime(current_time,'-1 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,'-1 year') ) 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": "lithium carbonate sr (lithobid)"}, "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": ["rel-year-until", "", "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:rel-year-until]?", "department": "['physician']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "c18cead9c65babd331e976c8"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the four most frequent medications that patients were prescribed with within the same hospital visit after receiving peripheral nerve graft last year?", "template": "what were the top four frequently prescribed drugs that patients were prescribed within the same hospital visit after having received a peripheral nerve graft procedure last year?", "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 = 'peripheral nerve graft' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 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 t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 4", "value": {"procedure_name": "peripheral nerve graft"}, "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": ["rel-year-last", "", "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 received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "d57473bba519bd6ee64cc2fa"}, {"db_id": "mimic_iii", "question": "what are the three commonly prescribed drugs for patients that received closed bronchial biopsy previously in the same hospital visit, during this year?", "template": "what are the top three frequently prescribed drugs that patients were prescribed within the same hospital visit after having received a closed bronchial biopsy procedure this year?", "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 = 'closed bronchial biopsy' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) 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 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 t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"procedure_name": "closed bronchial biopsy"}, "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": ["rel-year-this", "", "within-hosp", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that patients were prescribed [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "aa8452fb6fd24cd80818d7d5"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "this year, what are the top three most frequent drugs prescribed during the same hospital visit to the patients aged 60 or above after being diagnosed with exam-clincal trial?", "template": "what are the top three frequently prescribed drugs that patients aged 60 or above were prescribed within the same hospital visit after having been diagnosed with exam-clincal trial this year?", "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 = 'exam-clincal trial' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 year') ) 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.age >= 60 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 t1.hadm_id = t2.hadm_id group by t2.drug ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "exam-clincal trial"}, "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": ["rel-year-this", "", "within-hosp", "", ""], "o_tag": ["60 or above", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequently prescribed drugs that patients aged [age_group:60 or above] were prescribed [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d80e697c4dc340562818b0ad"}, {"db_id": "mimic_iii", "question": "what are the five most frequently prescribed medications within the same month to the patients aged 30s after they have been diagnosed with chf nos during the last year?", "template": "what were the top five frequently prescribed drugs that patients aged 30s were prescribed within the same month after having been diagnosed with chf nos last year?", "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 datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 30 and 39 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') 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 aged [age_group] were prescribed [time_filter_within] after having been diagnosed with {diagnosis_name} [time_filter_global1]?", "t_tag": ["rel-year-last", "", "within-month", "", ""], "o_tag": ["30s", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequently prescribed drugs that patients aged [age_group:30s] were prescribed [time_filter_within:within-month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "9d7294d948a96b7f89a25be5"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the three most frequent laboratory test ordered in this year?", "template": "what are the top three frequent lab tests this year?", "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 datetime(labevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') 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": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent lab tests [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "89bfbc49b019c9689335862a"}, {"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"}, {"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"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what was the four most frequently taken lab tests until 3 years ago for patients 60 or above?", "template": "what were the top four frequent lab tests of patients aged 60 or above until 3 year ago?", "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 >= 60 ) and datetime(labevents.charttime) <= datetime(current_time,'-3 year') 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": ["rel-year-until", "", "", "", ""], "o_tag": ["60 or above", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests of patients aged [age_group:60 or above] [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "medium", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "750c0c75545629930c95e5a2"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the three most frequently ordered lab tests for patients who have been diagnosed with pure hyperglyceridemia earlier until 1 year ago during the same hospital visit?", "template": "what were the top three frequent lab tests that patients had within the same hospital visit after having been diagnosed with pure hyperglyceridemia until 1 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, 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 = 'pure hyperglyceridemia' ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-1 year') ) 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 where datetime(labevents.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.itemid ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "pure hyperglyceridemia"}, "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": ["rel-year-until", "", "within-hosp", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent lab tests that patients had [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c4379e0adc920c71bb03882a"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the five commonly ordered lab tests for patients who were diagnosed with tremor nec previously in the same hospital encounter, until 1 year ago?", "template": "what were the top five frequent lab tests that patients had within the same hospital visit after having been diagnosed with tremor nec until 1 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, 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 = 'tremor nec' ) and datetime(diagnoses_icd.charttime) <= datetime(current_time,'-1 year') ) 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 where datetime(labevents.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.itemid ) as t3 where t3.c1 <= 5 )", "value": {"diagnosis_name": "tremor nec"}, "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": ["rel-year-until", "", "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 been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "795ca83a7eb707b4a8ce3f09"}, {"db_id": "mimic_iii", "question": "what are the three most commonly given lab tests for patients who were diagnosed with reg enteritis, sm intest previously within 2 months, until 2 years ago?", "template": "what were the top three frequent lab tests that patients had within 2 month after having been diagnosed with reg enteritis, sm intest until 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, 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 = 'reg enteritis, sm intest' ) and datetime(diagnoses_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(t2.charttime) between datetime(t1.charttime) and datetime(t1.charttime,'+2 month') group by t2.itemid ) as t3 where t3.c1 <= 3 )", "value": {"diagnosis_name": "reg enteritis, sm intest"}, "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": ["rel-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent lab tests that patients had [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2437dcc29e000b9ae9d4a4e6"}, {"db_id": "mimic_iii", "question": "in a year before, what are the top four most frequent lab tests given to patients within the same hospital visit after being diagnosed with poisoning-methadone?", "template": "what were the top four frequent lab tests that patients had within the same hospital visit after having been diagnosed with poisoning-methadone last year?", "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, 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 = 'poisoning-methadone' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 where datetime(labevents.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 group by t2.itemid ) as t3 where t3.c1 <= 4 )", "value": {"diagnosis_name": "poisoning-methadone"}, "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": ["rel-year-last", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests that patients had [time_filter_within:within-hosp] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "81135fd4aa736b61d9143a2a"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "among patients who took rt heart angiocardiogram this year, what are the top four most frequent lab tests that followed in the same month?", "template": "what are the top four frequent lab tests that patients had within the same month after having received a rt heart angiocardiogram procedure this year?", "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 = 'rt heart angiocardiogram' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-0 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,'start of year') = datetime(current_time,'start of year','-0 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": "rt heart angiocardiogram"}, "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-this", "", "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-this]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "fd50c62c54a209caf9c174e5"}, {"db_id": "mimic_iii", "question": "for patients who were given heart countershock nec during the last year, what are the top four most frequent lab tests that followed afterwards during the same hospital encounter?", "template": "what were the top four frequent lab tests that patients had within the same hospital visit after having received a heart countershock nec procedure last year?", "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 = 'heart countershock nec' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 where datetime(labevents.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 group by t2.itemid ) as t3 where t3.c1 <= 4 )", "value": {"procedure_name": "heart countershock nec"}, "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-last", "", "within-hosp", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent lab tests that patients had [time_filter_within:within-hosp] after having received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "30cf9de62401f4641886465a"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the five most common cultures taken during this year?", "template": "what are the top five frequent specimens tested this year?", "query": "select t1.spec_type_desc from ( select microbiologyevents.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from microbiologyevents where datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-0 year') 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": ["rel-year-this", "", "", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens tested [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "170bd8a9bf5d8275d8685366"}, {"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"}, {"db_id": "mimic_iii", "question": "show me the top three most frequent specimens tested during the previous year?", "template": "what were the top three frequent specimens tested last year?", "query": "select t1.spec_type_desc from ( select microbiologyevents.spec_type_desc, dense_rank() over ( order by count(*) desc ) as c1 from microbiologyevents where datetime(microbiologyevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') group by microbiologyevents.spec_type_desc ) as t1 where t1.c1 <= 3", "value": {}, "q_tag": "what are_verb the top [n_rank] frequent specimens tested [time_filter_global1]?", "t_tag": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent specimens tested [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "e6c23453c9c68d0f8203e337"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the five specimen test most frequently ordered for patients who have been diagnosed with lupus erythematosus earlier within 2 months, the last year?", "template": "what were the top five frequent specimens that patients were tested within 2 month after having been diagnosed with lupus erythematosus last year?", "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 = 'lupus erythematosus' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 datetime(microbiologyevents.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') group by t2.spec_type_desc ) as t3 where t3.c1 <= 5", "value": {"diagnosis_name": "lupus erythematosus"}, "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-last", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens that patients were tested [time_filter_within:within-n_month] after having been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "543a169acb57ac7e5a0f2d30"}, {"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"}, {"db_id": "mimic_iii", "question": "a year before, what are the top three most commonly taken cultures for patients in the same hospital encounter after the diagnosis of acute kidney failure nec?", "template": "what were the top three frequent specimens that patients were tested within the same hospital visit after having been diagnosed with acute kidney failure nec last year?", "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 = 'acute kidney failure nec' ) and datetime(diagnoses_icd.charttime,'start of year') = datetime(current_time,'start of year','-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,'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 group by t2.spec_type_desc ) as t3 where t3.c1 <= 3", "value": {"diagnosis_name": "acute kidney failure 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": ["rel-year-last", "", "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 been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "bfa016f851311d5739ac13a8"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "what are the three commonly tested specimens for patients that received packed cell transfusion previously within the same month, until 2 years ago?", "template": "what were the top three frequent specimens that patients were tested within the same month after having received a packed cell transfusion procedure until 2 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, 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 = 'packed cell transfusion' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-2 year') ) 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 datetime(microbiologyevents.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.spec_type_desc ) as t3 where t3.c1 <= 3", "value": {"procedure_name": "packed cell transfusion"}, "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": ["rel-year-until", "", "within-month", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent specimens that patients were tested [time_filter_within:within-month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "28987979684c536e044cd57f"}, {"db_id": "mimic_iii", "question": "for patients who received spinal struct repair nec until 3 years ago, what are the top four most frequent specimens tested afterwards within 2 months?", "template": "what were the top four frequent specimens that patients were tested within 2 month after having received a spinal struct repair nec procedure until 3 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, 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 = 'spinal struct repair nec' ) and datetime(procedures_icd.charttime) <= datetime(current_time,'-3 year') ) 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 datetime(microbiologyevents.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.spec_type_desc ) as t3 where t3.c1 <= 4", "value": {"procedure_name": "spinal struct repair nec"}, "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": ["rel-year-until", "", "within-n_month", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent specimens that patients were tested [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "1badadc20e433aa6949e4579"}, {"db_id": "mimic_iii", "question": "the previous year, what are the top five most frequently taken specimens for patients within 2 months after receiving ins drug-elut coronry st?", "template": "what were the top five frequent specimens that patients were tested within 2 month after having received a ins drug-elut coronry st procedure last year?", "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 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 = 'ins drug-elut coronry st' ) and datetime(procedures_icd.charttime,'start of year') = datetime(current_time,'start of year','-1 year') ) 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 datetime(microbiologyevents.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') group by t2.spec_type_desc ) as t3 where t3.c1 <= 5", "value": {"procedure_name": "ins drug-elut coronry st"}, "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": ["rel-year-last", "", "within-n_month", "", ""], "o_tag": ["", "", "", "five", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:five] frequent specimens that patients were tested [time_filter_within:within-n_month] after having received a {procedure_name} procedure [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "n/a", "para_type": "human", "is_impossible": false, "split": "valid", "id": "6779b2c03c17659107ea0e07"}, {"db_id": "mimic_iii", "question": "what were the top three common input events until 1 year ago?", "template": "what were the top three frequent intake events until 1 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,'-1 year') 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": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "three", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:three] frequent intake events [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "c69201366f33024e8fee4765"}, {"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"}, {"db_id": "mimic_iii", "question": "show me the top four most common intakes until 1 year ago?", "template": "what were the top four frequent intake events until 1 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,'-1 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-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent intake events [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "d260486e09b6b863570ed243"}, {"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"}, {"db_id": "mimic_iii", "question": "show me the top four most frequent intake events this year?", "template": "what are the top four frequent intake events this year?", "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,'start of year') = datetime(current_time,'start of year','-0 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-this", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent intake events [time_filter_global1:rel-year-this]?", "department": "['-']", "importance": "high", "para_type": "human", "is_impossible": false, "split": "valid", "id": "2013419294289fba25c0a413"}, {"db_id": "mimic_iii", "question": "what have been the top four most common output events the last year?", "template": "what were the top four frequent output events last year?", "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 datetime(outputevents.charttime,'start of year') = datetime(current_time,'start of year','-1 year') 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": ["rel-year-last", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent output events [time_filter_global1:rel-year-last]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "dcdc2c0854820137aab0592a"}, {"db_id": "mimic_iii", "question": "what's the top four most common output events until 2 years ago?", "template": "what were the top four frequent output events until 2 year ago?", "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 datetime(outputevents.charttime) <= datetime(current_time,'-2 year') 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": ["rel-year-until", "", "", "", ""], "o_tag": ["", "", "", "four", "", "", "", "", ""], "tag": "what are_verb the top [n_rank:four] frequent output events [time_filter_global1:rel-year-until]?", "department": "['-']", "importance": "high", "para_type": "machine", "is_impossible": false, "split": "valid", "id": "9d89a7133f09c05ea5edda02"}, {"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"}, {"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"}, {"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"}, {"db_id": "mimic_iii", "question": "does patient 64983 have an appointment for any test today?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "49e135a7eeb818ce3d0bda48"}, {"db_id": "mimic_iii", "question": "tell me what medicine to use to relieve a headache in hypertensive patients.", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "691ba68252eca9b19add7228"}, {"db_id": "mimic_iii", "question": "does patient 23070 have overseas travel history?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "d9fd8c2cea086cdb80a90f7c"}, {"db_id": "mimic_iii", "question": "does patient 83038 have a family history of any disease?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "7b2a46178f48daa166bc2a75"}, {"db_id": "mimic_iii", "question": "when does patient 8016's influenza quarantine end?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "97285c777de645d105094fc2"}, {"db_id": "mimic_iii", "question": "when is the earliest next visit of patient 8773 for other departments?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "4825a8a409b6c9b49270713b"}, {"db_id": "mimic_iii", "question": "what is the\b reimbursement standard for drug?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "03367257355adfb033ae4e80"}, {"db_id": "mimic_iii", "question": "what are the side effects of long-term administration of insulin?", "query": "null", "department": ["insurance review"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "72ea7845c0333aac84dc5d7e"}, {"db_id": "mimic_iii", "question": "what is dr. turner's outpatient schedule today?", "query": "null", "department": ["insurance review"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "e5bd6548260098b2713987f3"}, {"db_id": "mimic_iii", "question": "what are the precautions after the spinal canal explor nec procedure?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "4f57cb6938594d73aa7f224e"}, {"db_id": "mimic_iii", "question": "what is the phone number of patient 14203?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "58052543c8b05bb788b8386d"}, {"db_id": "mimic_iii", "question": "what is the age restriction of sodium citrate/citric acid?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "9747af1775857bbeab36a8fc"}, {"db_id": "mimic_iii", "question": "what is the code that corresponds to icd-11 for ac dvt/emb distl low ext in icd-10?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "85251f8c170ec0ab25eb290f"}, {"db_id": "mimic_iii", "question": "what test is patient 15447 going to have today?", "query": "null", "department": ["infection control"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "875d9a9939431d9f801a57e2"}, {"db_id": "mimic_iii", "question": "does patient 10211 have an appointment in other department?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "b70b23c608b241109864d74a"}, {"db_id": "mimic_iii", "question": "does carvedilol have side effects?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "a323dd3754c6ac08dce9ab88"}, {"db_id": "mimic_iii", "question": "which month of the year is antihistamines most prescribed?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "54b73eb51d828ef158ee2c2f"}, {"db_id": "mimic_iii", "question": "does patient 12718 have any remaining test before hospital discharge?", "query": "null", "department": ["insurance review"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "d334fa837447bdca24a82b41"}, {"db_id": "mimic_iii", "question": "what is the address of patient 9566?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "49b3ce1535499be52d8ad089"}, {"db_id": "mimic_iii", "question": "what are the results of patient 92788's ct scan?", "query": "null", "department": ["health records"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "854b3401763aee23d88620d4"}, {"db_id": "mimic_iii", "question": "how long did proximal gastrectomy take for patient 366?", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "92d33b6a0dd1742e3cecd051"}, {"db_id": "mimic_iii", "question": "what drug can be prescribed for patients diagnosed with tobacco use disorder?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "1c093313665e0a7178522765"}, {"db_id": "mimic_iii", "question": "what are the the single rooms that are available now?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "830c2701fcf0663ce834d374"}, {"db_id": "mimic_iii", "question": "what is the protocol of the anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "e55625a902df80a4dec0dd32"}, {"db_id": "mimic_iii", "question": "tell me all the tests that patient 54281 took in other department.", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "91201a403db0ec0cdbfbe5a9"}, {"db_id": "mimic_iii", "question": "tell me all the prescriptions that patient 10539 received in the other department.", "query": "null", "department": ["physician"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "3c4a70180677d3160f150998"}, {"db_id": "mimic_iii", "question": "what is the checklist before the therapeu plasmapheresis procedure?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "6d0e8046e4803f7cdc34bc07"}, {"db_id": "mimic_iii", "question": "has patient 31854 completed a ct scan agreement?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "8c77b3ae432097fd1fc154c9"}, {"db_id": "mimic_iii", "question": "is the x-ray result of 23475 ready?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "94fd4b3b64ea1edb904d1968"}, {"db_id": "mimic_iii", "question": "does patient 31506 get x-ray readings?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "cabb5953d9b7639b79c39f2b"}, {"db_id": "mimic_iii", "question": "what are the results of patient 97330's pet-ct examination?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "c85180c3284679b290c08a92"}, {"db_id": "mimic_iii", "question": "has patient 9474 ever experienced any side effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "9d9bff7a96e4c0ef942c9fcf"}, {"db_id": "mimic_iii", "question": "what antibiotic is given to patient 20166?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "0cafaae9233d9cbe3ed0cefc"}, {"db_id": "mimic_iii", "question": "does patient 433 have any procedure appointment today?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "6ca3cf325f101822bc40d1f3"}, {"db_id": "mimic_iii", "question": "what is the phone number of patient 74523's guardian?", "query": "null", "department": ["nursing"], "para_type": "human", "is_impossible": true, "split": "valid", "id": "5b94df4e90429541df96c24e"}, {"db_id": "mimic_iii", "question": "what is the best medicine to relieve a headache in hypertensive patients", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "43d97f0222d72c4f9d4d0e3a"}, {"db_id": "mimic_iii", "question": "what medicine to take to relieve a headache in hypertension patients?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "623cb0c0669e682042e8db7f"}, {"db_id": "mimic_iii", "question": "please tell me what medicine to use in hypertensive patients to relieve a headache.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e02331d045f43f8bae724a68"}, {"db_id": "mimic_iii", "question": "what's a good medicine to use for a headache in the hypertensive person?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c38ab452eccde9e322fb78e4"}, {"db_id": "mimic_iii", "question": "how should i relieve a headache in hypertensive patients?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "bd01ca9a07a16c5df2542d43"}, {"db_id": "mimic_iii", "question": "please describe what medication you might be able to use to relieve a headache in hypertensive patients.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b7dafb02bc9e3f8d074783b7"}, {"db_id": "mimic_iii", "question": "would you please tell me what medicine to use to relieve the headache in hypertensive patients?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a97220e5b8b1b331e6d51b5a"}, {"db_id": "mimic_iii", "question": "if u have headaches...what medicine should i use in hypertensive patients?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "af69ee990c3cb2e34914cf26"}, {"db_id": "mimic_iii", "question": "can you explain to me what medication you may be using to relieve a headache in hypertensive people?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "56abccb67305ed6a859be43e"}, {"db_id": "mimic_iii", "question": "tell me what to use to relieve a headache in patients suffering from hypertension.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8d427fd3c270783ce963cc28"}, {"db_id": "mimic_iii", "question": "tell me what kind of medication to use to relieve a headache in hypertensive patients", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "40bf0feb0830f9d92f94ecf5"}, {"db_id": "mimic_iii", "question": "tell me what medicine to use in hypertensive patients to relieve a headache", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "29db0faf6e09ee925b0b5bd7"}, {"db_id": "mimic_iii", "question": "do you recommend any medicine to relieve a headache in hypertensive people?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ce43ce97164cd69186eb8138"}, {"db_id": "mimic_iii", "question": "i am trying to figure out what medicine to use to relieve a headache in hypertensive patients.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6b3ceb0eb60a866e2bbbdcdb"}, {"db_id": "mimic_iii", "question": "does patient 6440 have a history of travelling overseas?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "cc8f5e9e4f1067ed20c77116"}, {"db_id": "mimic_iii", "question": "does patient 54386 have any overseas experience?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "50af809f4d2ebb0e763676cf"}, {"db_id": "mimic_iii", "question": "does patient 46528 have a history of overseas travel?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6b95faf747278ca1c3e70745"}, {"db_id": "mimic_iii", "question": "does patient 6170 have previous overseas travel?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "292951f6b9bd7909f98f5eab"}, {"db_id": "mimic_iii", "question": "does patient 73693 have any travel history abroad?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9ef7f2f51d18a67fbb133974"}, {"db_id": "mimic_iii", "question": "do you know patient 9566 went to another country?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "55fee226f4668c3c72813ef7"}, {"db_id": "mimic_iii", "question": "does patient 49176 have experience travelling abroad?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7fd1948b09944e24daa2a8aa"}, {"db_id": "mimic_iii", "question": "does patient 6921 have an overseas history of travel?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e5ee4337ab6b87089b6b6e79"}, {"db_id": "mimic_iii", "question": "does patient 5142 have a travel history from overseas?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6dc0fbe3f3c65667d4635bde"}, {"db_id": "mimic_iii", "question": "does patient 3125 have traveled abroad?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a2f51dea985054d4482a2a73"}, {"db_id": "mimic_iii", "question": "does patient 57050 have some overseas travel history.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "33ad5f26bcf77232a4e71da7"}, {"db_id": "mimic_iii", "question": "did patient 73713 have overseas travel history?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e87efcdcb8d74fec01f53ad6"}, {"db_id": "mimic_iii", "question": "does patient 57050 have a past overseas travel experience?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "342445bf777840e3604bd8fa"}, {"db_id": "mimic_iii", "question": "does patient 65309 have a trip history overseas?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "cf3414aeb269c7de1d5de3ed"}, {"db_id": "mimic_iii", "question": "does patient 59275 have a travel history to another country?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6670011dfc8fa842e09dca04"}, {"db_id": "mimic_iii", "question": "is patient 85169 to have had a travel history overseas?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "88667893c1411cf108246661"}, {"db_id": "mimic_iii", "question": "does patient 70206 have a traveling history abroad?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8102ac4503c9714e7c151a76"}, {"db_id": "mimic_iii", "question": "does patient 12410 have experience with overseas travel?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4ebfb78b77f705129db7d86b"}, {"db_id": "mimic_iii", "question": "tell me about all the medications that patient 99080 received in the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0d0b11ce9cac0821fefb553e"}, {"db_id": "mimic_iii", "question": "please tell me the exact prescriptions patient 4269 received from the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "123c105eb38c550bbf970e5a"}, {"db_id": "mimic_iii", "question": "provide me with all of the prescriptions received by patient 16879 in another department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d7c5f51cdf563ee464174a70"}, {"db_id": "mimic_iii", "question": "tell me all of the prescriptions patient 2518 was given in the other department", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "924aa096f6777e80cf6f07b1"}, {"db_id": "mimic_iii", "question": "describe all prescriptions that patient 54894 received in the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "803d31305146a003ffca62b1"}, {"db_id": "mimic_iii", "question": "tell me all the prescriptions that patient 83062 received at the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "417b234ef98ace3c6881d30f"}, {"db_id": "mimic_iii", "question": "please inform me of all the prescriptions patient 8888 received in another department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ef9a0baf5855464ef6fed3da"}, {"db_id": "mimic_iii", "question": "i would like to know all of the prescriptions patient 21003 received at the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d9344daaa13a86479eea9200"}, {"db_id": "mimic_iii", "question": "tell me all the prescriptions that patient 13054 received at the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "af0dd80ea07f3520357c08a5"}, {"db_id": "mimic_iii", "question": "tell me the prescriptions patient 88180 has received from the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0a39ff985b511c669b26a5b1"}, {"db_id": "mimic_iii", "question": "what is the reimbursement model for drug?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5c302d71f6fb8054ecc9a157"}, {"db_id": "mimic_iii", "question": "what's the reimbursement standard for pharmaceuticals?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "473b028789099358408af8a6"}, {"db_id": "mimic_iii", "question": "tell me the reimbursement standard for a drug?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4776258e0c283c8f02455a30"}, {"db_id": "mimic_iii", "question": "what is the standard amount of reimbursement for a drug?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5a1423786a159d2bf2a6d7e7"}, {"db_id": "mimic_iii", "question": "what side effects is longterm administration of insulin?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "224e686574e41ce0b3e89719"}, {"db_id": "mimic_iii", "question": "was are the side effects of long term prednisolone acetate 0.12% ophth. susp. treatment?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5b8c54a6f377c624622c3da9"}, {"db_id": "mimic_iii", "question": "what is the impact of long term use of furosemide?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "eaaf343a16714e8466572390"}, {"db_id": "mimic_iii", "question": "what are the side effects of potassium chl 20 meq / 1000 ml d5w over a long period of time?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3c4f92021c2535a01eab66de"}, {"db_id": "mimic_iii", "question": "does tacrolimus give you side effects?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3a828cc47c2b22f1bea2d84e"}, {"db_id": "mimic_iii", "question": "do you think that phenylephrine hcl has side effects?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e27960af61262c52fcac4dd6"}, {"db_id": "mimic_iii", "question": "what are side effects of long-term use of sirolimus?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0730fcad66f25e6a9ed5f1b4"}, {"db_id": "mimic_iii", "question": "do you think patient 25723 has any procedure appointment today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1e2dfc4ef935ef79cd721652"}, {"db_id": "mimic_iii", "question": "tell me the procedure that patient 3369 is scheduled to have today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0bcc2c480836b292f72d7803"}, {"db_id": "mimic_iii", "question": "does patient 5142 have an appointment for surgery today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c61dc432f014828838b22367"}, {"db_id": "mimic_iii", "question": "do you see any procedures scheduled for patient 4288 today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "64f4552d009d43c1b2264e0a"}, {"db_id": "mimic_iii", "question": "are you able to find a procedure appointment for patient 63849 for today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9abeb1df815c238ae852dfaf"}, {"db_id": "mimic_iii", "question": "does patient 31854 have any appointment to any surgery today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3b78695ed9a83c8a3e444602"}, {"db_id": "mimic_iii", "question": "does patient 9983 have any appointment today for any procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0cd111d38bc5b708cb6d1d61"}, {"db_id": "mimic_iii", "question": "what procedure has patient 78076 scheduled for today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6aaec1df2c1a700494462bd9"}, {"db_id": "mimic_iii", "question": "what is the cell telephone number of patient 3369?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b160fa53b1e3445bd8c20378"}, {"db_id": "mimic_iii", "question": "which is the phone number of patient 18678?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0c1d2523431591bf2e261d55"}, {"db_id": "mimic_iii", "question": "can you please give me the phone number of patient 2957?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3b18551a89b6d5cb077c0afa"}, {"db_id": "mimic_iii", "question": "tell me the number of patient 25814?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a367ea940d2c15ccf14f5ff2"}, {"db_id": "mimic_iii", "question": "the phone number of patient 30235 is", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "cf87712ec66edf9549fd726d"}, {"db_id": "mimic_iii", "question": "tell me the number of patient 13703?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "daad0836414bbbf31df673a2"}, {"db_id": "mimic_iii", "question": "what is the age restriction on heparin (hemodialysis)?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a85001020fd2455e13856d0e"}, {"db_id": "mimic_iii", "question": "what is the age limit of the drug emtricitabine?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a742ea513b62cac50e64948d"}, {"db_id": "mimic_iii", "question": "i want to know what is the age limit of silibinin (*ind*).", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "73aba8cea4bd919a08946375"}, {"db_id": "mimic_iii", "question": "the age limit for the morphine sulfate?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "eaf76b3c4c2b3913fb31d982"}, {"db_id": "mimic_iii", "question": "tell me the age restriction of dextrose 5%? why?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "061f2758671406e40899e533"}, {"db_id": "mimic_iii", "question": "what code is associated with icd-11 for helicobacter pylori in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "400c562a580ac963dcb56886"}, {"db_id": "mimic_iii", "question": "what is the code in icd-10 that corresponds to icd-11 for voice/resonance dis nec?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "fc0438fa2180af52f23fd8a4"}, {"db_id": "mimic_iii", "question": "w/is the code that corresponds to icd-11 for stomatits & mucosits nec in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4e510522eee6951d624f4848"}, {"db_id": "mimic_iii", "question": "can anyone help me determine the code that corresponds to icd-11 and for preterm nec 2000-2499g in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "cd3b00430231d6f2e38babea"}, {"db_id": "mimic_iii", "question": "tell me the icd-11 code for tobacco use disorder in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3c9b8bcb8baef38b3993c57e"}, {"db_id": "mimic_iii", "question": "whats the code that works with icd-11 mal neo lower 3rd esoph in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a769431d4e6a8aba4f4f41b8"}, {"db_id": "mimic_iii", "question": "is there a code that matches icd-11 for male gen inflam dis nec in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8b0e99d9100227c54497af06"}, {"db_id": "mimic_iii", "question": "what is the code in icd-11 for klebsiella pneumoniae in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "eeddb66bd362ab230b97c4ca"}, {"db_id": "mimic_iii", "question": "what is the code in icd-11 for renal & ureteral dis nos in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2b71d85bd5a267d408f05a24"}, {"db_id": "mimic_iii", "question": "and how to find the code that shows icd-11 for mitral valve disorder in icd-10.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "16ce806b1019baaf19939e31"}, {"db_id": "mimic_iii", "question": "what is the code which corresponds to the icd-11 for cerebral edema in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7face62e562401f052342432"}, {"db_id": "mimic_iii", "question": "tell me the icd-11 code for fetal/neonatal jaund nos in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d56304aa1f40f89e9e78061b"}, {"db_id": "mimic_iii", "question": "what code is associated with icd-11 for aphasia in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "bad933add34026f90b110c32"}, {"db_id": "mimic_iii", "question": "what is the code that corresponds in icd-10 to icd-11 for delirium d/t other cond?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "dd1896d6de28e8c771098737"}, {"db_id": "mimic_iii", "question": "what the code that refers to icd-11 for senile dementia uncomp in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "68a4432870000256ab9de91d"}, {"db_id": "mimic_iii", "question": "what is the code which is assigned to icd-11, to referring to legal blindness-usa def that occurs in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f10b9469c3bc6f64eb5773bc"}, {"db_id": "mimic_iii", "question": "tell me the icd-11 code for candidias urogenital nec in icd-10?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "df0c266ad3a903971c6916cc"}, {"db_id": "mimic_iii", "question": "what type of test is patient 55360 likely to undergo today?", "query": "null", "department": ["infection control"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "122e30a6bcfff9943ae51587"}, {"db_id": "mimic_iii", "question": "does patient 366 have any remaining tests before being discharged from the hospital?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a2c46bc4356de7b906fecb95"}, {"db_id": "mimic_iii", "question": "how test is patient 5828 going to have today?", "query": "null", "department": ["infection control"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1867875d41b6b12bd66bbf99"}, {"db_id": "mimic_iii", "question": "is patient 7165 available for a test today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d13edd74247f1d5cd9ac344d"}, {"db_id": "mimic_iii", "question": "does patient 7742 have any remaining tests before discharge?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ff2ccc5caf44488b9b0be88f"}, {"db_id": "mimic_iii", "question": "does patient 69761 still have any tests before discharged from the hospital?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b17fd151d64dbd7ffb8d0663"}, {"db_id": "mimic_iii", "question": "what tests will patient 73713 have today?", "query": "null", "department": ["infection control"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5176c26e6e348590d4cda3dd"}, {"db_id": "mimic_iii", "question": "? does patient 23436 have any remaining test before hospital discharge?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5154c0a839b0acaa4c302981"}, {"db_id": "mimic_iii", "question": "do you know if patient 51858 has an appointment today for any test.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4dd4b766b0efc2a9d61f768a"}, {"db_id": "mimic_iii", "question": "which test will patient 83062 be subjected to today?", "query": "null", "department": ["infection control"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5f0b78c40147829c493bfae3"}, {"db_id": "mimic_iii", "question": "does patient 17667 have any tests left to do before discharge?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4d0f28051fb0eb1b2ace6be9"}, {"db_id": "mimic_iii", "question": "do patient 19894 have a appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e85adbae455b206d06d298ba"}, {"db_id": "mimic_iii", "question": "but does patient 11426 have an appointment in other department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "626e6b457469c84bbcd08a35"}, {"db_id": "mimic_iii", "question": "is that patient 15945 has an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7c555071b6308b5026211349"}, {"db_id": "mimic_iii", "question": "is patient 15821 having an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "19fd3153a1906dec62968f96"}, {"db_id": "mimic_iii", "question": "does an appointment have been had by patient 17462 in other department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "43cd552e670c7e467203e251"}, {"db_id": "mimic_iii", "question": "has patient 52018 an appointment at the other department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6e332734f57d56d30a697d56"}, {"db_id": "mimic_iii", "question": "is that patient 5849 has an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "60f5ab5f96d05cec671f2eac"}, {"db_id": "mimic_iii", "question": "has patient 23224 an appointment in another hospital department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "64edd6e9826e5faf17293a00"}, {"db_id": "mimic_iii", "question": "have patient 14990 an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "135821c5d460d79899fe88e3"}, {"db_id": "mimic_iii", "question": "does patient 69761 have a scheduled appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a9984dc70b22fbd1fd853bc2"}, {"db_id": "mimic_iii", "question": "does patient 23436 have a appointment at another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8afbbafd8ac17495f9e9a634"}, {"db_id": "mimic_iii", "question": "is patient 12726 scheduled to have an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a6155134c679d757976c7377"}, {"db_id": "mimic_iii", "question": "has patient 17944 arranged an appointment with another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8af88be13ad025e0a74ffb54"}, {"db_id": "mimic_iii", "question": "has patient 2127 had an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e5847718ed01eecf215b5a64"}, {"db_id": "mimic_iii", "question": "do you think patient 31615 has an appointment in another department?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "34b506678d82a68d244a6a87"}, {"db_id": "mimic_iii", "question": "what month of the year is the antihistamine the most prescribed", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d2c5efda919a9909357dff6a"}, {"db_id": "mimic_iii", "question": "which month of the year is prescribed for antihistamines most frequently?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "30be2fa32e93c6ab1bb4391a"}, {"db_id": "mimic_iii", "question": "what month of the year do u think antihistamins are most prescribed?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d4c04053cc3d409f786cd49e"}, {"db_id": "mimic_iii", "question": "what month of the year is a prescription for antihistamines most prescribed?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e44c0e138037dffbb861bfa0"}, {"db_id": "mimic_iii", "question": "which month of the year antihistamines are most prescribed?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4d2425b18cf351aaecb70bb8"}, {"db_id": "mimic_iii", "question": "what month of the year does antihistamines most commonly be prescribed?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "44bb818a1fb09e24bea65f3d"}, {"db_id": "mimic_iii", "question": "which month of the year is the most prescribed antihistamines for?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4d88e5ab6ca9d046a6cb9433"}, {"db_id": "mimic_iii", "question": "what month of the year is prescribed for the most antihistamines?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "be0d9b8ea5e9fd68abd0a014"}, {"db_id": "mimic_iii", "question": "which month of the year is the most commonly prescribed antihistamines?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "fe3d15c05c89bdbd037e4bcc"}, {"db_id": "mimic_iii", "question": "what month of the year are the most antihistamines prescribed?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0f34c52072204ed9a6148b9d"}, {"db_id": "mimic_iii", "question": "what month of the year is most prescribed antihistamines?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b5cf48a6846783f051108947"}, {"db_id": "mimic_iii", "question": "what month of the year does antihistamines the most prescribe?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "233612ba4e442c8693eb4a4e"}, {"db_id": "mimic_iii", "question": "do you think patient 14203 may have a family history of any diseases?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2c45cbfd1d1495239c5f5670"}, {"db_id": "mimic_iii", "question": "is patient 20589 a person with a family history of any health problems?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e29f0d7d2b72c481aa93adf9"}, {"db_id": "mimic_iii", "question": "does patient 20000 have any inherited disease?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c1e596a5ba0ba6946549f512"}, {"db_id": "mimic_iii", "question": "is patient 23070 a person with a family history of any disease?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "358187a9b757a0fb94a275c7"}, {"db_id": "mimic_iii", "question": "has patient 7112 had a family history of a disease?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0c73df7f749029255e4f35f8"}, {"db_id": "mimic_iii", "question": "the x-ray result of patient_id is ready?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5fae37ceac4fa88d4f597a90"}, {"db_id": "mimic_iii", "question": "what's the result of patient 15447's ct scan?", "query": "null", "department": ["health records"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0f4d443cb3b8d3611ce36627"}, {"db_id": "mimic_iii", "question": "what about the results of patient 9983's ct scan.", "query": "null", "department": ["health records"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1f788dda5f0b9d287626f919"}, {"db_id": "mimic_iii", "question": "ist patient 32163 able to get x-ray readings?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6a7a9ad72eccfde91737d108"}, {"db_id": "mimic_iii", "question": "is ready the x-ray result of the patient_id?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "714cc56db1887e68f1f14ea5"}, {"db_id": "mimic_iii", "question": "whats the results of patient 1114's pet ct examination?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "39be257c27abd6c310a4cffc"}, {"db_id": "mimic_iii", "question": "what's the result of patient 66015's ct scan?", "query": "null", "department": ["health records"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "16180f463ee838417207a22d"}, {"db_id": "mimic_iii", "question": "i want to ask what are the results of patient 20066 petct examination?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6bbdda4d7a437ac52e5bad9a"}, {"db_id": "mimic_iii", "question": "how long did it take to get venous cath nec for patient 31854?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "709a30bca860d05383f70ac2"}, {"db_id": "mimic_iii", "question": "how long was temporary tracheostomy taking for patient 78131?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c5f7186b872bcc175e94e23e"}, {"db_id": "mimic_iii", "question": "how long took entral infus nutrit sub for patient 10855?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a5f974c50be491ae4b136407"}, {"db_id": "mimic_iii", "question": "what was the time it took for patient 14467 to undergo cv cath plcmt w guidance?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c3d658eaa95dbdddcae3ee55"}, {"db_id": "mimic_iii", "question": "what is the length of time patient 89875 had to undergo packed cell transfusion?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ea57ed98b43d29048c952113"}, {"db_id": "mimic_iii", "question": "what was the duration of the packed cell transfusion procedure for patient 9566?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "14f1622f9a417a7d48b49dc3"}, {"db_id": "mimic_iii", "question": "how long did patient 26286 have to undergo contr cerebr arteriogram?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9aa0883e9540e3f834767936"}, {"db_id": "mimic_iii", "question": "what was the total length of excise diaphragm lesion procedure for patient 594?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "bdd7c3d35815502b72513741"}, {"db_id": "mimic_iii", "question": "how long did patient 18457 receive below knee amputat nec?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "17110fcb4d781a4c2b5de817"}, {"db_id": "mimic_iii", "question": "what was the other myectomy time for patient 4718?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0bc0b6a5725672819836ead4"}, {"db_id": "mimic_iii", "question": "what was the time it took for patient 13528 to undergo c.a.t. scan of thorax?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "357b11ea9a879d1b394cea41"}, {"db_id": "mimic_iii", "question": "just a quick look closed bronchial biopsy but how long did it take for patient 28443??????", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "aacfcf2d253284878d7a3b7e"}, {"db_id": "mimic_iii", "question": "how long did it take to get spinal canal explor nec for patient 18877?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "91e63fa2cf5ea1da00119637"}, {"db_id": "mimic_iii", "question": "what was the duration of serum transfusion nec for patient 29540?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "35260f66a00852fde86f7118"}, {"db_id": "mimic_iii", "question": "what was the duration of the circumcision procedure for patient 3277?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "790fec9ae994b0df48d440ef"}, {"db_id": "mimic_iii", "question": "can you tell me what the drug can be prescribed for patients with esoph varice oth dis nos?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "18f1f9df643247e32e0324f4"}, {"db_id": "mimic_iii", "question": "what medication is prescribed for the patients diagnosed with atrial fibrillation?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f520c742dcbf213614b421d2"}, {"db_id": "mimic_iii", "question": "which drug can be prescribed for patients with dysthymic disorder diagnosed?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4801c51e81097f33f6120365"}, {"db_id": "mimic_iii", "question": "what is the appropriate drug to be prescribed to someone diagnosed with chf nos?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e21e629e15fc3f20f3d07daa"}, {"db_id": "mimic_iii", "question": "what type of medication can be prescribed for patients who have been diagnosed with obst def ren plv&urt nec?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ad2e3d1e99d6e2c2b3b0f186"}, {"db_id": "mimic_iii", "question": "active: what drug can be prescribed for patients diagnosed with bladder/urethra inj-clos?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9957fb02e681166b025794d8"}, {"db_id": "mimic_iii", "question": "is there a drug that could be prescribed to treat bilat bb block nec.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d57a039ac947cd48f10cc697"}, {"db_id": "mimic_iii", "question": "is there any prescription medication for patients diagnosed with traffic acc nos-pers nos?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c32730074afe9d77fff31be1"}, {"db_id": "mimic_iii", "question": "what medication can be prescribed to patients who are diagnosed with mitral valve disorder?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7f2a90f34b4fd0521766b3cb"}, {"db_id": "mimic_iii", "question": "what kind of drug can you prescribe to abn blood chemistry nec?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1a272368e147caceef6e3f3d"}, {"db_id": "mimic_iii", "question": "what medication should be prescribed to patients with glaucoma nos?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "23476ef124ae50c9dd4ca3d8"}, {"db_id": "mimic_iii", "question": "what medicine should be given to status cardiac pacemaker patients?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "296581be055ee722a168ef2e"}, {"db_id": "mimic_iii", "question": "what can be prescribed for the hyposmolality patient?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d1804a67e2b6c1925531f4ed"}, {"db_id": "mimic_iii", "question": "what kind of rooms are available right now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2b6fcb819cc07a6ecf7a5cb4"}, {"db_id": "mimic_iii", "question": "what are the single rooms which are now available?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3e394c13ab60210ad44f28e6"}, {"db_id": "mimic_iii", "question": "where are the single rooms out there now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "24963b0a0f3afeef0be9d75f"}, {"db_id": "mimic_iii", "question": "what's up with the single rooms now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6174630dc46dcf2a0b96a690"}, {"db_id": "mimic_iii", "question": "can you list the single rooms that are available today?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6fb8ed51be630207f1b3b6ea"}, {"db_id": "mimic_iii", "question": "list the single rooms that are available now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0765202e8550f5889b55e948"}, {"db_id": "mimic_iii", "question": "what about the single rooms which are now out there?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e63cd840ceb5c891aaa159b7"}, {"db_id": "mimic_iii", "question": "can you list the single rooms that are available for rent now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ba96ef29e76cefcafd105d48"}, {"db_id": "mimic_iii", "question": "what are the single rooms available?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "206ab144f49ca97d4b8e3652"}, {"db_id": "mimic_iii", "question": "what are the new single rooms?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ec394d2f96c17161676bf509"}, {"db_id": "mimic_iii", "question": "what kind of rooms are available now for singles?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1eec6e7ec6e338de0ca3ddd6"}, {"db_id": "mimic_iii", "question": "what about the single rooms out there now?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4e48c1457731ad5a6632c15e"}, {"db_id": "mimic_iii", "question": "what are the single rooms that are currently available?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b447d709e426373837ef541e"}, {"db_id": "mimic_iii", "question": "what antibiotic is prescribed to patient 18677?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4a05f68527f58ffeedb28171"}, {"db_id": "mimic_iii", "question": "what antibiotic is it given to patient 51577", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d15d105f15019326b62e2308"}, {"db_id": "mimic_iii", "question": "what kind of antibiotic is it given to patient 54390?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2b0e79d8db1967b544b97565"}, {"db_id": "mimic_iii", "question": "i want to know what the antibiotic is given to patient 40833", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "21a13bd37cd545a40e79726f"}, {"db_id": "mimic_iii", "question": "what antibiotic is given by patient 5887?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "35b3d7ab1058938cd4fcd3fb"}, {"db_id": "mimic_iii", "question": "tell me of the tests patient 57050 has taken in the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "45e9597956b890c6218151b1"}, {"db_id": "mimic_iii", "question": "tell me all the tests taken in the other department by patient 7698.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f894ab2089ff4a33f4a9f50c"}, {"db_id": "mimic_iii", "question": "tell me all the tests that were taken by patient 60219 in other departments.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0cd6a66750463711484fac1a"}, {"db_id": "mimic_iii", "question": "tell me all the tests that patient 808 took in other departments are explained by me", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "79282a69452599718d34684a"}, {"db_id": "mimic_iii", "question": ") tell me all the tests patient 15794 took in other departments.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "733102cf05628d1b62cb4458"}, {"db_id": "mimic_iii", "question": "tell me all of the tests that patient 9833 took at another department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "24bbf8e7e0387457c59d6fc2"}, {"db_id": "mimic_iii", "question": "tell me about all the tests that patient 65582 took in other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d9ac929544e8f4564a1fb384"}, {"db_id": "mimic_iii", "question": "inform me of all of the tests that patient 19987 took in another department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "586da4f0e07fda669c8fc92b"}, {"db_id": "mimic_iii", "question": "inform me of the tests that patient 95892 took in a different department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "55c0709e99f091d9ad2bc4cb"}, {"db_id": "mimic_iii", "question": "you may be able to share all of the tests patient 65582 took in another department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "8b81cf040eed7250ee9cbc1d"}, {"db_id": "mimic_iii", "question": "tell me the details of the tests performed by patient 23930 in the other department.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "834027a3c07275080275eced"}, {"db_id": "mimic_iii", "question": "just tell me the tests patient 29741 took in a different department", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "82248eef29e297ed6fb80c06"}, {"db_id": "mimic_iii", "question": "let me know all the tests that patient 49176 took in the other department", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6899c8d2a5165fea0973cfa1"}, {"db_id": "mimic_iii", "question": "tell me what tests patient 5828 did in other department", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c3dc51ead7e9fba70acbbd72"}, {"db_id": "mimic_iii", "question": "tell me all the tests that patient 16066 in other departments carried out.", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c8887a02338f7a1ea4d892ad"}, {"db_id": "mimic_iii", "question": "what is a checklist before lumb/lmbosac fus ant/ant?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "56d7e39bd5acc4dfe406999b"}, {"db_id": "mimic_iii", "question": "whats the pre serum transfusion nec checklist?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1ec8e2ebdbd217325e6cd306"}, {"db_id": "mimic_iii", "question": "what is the list of things to do before you go through the incision of mediastinum procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "bea77d17e0a8c6fa28b6b89e"}, {"db_id": "mimic_iii", "question": "what is the checklist you need to follow in advance of your egd with closed biopsy procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "22d3ecad15e35a13caec0f38"}, {"db_id": "mimic_iii", "question": "what is the checklist you should prepare prior to having destruct chest wall les?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "df869a763f68a1b71ff74640"}, {"db_id": "mimic_iii", "question": "what is the list of things to do before you go through the endo polpectomy lrge int procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b770d20d630443af8369efa9"}, {"db_id": "mimic_iii", "question": "has patient 9241 ever had any complication when undergoing a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "da7e2285eaee73409afdfe34"}, {"db_id": "mimic_iii", "question": "has any side effects been experienced by patient 3267 during a blood transfusion", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6c084808daf157a2bffef561"}, {"db_id": "mimic_iii", "question": "did patient 66015 ever have any side effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ad4406003d2864bec07e25d2"}, {"db_id": "mimic_iii", "question": "did patient 68280 experience side effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f9ca3fdb1b17b34aeec4cfca"}, {"db_id": "mimic_iii", "question": "during a blood transfusion has patient 18866 ever experienced any side effects?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6e2a07185e73544b344cc76d"}, {"db_id": "mimic_iii", "question": "has patient 9038 ever experienced a side effect during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "290af42729494ffb69505ff2"}, {"db_id": "mimic_iii", "question": "have patient 96429s ever suffered any side effects from blood transfusions?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d53f80a78854b873ecc2f2fd"}, {"db_id": "mimic_iii", "question": "is patient 3273 aware of any ill effects of blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "bff75cd382a0f02b3705c196"}, {"db_id": "mimic_iii", "question": "has patient 23070 ever experienced any side effects while receiving a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "349c9a170043e0a7eca2ba7e"}, {"db_id": "mimic_iii", "question": "has patient 49176 ever experienced a side effect during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "90222e31f20442eb3a7fafb8"}, {"db_id": "mimic_iii", "question": "has patient 27146 ever had any side effects while he/she is receiving a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9282a92652d1a55787410343"}, {"db_id": "mimic_iii", "question": "has patient 13329 experienced any side effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c67f55d198b6387a78460d67"}, {"db_id": "mimic_iii", "question": "has patient 13528 had any ill effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0303a30a451e882a919d1bcc"}, {"db_id": "mimic_iii", "question": "do you suppose patient 3369 has experience side effects during a blood transfusion?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "255a1064a5491c67c13cfc72"}, {"db_id": "mimic_iii", "question": "when does patient 67481 end his/her flu quarantine.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "abe64de5da40cb01a9d3eaa8"}, {"db_id": "mimic_iii", "question": "when does patient 23224 end his or her influenza quarantine?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "53e717c054a5f74ed8759f4a"}, {"db_id": "mimic_iii", "question": "when does patient 80858 stop being quarantined from the influenza flu?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "79631f53d7280893b0f2be48"}, {"db_id": "mimic_iii", "question": "what's the end date of patient 12797's influenza quarantine?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "27b06d7943c4f423efc3e2d9"}, {"db_id": "mimic_iii", "question": "when does patient 84346 cease to be quarantined from influenza?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "75b1160ad6b1a34b90bcd12a"}, {"db_id": "mimic_iii", "question": "when does patient 15794 end his/her flu quarantine.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b5f6f7b6dff772796ae06230"}, {"db_id": "mimic_iii", "question": "when patient 23224 ends the quarantine period in case of influenza?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "735c017895d112e0eb0fa3fa"}, {"db_id": "mimic_iii", "question": "when does patient 10765 get his or her influenza quarantine finished?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9fd687daf00679c1497ef766"}, {"db_id": "mimic_iii", "question": "how long does patient 86791's influenza quarantine end?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a10dbfa2c59b4664761355ec"}, {"db_id": "mimic_iii", "question": "when does the influenza quarantine end for patient 15107?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "74c4b54d002fc377fba9a583"}, {"db_id": "mimic_iii", "question": "when does patient 59220 end his/her flu quarantine.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1003863e2d52c25018dfceb5"}, {"db_id": "mimic_iii", "question": "when patient 19428 ends the quarantine period in case of influenza?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9e9b16699ec219a8b40ee61f"}, {"db_id": "mimic_iii", "question": "when does patient 370 end his/her flu quarantine.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "903faf0294ec22e88ae42713"}, {"db_id": "mimic_iii", "question": "when does patient 23224 stop being quarantined from the influenza flu?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "9ed0622532bcb271d59082b4"}, {"db_id": "mimic_iii", "question": "when does patient 8016 get his or her flu quarantine ended?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ddcf736781b42c3f4b62301e"}, {"db_id": "mimic_iii", "question": "when does patient 1819 cease to be in a quarantine for influenza?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ffdedd15b62deaa463ed9ac4"}, {"db_id": "mimic_iii", "question": "what's the end date of patient 7112's influenza quarantine?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "62cb4e43331844bce7a8b16f"}, {"db_id": "mimic_iii", "question": "how are the precautions after the creat esophagastr sphinc procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6d00c96c1ca86930f276dae2"}, {"db_id": "mimic_iii", "question": "what precautions should you follow after the nonop cardiac/vasc exam procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "662e094fb642ca2b5d055222"}, {"db_id": "mimic_iii", "question": "how do i take precaution after the rt/left heart card cath procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "227c84b2fecb62763ac84f81"}, {"db_id": "mimic_iii", "question": "what should be done to stay safe after the cont inv mec ven <96 hrs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c6b639f802e850ba3b98fb0c"}, {"db_id": "mimic_iii", "question": "what are the steps after the cystoscopy nec?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1e971507f59b3281caaf916f"}, {"db_id": "mimic_iii", "question": "what are the precautions to take after the packed cell transfusion procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "773ac05da68fd87a3ac2c808"}, {"db_id": "mimic_iii", "question": "what are the precautions that are incurred after undergoing a oth transureth prostatec procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7568427d308e094f931a0445"}, {"db_id": "mimic_iii", "question": "what are the precautions to take after the opn/oth rep mtrl vlv-tis procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a38347aa75a8c57914291782"}, {"db_id": "mimic_iii", "question": "what precautions should i take after a closed uterine biopsy procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "216c551c8a3927cc13c02433"}, {"db_id": "mimic_iii", "question": "what do the precautions be after the spinal canal explor nec procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "57ffad74bfc0f6824dfe4544"}, {"db_id": "mimic_iii", "question": "what are the precautions to take after the inc/exc/destr in ear nec procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "736bbbfd604ef82717957e97"}, {"db_id": "mimic_iii", "question": "what are the precautions that should be followed after the procedure of coronar arteriogr-1 cath?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "166a53cb62c16f3983d2f6d1"}, {"db_id": "mimic_iii", "question": "what precautions should i take after a pros repair atria def-cl procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c1573a1e8e1f9e016f5f0037"}, {"db_id": "mimic_iii", "question": "what precautions should i take after a exploratory laparotomy procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "697a86ed910d443ccd6a335d"}, {"db_id": "mimic_iii", "question": "what is the precautionary measure following the head & neck endarter nec procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b4054c3ec97e2cf1dd9adf23"}, {"db_id": "mimic_iii", "question": "what precautions should you follow after the cont inv mec ven 96+ hrs procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "67cf4d39da20dcb09c2177c6"}, {"db_id": "mimic_iii", "question": "what precautions should be taken after a rt heart angiocardiogram procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e85c2b3fec81745980af90b4"}, {"db_id": "mimic_iii", "question": "what should i do following the coronar arteriogr-2 cath procedure?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0110ce1384fc2de34f7201ea"}, {"db_id": "mimic_iii", "question": "when is the earliest of patient 7400's next visit to other departments?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "be91f9c1eb9cd815aa4c2686"}, {"db_id": "mimic_iii", "question": "what is the earliest visit of patient 97834 to other departments?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e27ff663238455002cf77ff8"}, {"db_id": "mimic_iii", "question": "when is the earliest appointment for patient 14467 for other departments?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a3b47333b8c6df5e9bd5900d"}, {"db_id": "mimic_iii", "question": "when is the earliest of patient 31880's next visit to other departments?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "21ceba4862fbd7226f2530c9"}, {"db_id": "mimic_iii", "question": "when will patient 57023 be able to visit other departments?", "query": "null", "department": ["physician"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2bdbe0ae87909cc7c5bd61d9"}, {"db_id": "mimic_iii", "question": "i.e. what is the address of patient 49036?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b548aaad1847bfc93f03660c"}, {"db_id": "mimic_iii", "question": "tell me the address of patient 2536 and why?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f420c524d13cd43237dbc349"}, {"db_id": "mimic_iii", "question": "what is the address of patient 10425.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f3ded4f3624a3d3d771de24b"}, {"db_id": "mimic_iii", "question": "how about what's the address of patient 22983?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7b9404652bc46b9f736db68b"}, {"db_id": "mimic_iii", "question": "tell me the address of patient 86791 and why?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2245ac9be0ea6bf753a978ea"}, {"db_id": "mimic_iii", "question": "can you give me the address of patient 8908?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0d844fc446d0716a909a98aa"}, {"db_id": "mimic_iii", "question": "what is the address of patient 15945.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "3baa214c772eb4e40610047c"}, {"db_id": "mimic_iii", "question": "what is the physical address of patient 81432?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "4af929b4ec96f6f33d510c49"}, {"db_id": "mimic_iii", "question": "i.e. what is the address of patient 97734?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5cd214580d27adebfaac2ea3"}, {"db_id": "mimic_iii", "question": "can you please tell me the address of patient 23969?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "24581bf1285314f2b835bc2b"}, {"db_id": "mimic_iii", "question": "can you list the address of patient 31880?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e482be0a12f4becdf374c2ee"}, {"db_id": "mimic_iii", "question": "tell me the address of patient 5395 and why?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "a8e0e72fb17322f5b1ede48c"}, {"db_id": "mimic_iii", "question": "can you please tell me the address of patient 6580?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "23d83e98718966dcc4631380"}, {"db_id": "mimic_iii", "question": "what is the adresse of patient 97395?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "dd1b63bf2b32ea3d905a813b"}, {"db_id": "mimic_iii", "question": "can you list the address of patient 14467?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "048812d8c98d9a200978f350"}, {"db_id": "mimic_iii", "question": "tell me the address of patient 1269?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "0e71569ca8cb84e853802bc5"}, {"db_id": "mimic_iii", "question": "what is the contact information for patient 15447's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "430774e0f8e9892c84625ccf"}, {"db_id": "mimic_iii", "question": "how i can get patient 14671's guardian's phone number??", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "80c93bab74b579b1a15b40ac"}, {"db_id": "mimic_iii", "question": "what is the phone number of patient 12927's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "89756f4e1b2433a1d3d943fa"}, {"db_id": "mimic_iii", "question": "what is the number of patient 29971's guardian's phone?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f79db6401e70de668fd189d3"}, {"db_id": "mimic_iii", "question": "i need to know the phone number of patient 14749's guardian.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "663a0e60d48e301cc0dc5f88"}, {"db_id": "mimic_iii", "question": "whose phone number is the phone number of patient 40707's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "870cc14816c1e19ce962192e"}, {"db_id": "mimic_iii", "question": "where can i find the phone number of patient 73913's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "73a6e538f2e2e473769dbae7"}, {"db_id": "mimic_iii", "question": "where can i find the phone number of patient 10811's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2657aecd6224ee1bc90849f0"}, {"db_id": "mimic_iii", "question": "what is the contact information for patient 7112's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "62bb42d4e9e48a8446ce45e3"}, {"db_id": "mimic_iii", "question": "please inform me of the phone number of patient 22782's guardian.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e9f3428cd88ee803e8125aae"}, {"db_id": "mimic_iii", "question": "what is patient 92063's guardian's phone number?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c5842c52d7fc5072c4e7ed4d"}, {"db_id": "mimic_iii", "question": "can u help me in knowing the phone number of patient 66015's guardian", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5262ad43b9a07e96285e9a6d"}, {"db_id": "mimic_iii", "question": "what is the number of phone numbers of patient 16572's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c5c665643e94c0292a0ae8b5"}, {"db_id": "mimic_iii", "question": "please inform me of the phone number of patient 14054's guardian.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "952d6dd593072181a61466ba"}, {"db_id": "mimic_iii", "question": "i need the phone number of patient 60180 guardian.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6134d95b33e1f45d8c4cb3ae"}, {"db_id": "mimic_iii", "question": "i need to know the phone number of patient 30228's guardian.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1f6ac2c6c5c3452c43b99fe9"}, {"db_id": "mimic_iii", "question": "if so what is the phone number of patient 32026s guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "76d135e25931dfbfa0053229"}, {"db_id": "mimic_iii", "question": "what is the telephone number of patient 59941's guardian?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "1b4f13f7cae219aa96fddacf"}, {"db_id": "mimic_iii", "question": "what is the procedure on anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "44482f8b97fe65873ee5d9a4"}, {"db_id": "mimic_iii", "question": "what's the protocol for anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e0a4315eacc93cd2d5117428"}, {"db_id": "mimic_iii", "question": "i am curious what the protocols for the drugs that work to treat cancer.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "995297400aaa8332e4b77ae4"}, {"db_id": "mimic_iii", "question": "what the proccedural of the drugs against cancer is?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5123baaf7143d5e7e673608f"}, {"db_id": "mimic_iii", "question": "what is the protocol of anticancer drugs.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "562198e41d3194c83ef8cb4c"}, {"db_id": "mimic_iii", "question": "what is the protocol used for the anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "19cf241b2d0cc8d4621fc7e0"}, {"db_id": "mimic_iii", "question": "whats the protocol for the anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "e708975c0fad9ac36995f152"}, {"db_id": "mimic_iii", "question": "tell me the protocol of the anticancer drug?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f39db121bf0936974860ec02"}, {"db_id": "mimic_iii", "question": "tell me the protocol of anti cancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "7afd0cd89c0ddca32a86fa59"}, {"db_id": "mimic_iii", "question": "how do you proceed with the anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "2a4793b1ceda235927d67394"}, {"db_id": "mimic_iii", "question": "what is the procedure of the anticancer drugs.", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c7b390a039323f71a85a6bae"}, {"db_id": "mimic_iii", "question": "using the other anticancer drugs is the protocol of the anticancer drugs", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c16898199c0cd6913601b82c"}, {"db_id": "mimic_iii", "question": "what is the protocol of anti-cancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ce915942063a8e1e4f41b03d"}, {"db_id": "mimic_iii", "question": "tell me the protocol of anticancer drugs?", "query": "null", "department": ["nursing"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "6ce309a9f7b1600da649271d"}, {"db_id": "mimic_iii", "question": "what is dr. robinson's outpatient schedule today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "73ba010ec12a082227d710ae"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule with dr. smith?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "aec5ab4b87cf74414d9ef41a"}, {"db_id": "mimic_iii", "question": "what is the outpatient schedule of dr. swain today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f8640c8e814d166ac77815ba"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule for dr. cannon?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "f655470bfa81b38e03386b70"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule with dr. welling?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ae8ae75749e812f49ddd7df0"}, {"db_id": "mimic_iii", "question": "what is the outpatient schedule today for dr. minutillo?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "369d0ab6f22850ec4199cbe8"}, {"db_id": "mimic_iii", "question": "i would like to know what dr. dunlow's on today's outpatient schedule.", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "50fe1ef26379429b9064604f"}, {"db_id": "mimic_iii", "question": "what is the outpatient schedule of dr. brunner today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "965a322df3939d7eb9972c80"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule with dr. burgess?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "598d1cbbc9c8f37a219ceb3f"}, {"db_id": "mimic_iii", "question": "what is the outpatient schedule today for dr. solis?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "5f6dc431af72dccf959c37ae"}, {"db_id": "mimic_iii", "question": "what is dr. barna's outpatient schedule today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "355bd1e36630e029683cba21"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule for dr. gaylor?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "ac85b2632105d63f539712eb"}, {"db_id": "mimic_iii", "question": "what is today's outpatient schedule for dr. knight?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "b4471ab0e8c34cbdac2e3196"}, {"db_id": "mimic_iii", "question": "what is the outpatient schedule today for dr. leigh?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "39532e348fba806df7620dc1"}, {"db_id": "mimic_iii", "question": "i would like to know what dr. reeves's on today's outpatient schedule.", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "d48306e65cefcfab4cea1168"}, {"db_id": "mimic_iii", "question": "what is dr. koch's outpatient treatment schedule today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "87a46664ca9272d9e9a16571"}, {"db_id": "mimic_iii", "question": "i would like to know what dr. garcia's on today's outpatient schedule.", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "fa1f39573b4c4cc4a4c65e1c"}, {"db_id": "mimic_iii", "question": "what is dr. caron's outpatient schedule today?", "query": "null", "department": ["insurance review"], "para_type": "machine", "is_impossible": true, "split": "valid", "id": "c32e502c55ae1611dd7d1cac"}]