Was M2 edited by a costume designer , edited by M3 , directed by M4 , and written by a producer of M0
SELECT count(*) WHERE {
?x0 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 a ns:film.film_costumer_designer .
M2 ns:film.film.directed_by M4 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.written_by ?x0
}