instruction: what is the number of patients until 3 years ago that glucose is prescribed to?
response: SELECT COUNT(DISTINCT patient.uniquepid) FROM patient WHERE patient.patientunitstayid IN (SELECT medication.patientunitstayid FROM medication WHERE medication.drugname = 'glucose' AND DATETIME(medication.drugstarttime) <= DATETIME(CURRENT_TIME(), '-3 year'))