จนกระทั่ง 1 ปีที่แล้ว ผู้ป่วย 77676 มีขั้นตอน?ไม่จำเป็นต้องใช้ตารางทั้งหมด
until 1 year ago patient 77676 had a procedure?It is not neccessary to use all the tables.
 transfers:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  eventtype [ text]  careunit [ text]  wardid [ number]  intime [ time]  outtime [ time] 
SELECT COUNT(*) > 0 FROM procedures_icd WHERE procedures_icd.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 77676) AND DATETIME(procedures_icd.charttime) <= DATETIME(CURRENT_TIME(), '-1 year')