instruction: has patient 021-124150 had an allergy since 1 year ago?
response: 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 = '021-124150')) AND DATETIME(allergy.allergytime) >= DATETIME(CURRENT_TIME(), '-1 year')