indicate the daily average volume of drain out #4 other that patient 99082 has had until 08/2102.
select avg(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 = 99082 ) ) and outputevents.itemid in ( select d_items.itemid from d_items where d_items.label = 'drain out #4 other' and d_items.linksto = 'outputevents' ) and strftime('%y-%m',outputevents.charttime) <= '2102-08' group by strftime('%y-%m-%d',outputevents.charttime)