instruction: calculate the average days for which inpatient hospital admission patients were hospitalized.
response: SELECT AVG(demographic.days_stay) FROM demographic WHERE demographic.admission_location = "TRANSFER FROM HOSP/EXTRAM"