ระบุ sao2 ขั้นต่ำรายวันของผู้ป่วย 14054 เมื่อเดือนที่แล้ว ไม่จำเป็นต้องใช้ตารางทั้งหมด
indicate the daily minimum sao2 of patient 14054 last month.It is not neccessary to use all the tables.
 microbiologyevents:  row_id [ number]  subject_id [ number]  hadm_id [ number]  charttime [ time]  spec_type_desc [ text]  org_name [ text] 
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 = 14054)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'sao2' AND d_items.linksto = 'chartevents') AND DATETIME(chartevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-1 month') GROUP BY STRFTIME('%y-%m-%d', chartevents.charttime)