instruction: how many patients diagnosed with chronic diastolic heart failure were hospitalized for more than 30 days?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.days_stay > "30" AND diagnoses.short_title = "Chr diastolic hrt fail"