instruction: what was the daily average amount of emesis given to patient 29971 in 08/2100?
response: 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 = 29971)) AND outputevents.itemid IN (SELECT d_items.itemid FROM d_items WHERE d_items.label = 'emesis' AND d_items.linksto = 'outputevents') AND STRFTIME('%y-%m', outputevents.charttime) = '2100-08' GROUP BY STRFTIME('%y-%m-%d', outputevents.charttime)