Database: ship_1
Question: What is the average age of captains in different class?
SQL: select avg(age), class from captain group by class