instruction: from total number of patients who had a hospital stay of 7 days, calculate the average age of those who had hypertension (rule out coronary artery disease\cardiac cath) as primary disease.
response: SELECT AVG(demographic.age) FROM demographic WHERE demographic.diagnosis = "HYPERTENSION;RULE OUT CORONARY ARTERY DISEASE\CARDIAC CATH" AND demographic.days_stay = "7"