instruction: calculate the total output since 1707 days ago for patient 12307.
response: 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 = 12307)) AND DATETIME(outputevents.charttime) >= DATETIME(CURRENT_TIME(), '-1707 day')