ผู้ป่วย 5142 มาโรงพยาบาลครั้งแรกเมื่อ 1 ปีที่แล้วเมื่อใด?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
when did patient 5142 come since 1 year ago for the first time to the hospital?It is not neccessary to use all the tables.
 procedures_icd:  row_id [ number]  subject_id [ number]  hadm_id [ number]  icd9_code [ text]  charttime [ time] 
SELECT admissions.admittime FROM admissions WHERE admissions.subject_id = 5142 AND DATETIME(admissions.admittime) >= DATETIME(CURRENT_TIME(), '-1 year') ORDER BY admissions.admittime LIMIT 1