when did patient 20166 since 3 years ago first get discharged from the hospital?
select admissions.dischtime from admissions where admissions.subject_id = 20166 and datetime(admissions.dischtime) >= datetime(current_time,'-3 year') order by admissions.dischtime asc limit 1