ปีที่แล้วผู้ป่วย 5520 เคยเข้าห้องฉุกเฉินหรือไม่ ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
have patient 5520 been to the emergency room in the last year?It is not neccessary to use all the tables.
 patients:  row_id [ number]  subject_id [ number]  gender [ text]  dob [ time]  dod [ time] 
SELECT COUNT(*) > 0 FROM admissions WHERE admissions.subject_id = 5520 AND admissions.admission_location = 'emergency room admit' AND DATETIME(admissions.admittime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-1 year')