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