instruction: how many of the patients admitted to emergency had a hospital stay of more than 10 days?
response: SELECT COUNT(DISTINCT demographic.subject_id) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.days_stay > "10"