how many patients until 3 years ago have been admitted into the hospital?
select count( distinct admissions.subject_id ) from admissions where datetime(admissions.admittime) <= datetime(current_time,'-3 year')