count the number of people who had been admitted until 1 year ago to hospital.
select count( distinct admissions.subject_id ) from admissions where datetime(admissions.admittime) <= datetime(current_time,'-1 year')