Database: museum_visit
Question: Find the average number of staff working for the museums that were open before 2009.
SQL: select avg(num_of_staff) from museum where open_year  <  2009