What is the average age at appointment of those attached to security?
CREATE TABLE table_name_58 (age_at_appointment INTEGER, portfolio_attachment VARCHAR)
SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security"
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: 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? [/INST] SELECT AVG(age_at_appointment) FROM table_name_58 WHERE portfolio_attachment = "security" </s>