instruction: how many patients had been staying in ward 1048 since 3 years ago?
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.wardid = 1048 AND DATETIME(patient.unitadmittime) >= DATETIME(CURRENT_TIME(), '-3 year')