Write SQL query to solve given problem: What is the average number of crews for a movie?. Keep the solution inside sql tag ```sql [SQL-Query] ```
SELECT CAST(SUM(CD) AS REAL) / COUNT(movie_id) FROM ( SELECT movie_id, COUNT(person_id) AS CD FROM movie_crew GROUP BY movie_id )