has patient 77676 had any surgeries until 1 year ago?
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')