ครั้งสุดท้ายที่ผู้ป่วย 6440 มีค่ากลูโคสสูงสุดนับตั้งแต่ 12/2102 คืออะไร? ไม่จำเป็นต้องใช้ตารางทั้งหมด
what was the last time that patient 6440 had the maximum value of glucose since 12/2102?It is not neccessary to use all the tables.
 cost:  row_id [ number]  subject_id [ number]  hadm_id [ number]  event_type [ text]  event_id [ number]  chargetime [ time]  cost [ number] 
SELECT labevents.charttime FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 6440) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') AND STRFTIME('%y-%m', labevents.charttime) >= '2102-12' ORDER BY labevents.valuenum DESC, labevents.charttime DESC LIMIT 1