Context: CREATE TABLE table_name_58 (age_at_appointment INTEGER, portfolio_attachment VARCHAR)
Question: What is the average age at appointment of those attached to security?
Answer: SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security"