instruction: how many patients stay until 1 year ago in ward 613?
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 613 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-1 year')