had patient 40707 in 2105 been admitted to an emergency room?
select count(*)>0 from admissions where admissions.subject_id = 40707 and admissions.admission_location = 'emergency room admit' and strftime('%y',admissions.admittime) = '2105'