did patient 1457 get a lab magnesium test since 2 years ago?
select count(*)>0 from labevents where labevents.itemid in ( select d_labitems.itemid from d_labitems where d_labitems.label = 'magnesium' ) and labevents.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 1457 ) and datetime(labevents.charttime) >= datetime(current_time,'-2 year')