ผู้ป่วย 30789 ทำการทดสอบอะไรบ้างครั้งแรกในปี 01/ปีที่แล้ว?ไม่จำเป็นต้องใช้ตารางทั้งหมด
what tests did patient 30789 have first in 01/last year?It is not neccessary to use all the tables.
 d_icd_procedures:  row_id [ number]  icd9_code [ text]  short_title [ text]  long_title [ text] 
SELECT d_labitems.label FROM d_labitems WHERE d_labitems.itemid IN (SELECT labevents.itemid FROM labevents WHERE labevents.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 30789) AND DATETIME(labevents.charttime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year') AND STRFTIME('%m', labevents.charttime) = '01' ORDER BY labevents.charttime LIMIT 1)