ชื่อของผลลัพธ์ที่คนไข้ 51177 มีล่าสุดตั้งแต่ 08/01/2101 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the name of the outputs that patient 51177 last had since 08/01/2101?It is not neccessary to use all the tables.
 inputevents_cv:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icustay_id [ number]  charttime [ time]  itemid [ number]  amount [ number] 
SELECT d_items.label FROM d_items WHERE d_items.itemid IN (SELECT outputevents.itemid 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 = 51177)) AND STRFTIME('%y-%m-%d', outputevents.charttime) >= '2101-08-01' ORDER BY outputevents.charttime DESC LIMIT 1)