จนถึง 35 เดือนที่ผ่านมา sao2 ของผู้ป่วย 22295 เป็นปกติหรือไม่?ไม่จำเป็นต้องใช้ตารางทั้งหมด
until 35 months ago has patient 22295's sao2 been normal?It is not neccessary to use all the tables.
 d_icd_procedures:  row_id [ number]  icd9_code [ text]  short_title [ text]  long_title [ text] 
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 = 22295)) AND chartevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'sao2' AND d_items.linksto = 'chartevents') AND chartevents.valuenum BETWEEN sao2_lower AND sao2_upper AND DATETIME(chartevents.charttime) <= DATETIME(CURRENT_TIME(), '-35 month')