how much it costs for the hospital stay of patient 64796 until 2 years ago?
select sum(cost.cost) from cost where cost.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 64796 ) and datetime(cost.chargetime) <= datetime(current_time,'-2 year')