instruction: Get me the diagnoses icd9 code and number of days for which the patient with patient id 4589 stayed in hospital.
response: SELECT demographic.days_stay, diagnoses.icd9_code FROM demographic INNER JOIN diagnoses ON demographic.hadm_id = diagnoses.hadm_id WHERE demographic.subject_id = "4589"