instruction: when patient 006-149778 since 6 years ago last received a procedure?
response: SELECT treatment.treatmenttime FROM treatment WHERE treatment.patientunitstayid IN (SELECT patient.patientunitstayid FROM patient WHERE patient.patienthealthsystemstayid IN (SELECT patient.patienthealthsystemstayid FROM patient WHERE patient.uniquepid = '006-149778')) AND DATETIME(treatment.treatmenttime) >= DATETIME(CURRENT_TIME(), '-6 year') ORDER BY treatment.treatmenttime DESC LIMIT 1