ในปีที่แล้วผู้ป่วย 58649 ไปเยี่ยมห้องผู้ป่วยหนักกี่ครั้ง?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
how many times during the last year patient 58649 had visited the intensive care unit?It is not neccessary to use all the tables.
 outputevents:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  charttime [ time]  itemid [ number]  value [ number] 
SELECT COUNT(DISTINCT icustays.icustay_id) FROM icustays WHERE icustays.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 58649) AND DATETIME(icustays.intime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')