Did a film 's costume designer , writer , cinematographer , art director , and editor write M0 and M1 and direct M2
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:film.director.film M2 .
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x0 ns:film.film_costumer_designer.costume_design_for_film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x1 a ns:film.film
}