ผู้ป่วย 2498 มี d10w ในวันที่ 27/08/ปีที่แล้วหรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
patient 2498 had any d10w on 08/27/last year?It is not neccessary to use all the tables.
 patients:  row_id [ number]  subject_id [ number]  gender [ text]  dob [ time]  dod [ time] 
SELECT COUNT(*) > 0 FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 2498)) AND inputevents_cv.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'd10w' AND d_items.linksto = 'inputevents_cv') AND DATETIME(inputevents_cv.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m-%d', inputevents_cv.charttime) = '08-27'