instruction: calculate the average age of emergency hospital admission patients who died before 2148.
response: SELECT AVG(demographic.age) FROM demographic WHERE demographic.admission_type = "EMERGENCY" AND demographic.dod_year < "2148.0"