give me the total amount of output of patient 77213 until 10/31/2102.
select sum(outputevents.value) from outputevents where outputevents.icustay_id in ( select icustays.icustay_id from icustays where icustays.hadm_id in ( select admissions.hadm_id from admissions where admissions.subject_id = 77213 ) ) and strftime('%y-%m-%d',outputevents.charttime) <= '2102-10-31'