คำนวณยอดรวมอินพุตของผู้ป่วย 594 ตั้งแต่วันที่ 1/11/2104 ไม่จำเป็นต้องใช้ตารางทั้งหมด
calculate the total of patient 594's input amounts since 01/11/2104.It is not neccessary to use all the tables.
 transfers:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  eventtype [ text]  careunit [ text]  wardid [ number]  intime [ time]  outtime [ time] 
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 = 594)) AND STRFTIME('%y-%m-%d', inputevents_cv.charttime) >= '2104-01-11'