What is the average number of crews for a movie?
average number of crews = divide(count(person_id), COUNT(movie_id))
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 )