when did patient 52647 get a last lab test?
select labevents.charttime from labevents where labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 52647 ) order by labevents.charttime desc limit 1