ครั้งสุดท้ายที่ผู้ป่วย 25523 มีค่าเฉลี่ย bp ของหลอดเลือดแดงขั้นต่ำในวันที่ 06/09/2104 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the last time that patient 25523 had the minimum arterial bp mean on 06/09/2104?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 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 = 25523)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'arterial bp mean' AND d_items.linksto = 'chartevents') AND STRFTIME('%y-%m-%d', chartevents.charttime) = '2104-06-09' ORDER BY chartevents.valuenum, chartevents.charttime DESC LIMIT 1