instruction: how many patients with upper gi bleed were on medicare insurance?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.insurance = "Medicare" AND demographic.diagnosis = "UPPER GI BLEED"