จำนวนอินพุตทั้งหมดที่ผู้ป่วย 031-3355 ได้รับคือเท่าใด?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what is the total amount of input patient 031-3355 had received?It is not neccessary to use all the tables.
 cost:  costid [ number]  uniquepid [ text]  patienthealthsystemstayid [ number]  eventtype [ text]  eventid [ number]  chargetime [ time]  cost [ number] 
SELECT SUM(intakeoutput.cellvaluenumeric) FROM intakeoutput WHERE intakeoutput.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '031-3355')) AND intakeoutput.cellpath LIKE '%intake%'