Question: when did patient 3267 first have the maximum amount of phosphate in 05/2101?

when was the first time that patient 3267 had the maximum value of phosphate in 05/2101?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?

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]?

Answer: 2101-05-30 03:35:00


Question: when did patient 40059 first had the maximum number of anion gap during their current hospital encounter?

when was the first time that patient 40059 had the maximum value of anion gap on the current hospital visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?

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]?

Answer: 2105-12-24 19:00:00


Question: when was patient 10624's first minimum white blood cells ?'

when was the first time that patient 10624 had the minimum value of white blood cells?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] value of {lab_name} [time_filter_global1]?

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]?

Answer: 2105-12-20 01:45:00


Question: in their first hospital encounter what was the first time of patient 25628's microbiology test?

when was the first microbiology test of patient 25628 on the first hospital visit?

Question: 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

when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-first] microbiology test of patient {patient_id} [time_filter_global1:rel-hosp-first]?

Answer: 2105-01-01 16:13:00


Question: when was patient 29635's last microbiological examination when they came to the hospital last time?

when was the last microbiology test of patient 29635 on the last hospital visit?

Question: 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

when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:rel-hosp-last]?

Answer: 2103-08-19 17:30:00


Question: when did patient 94956 last receive a microbiology test in 06/2105?

when was the last microbiology test of patient 94956 in 06/2105?

Question: 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

when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:abs-month-in]?

Answer: 2105-06-03 20:18:00


Question: when did patient 9241 have a microbiology test for the last time since 04/2105?

when was the last microbiology test of patient 9241 since 04/2105?

Question: 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

when was the [time_filter_exact1] microbiology test of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] microbiology test of patient {patient_id} [time_filter_global1:abs-month-since]?

Answer: 2105-10-10 01:03:00


Question: when did patient 70234 receive the first microbiological blood culture test since 02/2105?

when was patient 70234's first blood culture microbiology test since 02/2105?

Question: 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

when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?

when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:abs-month-since]?

Answer: 2105-06-05 17:50:00


Question: when did patient 27964 get a sputum microbiology test for the last time until 11/2105?

when was patient 27964's last sputum microbiology test until 11/2105?

Question: 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

when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?

when was patient {patient_id}'s [time_filter_exact1:exact-last] {culture_name} microbiology test [time_filter_global1:abs-month-until]?

Answer: 2105-09-06 18:50:00


Question: when did patient 3242 have a catheter tip-iv microbiology test for the first time in 01/2104?

when was patient 3242's first catheter tip-iv microbiology test in 01/2104?

Question: 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

when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?

when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:abs-month-in]?

Answer: 2104-01-14 16:47:00


Question: when did patient 15209 first receive a sputum test in their current hospital visit?

when was patient 15209's first sputum microbiology test on the current hospital visit?

Question: 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

when was patient {patient_id}'s [time_filter_exact1] {culture_name} microbiology test [time_filter_global1]?

when was patient {patient_id}'s [time_filter_exact1:exact-first] {culture_name} microbiology test [time_filter_global1:rel-hosp-cur]?

Answer: 2105-12-30 11:00:00


Question: what was the last time of patient 6170 taking .9% normal saline on the current intensive care unit visit?

when was the last time that patient 6170 had a .9% normal saline intake on the current icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:rel-icu-cur]?

Answer: 2105-12-31 21:00:00


Question: when did patient 24547 have a lipids 20% intake for the last time?

when was the last time that patient 24547 had a lipids 20% intake?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {intake_name} intake [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {intake_name} intake [time_filter_global1:null]?

Answer: 2104-08-31 00:00:00


Question: when did patient 9038 last have an intake since 663 days ago?

when was the last intake time of patient 9038 since 663 day ago?

Question: 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

when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:rel-day-since]?

Answer: 2104-04-03 04:00:00


Question: when did patient 14321 receive an intake for the last time?

when was the last intake time of patient 14321?

Question: 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

when was the [time_filter_exact1] intake time of patient {patient_id} [time_filter_global1]?

when was the [time_filter_exact1:exact-last] intake time of patient {patient_id} [time_filter_global1:null]?

Answer: 2104-09-02 12:00:00


Question: when had patient 739 had the last urine out foley output on the current intensive care unit visit?

when was the last time that patient 739 had a urine out foley output on the current icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:rel-icu-cur]?

Answer: 2105-12-31 17:00:00


Question: what was the last urine out foley-output time of patient 59049 since 02/24/2105?

when was the last time that patient 59049 had a urine out foley output since 02/24/2105?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:abs-day-since]?

Answer: 2105-06-14 10:45:00


Question: when did patient 18866 last have a urine out foley event on the current icu visit?

when was the last time that patient 18866 had a urine out foley output on the current icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {output_name} output [time_filter_global1]?

when was the [time_filter_exact1:exact-last] time that patient {patient_id} had a {output_name} output [time_filter_global1:rel-icu-cur]?

Answer: 2105-12-31 23:00:00


Question: when did patient 9294 first have a arterial bp [systolic] measured on the first intensive care unit visit?

when was the first time that patient 9294 had a arterial bp [systolic] measured on the first icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:rel-icu-first]?

Answer: 2105-12-01 17:15:00


Question: when was the first time that the arterial bp [diastolic] of patient 1561 was measured or taken since 12/31/2102?

when was the first time that patient 1561 had a arterial bp [diastolic] measured since 12/31/2102?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:abs-day-since]?

Answer: 2105-12-29 23:00:00


Question: tell me when was the first time that patient 20603 measured arterial bp mean?

when was the first time that patient 20603 had a arterial bp mean measured?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:null]?

Answer: 2105-10-15 18:33:00


Question: when was patient 4401's arterial bp mean first measured on the current icu visit?

when was the first time that patient 4401 had a arterial bp mean measured on the current icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had a {vital_name} measured [time_filter_global1]?

when was the [time_filter_exact1:exact-first] time that patient {patient_id} had a {vital_name} measured [time_filter_global1:rel-icu-cur]?

Answer: 2105-12-29 19:25:00


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?

when was the last time that the arterial bp [systolic] of patient 28443 was less than 152.0 on the current icu visit?

Question: 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

when was the [time_filter_exact1] time that the {vital_name} of patient {patient_id} was [comparison] than {vital_value} [time_filter_global1]?

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]?

Answer: 2105-12-31 21:05:00


Question: when did patient 31239 first have their maximum heart rate until 09/12/2104?

when was the first time that patient 31239 had the maximum heart rate until 09/12/2104?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?

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]?

Answer: 2102-06-01 03:00:00


Question: when did patient 13837 first have the minimum value of arterial bp mean on 05/20/2105?

when was the first time that patient 13837 had the minimum arterial bp mean on 05/20/2105?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?

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]?

Answer: 2105-05-20 22:00:00


Question: when did patient 14836 last have the maximum heart rate value on the first icu visit?

when was the last time that patient 14836 had the maximum heart rate on the first icu visit?

Question: 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

when was the [time_filter_exact1] time that patient {patient_id} had the [sort] {vital_name} [time_filter_global1]?

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]?

Answer: 2105-02-20 05:00:00


Question: has patient 59941 visited the hospital since 2100?

has patient 59941 been admitted to the hospital since 2100?

Question: select count(*)>0 from admissions where admissions.subject_id = 59941 and strftime('%Y',admissions.admittime) >= '2100'

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-since]?

Answer: 1


Question: does patient 43959 go to a hospital in 2105?

has patient 43959 been admitted to the hospital in 2105?

Question: select count(*)>0 from admissions where admissions.subject_id = 43959 and strftime('%Y',admissions.admittime) = '2105'

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-in]?

Answer: 1


Question: has patient 80858 got admitted to an admission until 2104?

has patient 80858 been admitted to the hospital until 2104?

Question: select count(*)>0 from admissions where admissions.subject_id = 80858 and strftime('%Y',admissions.admittime) <= '2104'

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-until]?

Answer: 1


Question: has patient 80858 made to an admission until 2104?

has patient 80858 been admitted to the hospital until 2104?

Question: select count(*)>0 from admissions where admissions.subject_id = 80858 and strftime('%Y',admissions.admittime) <= '2104'

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:abs-year-until]?

Answer: 1


Question: did patient 12938 visit the hospital since 5 years ago?

has patient 12938 been admitted to the hospital since 5 year ago?

Question: select count(*)>0 from admissions where admissions.subject_id = 12938 and datetime(admissions.admittime) >= datetime(current_time,'-5 year')

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1]?

has_verb patient {patient_id} been admitted to the hospital [time_filter_global1:rel-year-since]?

Answer: 1


Question: in a year before was patient 18677 admitted to the er?

has patient 18677 been to an emergency room last year?

Question: 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')

has_verb patient {patient_id} been to an emergency room [time_filter_global1]?

has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-last]?

Answer: 0


Question: had patient 2700 been to er until 2104?

has patient 2700 been to an emergency room until 2104?

Question: select count(*)>0 from admissions where admissions.subject_id = 2700 and admissions.admission_location = 'emergency room admit' and strftime('%Y',admissions.admittime) <= '2104'

has_verb patient {patient_id} been to an emergency room [time_filter_global1]?

has_verb patient {patient_id} been to an emergency room [time_filter_global1:abs-year-until]?

Answer: 1


Question: did patient 5520 visit an er in the last year?

has patient 5520 been to an emergency room last year?

Question: 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')

has_verb patient {patient_id} been to an emergency room [time_filter_global1]?

has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-last]?

Answer: 0


Question: did patient 27703 go to an emergency room during this year?

has patient 27703 been to an emergency room this year?

Question: 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')

has_verb patient {patient_id} been to an emergency room [time_filter_global1]?

has_verb patient {patient_id} been to an emergency room [time_filter_global1:rel-year-this]?

Answer: 0


Question: until 2104, patient 7073 underwent any procedure?

has patient 7073 received any procedure until 2104?

Question: 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'

has_verb patient {patient_id} received any procedure [time_filter_global1]?

has_verb patient {patient_id} received any procedure [time_filter_global1:abs-year-until]?

Answer: 1


Question: had patient 12797 underwent any procedure until 2102?

has patient 12797 received any procedure until 2102?

Question: 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'

has_verb patient {patient_id} received any procedure [time_filter_global1]?

has_verb patient {patient_id} received any procedure [time_filter_global1:abs-year-until]?

Answer: 1


Question: has patient 18223 had any procedure on their first hospital encounter?

has patient 18223 received any procedure on the first hospital visit?

Question: 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 )

has_verb patient {patient_id} received any procedure [time_filter_global1]?

has_verb patient {patient_id} received any procedure [time_filter_global1:rel-hosp-first]?

Answer: 1


Question: did patient 24118 have any procedure?

has patient 24118 received any procedure?

Question: select count(*)>0 from procedures_icd where procedures_icd.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 24118 )

has_verb patient {patient_id} received any procedure [time_filter_global1]?

has_verb patient {patient_id} received any procedure [time_filter_global1:null]?

Answer: 1


Question: did patient 48706 get any procedure a year before?

has patient 48706 received any procedure last year?

Question: 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')

has_verb patient {patient_id} received any procedure [time_filter_global1]?

has_verb patient {patient_id} received any procedure [time_filter_global1:rel-year-last]?

Answer: 0


Question: patient 60219 has undergone inject/inf thrombo agent until 2104?

has patient 60219 received a inject/inf thrombo agent procedure until 2104?

Question: 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'

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-until]?

Answer: 1


Question: has patient 16472 underwent a cl red-int fix rad/ulna procedure this year?

has patient 16472 received a cl red-int fix rad/ulna procedure this year?

Question: 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')

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-this]?

Answer: 0


Question: has patient 83466 received any excise lg intestine les procedure in a year before?

has patient 83466 received a excise lg intestine les procedure last year?

Question: 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')

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last]?

Answer: 0


Question: has patient 83466 undergone any excise lg intestine les last year?

has patient 83466 received a excise lg intestine les procedure last year?

Question: 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')

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last]?

Answer: 0


Question: has patient 12274 undergone any coronar arteriogr-1 cath treatment in 2105?

has patient 12274 received a coronar arteriogr-1 cath procedure in 2105?

Question: 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'

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1]?

has_verb patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-in]?

Answer: 1


Question: what is the treatment that patient 15209 has been given two or more times since 04/2101?

what was the name of the procedure that patient 15209 received two or more times since 04/2101?

Question: 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 )

what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?

what was the name of the procedure that patient {patient_id} received [n_times:two or more times] [time_filter_global1:abs-month-since]?

Answer: insert endotracheal tube

Answer: cont inv mec ven 96+ hrs


Question: what is the name of the procedure that was given two or more times to patient 27362?

what was the name of the procedure that patient 27362 received two or more times?

Question: 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 )

what was the name of the procedure that patient {patient_id} received [n_times] [time_filter_global1]?

what was the name of the procedure that patient {patient_id} received [n_times:two or more times] [time_filter_global1:null]?

Answer: insert endotracheal tube

Answer: cont inv mec ven <96 hrs


Question: has patient 12775 had any kind of diagnosis in this year?

has patient 12775 received any diagnosis this year?

Question: 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')

has_verb patient {patient_id} received any diagnosis [time_filter_global1]?

has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-this]?

Answer: 0


Question: patient 81223 has any disease diagnosed during the last year?

has patient 81223 received any diagnosis last year?

Question: 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')

has_verb patient {patient_id} received any diagnosis [time_filter_global1]?

has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-last]?

Answer: 0


Question: was patient 72198 diagnosed with any in 2105?

has patient 72198 received any diagnosis in 2105?

Question: 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'

has_verb patient {patient_id} received any diagnosis [time_filter_global1]?

has_verb patient {patient_id} received any diagnosis [time_filter_global1:abs-year-in]?

Answer: 1


Question: has patient 9474 been diagnosed with any since 1 year ago?

has patient 9474 received any diagnosis since 1 year ago?

Question: 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')

has_verb patient {patient_id} received any diagnosis [time_filter_global1]?

has_verb patient {patient_id} received any diagnosis [time_filter_global1:rel-year-since]?

Answer: 1


Question: has patient 31141 been in 2105 diagnosed with hx of bladder malignancy?

has patient 31141 been diagnosed with hx of bladder malignancy in 2105?

Question: 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'

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-in]?

Answer: 1


Question: has patient 30763 received until 1 year ago a delirium d/t other cond diagnosis?

has patient 30763 been diagnosed with delirium d/t other cond until 1 year ago?

Question: 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')

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:rel-year-until]?

Answer: 0


Question: has patient 20589 received a nodular lymphoma mult diagnosis during their last hospital visit?

has patient 20589 been diagnosed with nodular lymphoma mult on the last hospital visit?

Question: 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 )

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:rel-hosp-last]?

Answer: 1


Question: has patient 65569 got a fx c2 vertebra-closed diagnosis since 2105?

has patient 65569 been diagnosed with fx c2 vertebra-closed since 2105?

Question: 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'

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1]?

has_verb patient {patient_id} been diagnosed with {diagnosis_name} [time_filter_global1:abs-year-since]?

Answer: 1


Question: have quetiapine fumarate, phenylephrine, or ondansetron been ordered for patient 1372 until 05/2101?

has patient 1372 been prescribed quetiapine fumarate, phenylephrine, or ondansetron until 05/2101?

Question: 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'

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:abs-month-until]?

Answer: 1


Question: have patient 24971 been prescribed with the medication warfarin, albuterol mdi, or glucagon on the last hospital visit?

has patient 24971 been prescribed warfarin, albuterol mdi, or glucagon on the last hospital visit?

Question: 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' )

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:rel-hosp-last]?

Answer: 1


Question: has neostigmine, ns, or morphine sulfate been prescribed for patient 25847 since 02/2101?

has patient 25847 been prescribed neostigmine, ns, or morphine sulfate since 02/2101?

Question: 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'

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:abs-month-since]?

Answer: 1


Question: has patient 1372 been ordered quetiapine fumarate, potassium chloride, or furosemide?

has patient 1372 been prescribed quetiapine fumarate, potassium chloride, or furosemide?

Question: 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' )

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name1}, {drug_name2}, or {drug_name3} [time_filter_global1:null]?

Answer: 1


Question: has patient 50480 ever had a medication prescribed until 1 year ago?

has patient 50480 been prescribed any medication until 1 year ago?

Question: 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')

has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?

has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-year-until]?

Answer: 0


Question: was there any medicine prescribed until 2104 for patient 26612?

has patient 26612 been prescribed any medication until 2104?

Question: 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'

has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?

has_verb patient {patient_id} been prescribed any medication [time_filter_global1:abs-year-until]?

Answer: 1


Question: did patient 86404 have any medication since 2101?

has patient 86404 been prescribed any medication since 2101?

Question: 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'

has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?

has_verb patient {patient_id} been prescribed any medication [time_filter_global1:abs-year-since]?

Answer: 1


Question: did patient 67418 receive any medication until 104 months ago?

has patient 67418 been prescribed any medication until 104 month ago?

Question: 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')

has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?

has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-month-until]?

Answer: 0


Question: has patient 28447 received any medication this month?

has patient 28447 been prescribed any medication this month?

Question: 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')

has_verb patient {patient_id} been prescribed any medication [time_filter_global1]?

has_verb patient {patient_id} been prescribed any medication [time_filter_global1:rel-month-this]?

Answer: 0


Question: did any phenytoin (suspension) ever been prescribed to patient 77980 until 4 years ago?

has patient 77980 been prescribed phenytoin (suspension) until 4 year ago?

Question: 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')

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:rel-year-until]?

Answer: 0


Question: have vial been prescribed to patient 23475?

Question: 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'

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:null]?

Answer: 1


Question: has metoclopramide ever been prescribed to patient 10855 in 2105?

has patient 10855 been prescribed metoclopramide in 2105?

Question: 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'

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:abs-year-in]?

Answer: 1


Question: tell me whether patient 25523 been prescribed insulin since 62 months ago?

has patient 25523 been prescribed insulin since 62 month ago?

Question: 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')

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1]?

has_verb patient {patient_id} been prescribed {drug_name} [time_filter_global1:rel-month-since]?

Answer: 1


Question: have patient 18237 had any lab testing done in 05/2105?

has patient 18237 received any lab test in 05/2105?

Question: 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'

has_verb patient {patient_id} received any lab test [time_filter_global1]?

has_verb patient {patient_id} received any lab test [time_filter_global1:abs-month-in]?

Answer: 1


Question: has patient 10425 had a lab test done since 6 years ago?

has patient 10425 received any lab test since 6 year ago?

Question: 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')

has_verb patient {patient_id} received any lab test [time_filter_global1]?

has_verb patient {patient_id} received any lab test [time_filter_global1:rel-year-since]?

Answer: 1


Question: has patient 66015 got any lab test since 10/2103?

has patient 66015 received any lab test since 10/2103?

Question: 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'

has_verb patient {patient_id} received any lab test [time_filter_global1]?

has_verb patient {patient_id} received any lab test [time_filter_global1:abs-month-since]?

Answer: 1


Question: did patient 30509 get any lab test?

has patient 30509 received any lab test?

Question: select count(*)>0 from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 30509 )

has_verb patient {patient_id} received any lab test [time_filter_global1]?

has_verb patient {patient_id} received any lab test [time_filter_global1:null]?

Answer: 1


Question: has patient 14054 had any lab tests performed for eosinophils since 2105?

has patient 14054 received a eosinophils lab test since 2105?

Question: 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'

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:abs-year-since]?

Answer: 1


Question: patient 60136 has been tested for granular casts in this hospital encounter?

has patient 60136 received a granular casts lab test on the current hospital visit?

Question: 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 )

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-hosp-cur]?

Answer: 1


Question: has patient 97834 got a creatinine test?

has patient 97834 received a creatinine lab test?

Question: 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 )

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:null]?

Answer: 1


Question: has patient 7107 had a potassium test during this month?

has patient 7107 received a potassium lab test this month?

Question: 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')

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1]?

has_verb patient {patient_id} received a {lab_name} lab test [time_filter_global1:rel-month-this]?

Answer: 0


Question: does a microbiological test have been performed for patient 10539 until 2103?

has patient 10539 had any microbiology test result until 2103?

Question: 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'

has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-year-until]?

Answer: 1


Question: is there any record of patient 16554's microbiology test in 2104?

has patient 16554 had any microbiology test result in 2104?

Question: 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'

has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-year-in]?

Answer: 1


Question: is there any microbiology test history for patient 49141 since 1 year ago?

has patient 49141 had any microbiology test result since 1 year ago?

Question: 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')

has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any microbiology test result [time_filter_global1:rel-year-since]?

Answer: 1


Question: is there any microbiology test result for patient 808 in 12/2105?

has patient 808 had any microbiology test result in 12/2105?

Question: 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'

has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any microbiology test result [time_filter_global1:abs-month-in]?

Answer: 1


Question: is there any microbiology test result of patient 12927 during their current hospital encounter?

has patient 12927 had any microbiology test result on the current hospital visit?

Question: 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 )

has_verb patient {patient_id} had any microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any microbiology test result [time_filter_global1:rel-hosp-cur]?

Answer: 1


Question: was there any record of the microbiology test for the mrsa screen of patient 14990 until 10/2104?

has patient 14990 had any mrsa screen microbiology test result until 10/2104?

Question: 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'

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-until]?

Answer: 1


Question: was there any results of microbiology tests for the stool (received in transport system) of patient 6196 during the last hospital visit?

has patient 6196 had any stool (received in transport system) microbiology test result on the last hospital visit?

Question: 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)'

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:rel-hosp-last]?

Answer: 1


Question: is there any microbiology test history for patient 71558's viral culture: r/o cytomegalovirus since 10/2102?

has patient 71558 had any viral culture: r/o cytomegalovirus microbiology test result since 10/2102?

Question: 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'

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-since]?

Answer: 1


Question: has any microbiology test been held to patient 96006's blood culture on their first hospital visit?

has patient 96006 had any blood culture microbiology test result on the first hospital visit?

Question: 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'

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:rel-hosp-first]?

Answer: 0


Question: is there any sputum microbiology test history for patient 73530 since 01/2100?

has patient 73530 had any sputum microbiology test result since 01/2100?

Question: 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'

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1]?

has_verb patient {patient_id} had any {culture_name} microbiology test result [time_filter_global1:abs-month-since]?

Answer: 1


Question: was there any organism detected in patient 10811's last stool microbiological test until 01/2104?

has there been any organism found in the last stool microbiology test of patient 10811 until 01/2104?

Question: 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

has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

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]?

Answer: 1


Question: did there was an organism in patient 97677's last serology/blood test?

has there been any organism found in the last serology/blood microbiology test of patient 97677?

Question: 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

has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

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]?

Answer: 0


Question: any organism found in patient 27703's last pleural fluid test in a month before?

has there been any organism found in the last pleural fluid microbiology test of patient 27703 last month?

Question: 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

has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

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]?

Answer: 0


Question: has there been any organism found in patient 19412's last sputum microbiology test in 12/this year?

has there been any organism found in the last sputum microbiology test of patient 19412 in 12/this year?

Question: 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

has_verb there been any organism found in the [time_filter_exact1] {culture_name} microbiology test of patient {patient_id} [time_filter_global1]?

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]?

Answer: 0


Question: has patient 17435 been given any k-phos 20mmol/500cc intake on the first intensive care unit visit?

has patient 17435 had any k-phos 20mmol/500cc intake on the first icu visit?

Question: 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' )

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-icu-first]?

Answer: 1


Question: had patient 9566 ever been given sc 20 fe ng during this hospital encounter?

has patient 9566 had any sc 20 fe ng intake on the current hospital visit?

Question: 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' )

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-hosp-cur]?

Answer: 1


Question: was po intake given to patient 12775 on the current intensive care unit visit?

has patient 12775 had any po intake on the current icu visit?

Question: 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' )

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-icu-cur]?

Answer: 1


Question: tell me whether d10w was given to patient 26057 in this month?

has patient 26057 had any d10w intake this month?

Question: 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')

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1]?

has_verb patient {patient_id} had any {intake_name} intake [time_filter_global1:rel-month-this]?

Answer: 0


Question: was patient 4401 excreting any drain out #2 sump in 12/2105?

has patient 4401 had any drain out #2 sump output in 12/2105?

Question: 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'

has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?

has_verb patient {patient_id} had any {output_name} output [time_filter_global1:abs-month-in]?

Answer: 1


Question: on 11/08/this year, had patient 73693 excreted any right arm drains.?

has patient 73693 had any right arm drains. output on 11/08/this year?

Question: 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'

has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?

has_verb patient {patient_id} had any {output_name} output [time_filter_global1:mix-day-this_year]?

Answer: 0


Question: has patient 64538 had any gastric gastric tube event until 03/20/2101?

has patient 64538 had any gastric gastric tube output until 03/20/2101?

Question: 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'

has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?

has_verb patient {patient_id} had any {output_name} output [time_filter_global1:abs-day-until]?

Answer: 1


Question: did patient 73713 experience any gastric emesis event since 118 months ago?

has patient 73713 had any gastric emesis output since 118 month ago?

Question: 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')

has_verb patient {patient_id} had any {output_name} output [time_filter_global1]?

has_verb patient {patient_id} had any {output_name} output [time_filter_global1:rel-month-since]?

Answer: 1


Question: had patient 10211 had heart rate less than 124.0 during their first hospital encounter?

has the heart rate of patient 10211 been ever less than 124.0 on the first hospital visit?

Question: 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

has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?

has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:rel-hosp-first]?

Answer: 1


Question: had the heart rate of patient 28443 ever been less than 80.0 in 12/2105?

has the heart rate of patient 28443 been ever less than 80.0 in 12/2105?

Question: 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'

has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?

has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:abs-month-in]?

Answer: 1


Question: tell me whether patient 1798's arterial bp mean was ever greater than 94.0 since 153 months ago?

has the arterial bp mean of patient 1798 been ever greater than 94.0 since 153 month ago?

Question: 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')

has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?

has_verb the {vital_name} of patient {patient_id} been ever [comparison:greater] than {vital_value} [time_filter_global1:rel-month-since]?

Answer: 1


Question: is patient 31854's arterial bp [systolic] ever less than 126.0 on the current hospital visit?

has the arterial bp [systolic] of patient 31854 been ever less than 126.0 on the current hospital visit?

Question: 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

has_verb the {vital_name} of patient {patient_id} been ever [comparison] than {vital_value} [time_filter_global1]?

has_verb the {vital_name} of patient {patient_id} been ever [comparison:less] than {vital_value} [time_filter_global1:rel-hosp-cur]?

Answer: 1


Question: give me patient 94316's hospial admission time in 2103.

list the hospital admission time of patient 94316 in 2103.

Question: select admissions.admittime from admissions where admissions.subject_id = 94316 and strftime('%Y',admissions.admittime) = '2103'

list the hospital admission time of patient {patient_id} [time_filter_global1].

list the hospital admission time of patient {patient_id} [time_filter_global1:abs-year-in].

Answer: 2103-03-21 12:45:00


Question: get me patient 61500's hospial admission time since 2105.

list the hospital admission time of patient 61500 since 2105.

Question: select admissions.admittime from admissions where admissions.subject_id = 61500 and strftime('%Y',admissions.admittime) >= '2105'

list the hospital admission time of patient {patient_id} [time_filter_global1].

list the hospital admission time of patient {patient_id} [time_filter_global1:abs-year-since].

Answer: 2105-09-29 17:36:00


Question: how much is the yearly maximum value of rdw for patient 4758 since 2105?

list the yearly maximum rdw lab value of patient 4758 since 2105.

Question: 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)

list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].

list the [unit_average:yearly] [agg_function:maximum] {lab_name} lab value of patient {patient_id} [time_filter_global1:abs-year-since].

Answer: 20.1


Question: what is the yearly maximum value of potassium in patient 8098?

list the yearly maximum potassium lab value of patient 8098.

Question: 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)

list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].

list the [unit_average:yearly] [agg_function:maximum] {lab_name} lab value of patient {patient_id} [time_filter_global1:null].

Answer: 5.1


Question: tell me patient 16715's monthly minimum epithelial cells since 2105.

list the monthly minimum epithelial cells lab value of patient 16715 since 2105.

Question: 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)

list the [unit_average] [agg_function] {lab_name} lab value of patient {patient_id} [time_filter_global1].

list the [unit_average:monthly] [agg_function:minimum] {lab_name} lab value of patient {patient_id} [time_filter_global1:abs-year-since].

Answer: 0.0


Question: what is the daily minimum value of weight of patient 31854 in 2105?

list the daily minimum weight of patient 31854 in 2105.

Question: 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)

list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].

list the [unit_average:daily] [agg_function:minimum] weight of patient {patient_id} [time_filter_global1:abs-year-in].

Answer: 68.18000030517578


Question: get me patient 6215's yearly maximum weight until 09/2103.

list the yearly maximum weight of patient 6215 until 09/2103.

Question: 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)

list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].

list the [unit_average:yearly] [agg_function:maximum] weight of patient {patient_id} [time_filter_global1:abs-month-until].

Answer: 122.0


Question: retrieve patient 4269's yearly minimum weight since 2 years ago.

list the yearly minimum weight of patient 4269 since 2 year ago.

Question: 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)

list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].

list the [unit_average:yearly] [agg_function:minimum] weight of patient {patient_id} [time_filter_global1:rel-year-since].

Answer: 70.30000305175781


Question: what is patient 3369's yearly maximum weight since 5 years ago?

list the yearly maximum weight of patient 3369 since 5 year ago.

Question: 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)

list the [unit_average] [agg_function] weight of patient {patient_id} [time_filter_global1].

list the [unit_average:yearly] [agg_function:maximum] weight of patient {patient_id} [time_filter_global1:rel-year-since].

Answer: 110.0


Question: what was the daily average dose of chemo:alb w/ sargram that patient 1272 was taking during the last hospital visit?

list the daily average volume of chemo:alb w/ sargram intake that patient 1272 received on the last hospital visit.

Question: 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)

list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].

list the [unit_average:daily] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-hosp-last].

Answer: 11.0


Question: list the daily average nepro w/ promod intake of patient 1269 since 09/2104.

list the daily average volume of nepro w/ promod intake that patient 1269 received since 09/2104.

Question: 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)

list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].

list the [unit_average:daily] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:abs-month-since].

Answer: 30.0


Question: tell me the monthly average amount of patient 14054's e 20 fe fs po intake on the first hospital visit.

list the monthly average volume of e 20 fe fs po intake that patient 14054 received on the first hospital visit.

Question: 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)

list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].

list the [unit_average:monthly] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-hosp-first].

Answer: 8.0


Question: what is patient 24894's monthly average amount of dextrose 20% since 157 months ago?

list the monthly average volume of dextrose 20% intake that patient 24894 received since 157 month ago.

Question: 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)

list the [unit_average] [agg_function] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1].

list the [unit_average:monthly] [agg_function:average] volume of {intake_name} intake that patient {patient_id} received [time_filter_global1:rel-month-since].

Answer: 25.0


Question: what is the monthly average cerebral drain l ventricular drain of patient 462 on the first hospital visit?

list the monthly average volume of cerebral drain l ventricular drain output that patient 462 had on the first hospital visit.

Question: 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)

list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].

list the [unit_average:monthly] [agg_function:average] volume of {output_name} output that patient {patient_id} had [time_filter_global1:rel-hosp-first].

Answer: 10.0


Question: show me the yearly minimum drain out #1 t tube of patient 72107 until 03/29/2102.

list the yearly minimum volume of drain out #1 t tube output that patient 72107 had until 03/29/2102.

Question: 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)

list the [unit_average] [agg_function] volume of {output_name} output that patient {patient_id} had [time_filter_global1].

list the [unit_average:yearly] [agg_function:minimum] volume of {output_name} output that patient {patient_id} had [time_filter_global1:abs-day-until].

Answer: 5.0


Question: tell me the daily maximum arterial bp [systolic] of patient 23969 in 04/2105.

list the daily maximum arterial bp [systolic] of patient 23969 in 04/2105.

Question: 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)

list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].

list the [unit_average:daily] [agg_function:maximum] {vital_name} of patient {patient_id} [time_filter_global1:abs-month-in].

Answer: 161.0

Answer: 141.0


Question: what is patient 27739's monthly minimum value of arterial bp [diastolic] since 1068 days ago?

list the monthly minimum arterial bp [diastolic] of patient 27739 since 1068 day ago.

Question: 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)

list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].

list the [unit_average:monthly] [agg_function:minimum] {vital_name} of patient {patient_id} [time_filter_global1:rel-day-since].

Answer: 29.0


Question: get me patient 18678's daily average arterial bp [diastolic] since 26 months ago.

list the daily average arterial bp [diastolic] of patient 18678 since 26 month ago.

Question: 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)

list the [unit_average] [agg_function] {vital_name} of patient {patient_id} [time_filter_global1].

list the [unit_average:daily] [agg_function:average] {vital_name} of patient {patient_id} [time_filter_global1:rel-month-since].

Answer: 58.05555555555556

Answer: 54.07692307692308

Answer: 54.833333333333336


Question: how many times does patient 94937 come to the hospital during this year.

count the number of hospital visits of patient 94937 this year.

Question: 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')

count the number of hospital visits of patient {patient_id} [time_filter_global1].

count the number of hospital visits of patient {patient_id} [time_filter_global1:rel-year-this].

Answer: 0


Question: count on the number of hospital visits of patient 2482 until 1 year ago.

count the number of hospital visits of patient 2482 until 1 year ago.

Question: select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 2482 and datetime(admissions.admittime) <= datetime(current_time,'-1 year')

count the number of hospital visits of patient {patient_id} [time_filter_global1].

count the number of hospital visits of patient {patient_id} [time_filter_global1:rel-year-until].

Answer: 0


Question: how many times did patient 60219 visit the hospital in 2104?

count the number of hospital visits of patient 60219 in 2104.

Question: select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 60219 and strftime('%Y',admissions.admittime) = '2104'

count the number of hospital visits of patient {patient_id} [time_filter_global1].

count the number of hospital visits of patient {patient_id} [time_filter_global1:abs-year-in].

Answer: 1


Question: how many times has patient 9964 visited the hospital in 2105?

count the number of hospital visits of patient 9964 in 2105.

Question: select count( distinct admissions.hadm_id ) from admissions where admissions.subject_id = 9964 and strftime('%Y',admissions.admittime) = '2105'

count the number of hospital visits of patient {patient_id} [time_filter_global1].

count the number of hospital visits of patient {patient_id} [time_filter_global1:abs-year-in].

Answer: 1


Question: calculate the number of intensive care unit visits patient 20589 has.

count the number of icu visits of patient 20589.

Question: select count( distinct icustays.icustay_id ) from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 20589 )

count the number of icu visits of patient {patient_id} [time_filter_global1].

count the number of icu visits of patient {patient_id} [time_filter_global1:null].

Answer: 1


Question: how many times do patient 55360's visit the icu in 2105?

count the number of icu visits of patient 55360 in 2105.

Question: 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'

count the number of icu visits of patient {patient_id} [time_filter_global1].

count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-in].

Answer: 1


Question: how many times has patient 29806 been admitted to the icu since 2103?

count the number of icu visits of patient 29806 since 2103.

Question: 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'

count the number of icu visits of patient {patient_id} [time_filter_global1].

count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-since].

Answer: 1


Question: how many times has patient 45612 come to the icu until 2101?

count the number of icu visits of patient 45612 until 2101.

Question: 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'

count the number of icu visits of patient {patient_id} [time_filter_global1].

count the number of icu visits of patient {patient_id} [time_filter_global1:abs-year-until].

Answer: 1


Question: count the number of times that patient 31854 has received a contr cerebr arteriogram procedure this year.

count the number of times that patient 31854 received a contr cerebr arteriogram procedure this year.

Question: 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')

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-this].

Answer: 0


Question: count the number of times that patient 14035 received the procedure for procedure-one vessel since 3 years ago.

count the number of times that patient 14035 received a procedure-one vessel procedure since 3 year ago.

Question: 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')

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-since].

Answer: 1


Question: how many times does patient 99791 get op red-int fix rad/ulna?

count the number of times that patient 99791 received a op red-int fix rad/ulna procedure.

Question: 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 )

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:null].

Answer: 1


Question: count the number of times that patient 54825 has had a rt/left heart card cath treatment during the last year.

count the number of times that patient 54825 received a rt/left heart card cath procedure last year.

Question: 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')

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:rel-year-last].

Answer: 0


Question: how many times has patient 31141 received sm bowel endoscopy nec since 2104?

count the number of times that patient 31141 received a sm bowel endoscopy nec procedure since 2104.

Question: 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'

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1].

count the number of times that patient {patient_id} received a {procedure_name} procedure [time_filter_global1:abs-year-since].

Answer: 1


Question: count how many drugs are prescribed to patient 81461 during their current hospital visit.

count the number of drugs patient 81461 were prescribed on the current hospital visit.

Question: 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 )

count the number of drugs patient {patient_id} were prescribed [time_filter_global1].

count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-hosp-cur].

Answer: 10


Question: what was the number of drugs patient 30509 was prescribed until 1 year ago?

count the number of drugs patient 30509 were prescribed until 1 year ago.

Question: 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')

count the number of drugs patient {patient_id} were prescribed [time_filter_global1].

count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-year-until].

Answer: 0


Question: how many medications is patient 1561 prescribed in this month?

count the number of drugs patient 1561 were prescribed this month.

Question: 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')

count the number of drugs patient {patient_id} were prescribed [time_filter_global1].

count the number of drugs patient {patient_id} were prescribed [time_filter_global1:rel-month-this].

Answer: 0