when did patient 19987 come to the hospital via er admit, the last time until 2104?
select admissions.admittime from admissions where admissions.subject_id = 19987 and admissions.admission_location = 'emergency room admit' and strftime('%y',admissions.admittime) <= '2104' order by admissions.admittime desc limit 1