ครั้งแรกที่ผู้ป่วย 19412 มี bp หลอดเลือดแดงสูงสุด [diastolic] สูงสุดในวันนี้คือเมื่อใด? ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
when was the first time in which patient 19412 had the maximum arterial bp [diastolic] today?It is not neccessary to use all the tables.
 d_labitems:  row_id [ number]  itemid [ number]  label [ text] 
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 = 19412)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp [diastolic]' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of day') = DATETIME(CURRENT_TIME(), 'start of day', '-0 day') ORDER BY chartevents.valuenum DESC, chartevents.charttime LIMIT 1