Was M2 produced by a film producer and edited by M1 's art director , writer , and costume designer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 ns:film.film_art_director.films_art_directed M1 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}