instruction: what is the number of patients whose days of hospital stay is greater than 1 and diagnoses long title is end stage renal disease?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "1" AND diagnoses.long_title = "End stage renal disease"