ในปีนี้ผู้ป่วยหมายเลข 035-2057 มีอาการแพ้หรือไม่?ไม่จำเป็นต้องใช้โต๊ะทั้งหมด
in this year has patient 035-2057 have had any allergy?It is not neccessary to use all the tables.
 intakeoutput:  intakeoutputid [ number]  patientunitstayid [ number]  cellpath [ text]  celllabel [ text]  cellvaluenumeric [ number]  intakeoutputtime [ time] 
SELECT COUNT(*) > 0 FROM allergy WHERE allergy.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '035-2057')) AND DATETIME(allergy.allergytime, 'start of year') = DATETIME(CURRENT_TIME(), 'start of year', '-0 year')