ค่าแรกของการทดสอบ anion gap ในห้องปฏิบัติการของผู้ป่วย 30525 ในระหว่างการนัดตรวจโรงพยาบาลครั้งสุดท้ายคือเท่าใด ไม่จำเป็นที่จะต้องใช้ตารางทั้งหมด
what was the first value of the anion gap lab test of patient 30525 during the last hospital visit.It is not neccessary to use all the tables.
 admissions:  row_id [ number]  subject_id [ number]  hadm_id [ number]  admittime [ time]  dischtime [ time]  admission_type [ text]  admission_location [ text]  discharge_location [ text]  insurance [ text]  language [ text]  marital_status [ text]  ethnicity [ text]  age [ number] 
SELECT labevents.valuenum FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30525 AND NOT admissions.dischtime IS NULL ORDER BY admissions.admittime DESC LIMIT 1) AND labevents.itemid IN (SELECT d_labitems.itemid FROM d_labitems WHERE d_labitems.label = 'anion gap') ORDER BY labevents.charttime LIMIT 1