ขอทราบความแตกต่างระหว่างจำนวนอินพุตทั้งหมดและเอาต์พุตรวมของผู้ป่วย 4401 ในเดือน/30 นี้ ไม่จำเป็นต้องใช้ตารางทั้งหมด
give me the difference between the total amount of input and the total output of patient 4401 on this month/30.It is not neccessary to use all the tables.
 d_labitems:  row_id [ number]  itemid [ number]  label [ text] 
SELECT (SELECT SUM(inputevents_cv.amount) FROM inputevents_cv WHERE inputevents_cv.icustay_id IN (SELECT icustays.icustay_id FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 4401)) AND DATETIME(inputevents_cv.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', inputevents_cv.charttime) = '30') - (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 = 4401)) AND DATETIME(outputevents.charttime, 'start of month') = DATETIME(CURRENT_TIME(), 'start of month', '-0 month') AND STRFTIME('%d', outputevents.charttime) = '30')