calculate the total drain out #1 other production for patient 3242 until 01/13/2104.
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 = 3242 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'drain out #1 other' and d_items.linksto = 'outputevents' ) and strftime('%y-%m-%d',outputevents.charttime) <= '2104-01-13'