ผู้ป่วยระดับกลูโคส 28443 วัดครั้งสุดท้ายในการมาโรงพยาบาลปัจจุบันมากกว่าการตรวจวัดครั้งสุดท้ายในการมาโรงพยาบาลปัจจุบันหรือไม่ ไม่จำเป็นต้องใช้ตารางทั้งหมด
is glucose patient 28443 has last measured on the current hospital visit greater than it was second to last measured on the current hospital visit?It is not neccessary to use all the tables.
 d_icd_diagnoses:  row_id [ number]  icd9_code [ text]  short_title [ text]  long_title [ text] 
SELECT (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') ORDER BY labevents.charttime DESC LIMIT 1) > (SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 28443 AND admissions.dischtime IS NULL) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'glucose') ORDER BY labevents.charttime DESC LIMIT 1 OFFSET 1)