ผู้ป่วย 74159 ได้รับการทดสอบความอิ่มตัวของออกซิเจนในการไปโรงพยาบาลครั้งแรกหรือไม่ ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
had patient 74159 received a test of oxygen saturation in their first hospital visit?It is not neccessary to use all the tables.
 chartevents:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  itemid [ number]  charttime [ time]  valuenum [ number]  valueuom [ text] 
SELECT COUNT(*) > 0 FROM labevents WHERE labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'oxygen saturation') AND labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 74159 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime LIMIT 1)