ระบุ bp หลอดเลือดแดงสูงสุดรายวัน [diastolic] ของผู้ป่วย 25628 จนถึง 270 วันที่แล้ว ไม่จำเป็นต้องใช้ตารางทั้งหมด
indicate the daily maximum arterial bp [diastolic] of patient 25628 until 270 days ago.It is not neccessary to use all the tables.
 diagnoses_icd:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icd9_code [ text]  charttime [ time] 
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 = 25628)) 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(), '-270 day') GROUP BY STRFTIME('%y-%m-%d', chartevents.charttime)