Was M2 directed by a actor and edited by M0 's editor , art director , and writer
SELECT count(*) WHERE {
?x0 ns:film.editor.film M0 .
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.writer.film M0 .
?x1 a ns:film.actor .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by ?x0
}