instruction: how many patients were in ward 267 until 4 years ago.
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 267 AND DATETIME(patient.unitadmittime) <= DATETIME(CURRENT_TIME(), '-4 year')