when is the last time patient 77676 visited the hospital until 4 years ago?
select admissions.admittime from admissions where admissions.subject_id = 77676 and datetime(admissions.admittime) <= datetime(current_time,'-4 year') order by admissions.admittime desc limit 1