instruction: has patient 50480 ever had a medication prescribed until 1 year ago?
response: SELECT COUNT(*) > 0 FROM prescriptions WHERE prescriptions.hadm_id IN (SELECT admissions.hadm_id FROM admissions WHERE admissions.subject_id = 50480) AND DATETIME(prescriptions.startdate) <= DATETIME(CURRENT_TIME(), '-1 year')