Was M2 written by M0 's star , editor , and art director , produced by a actor , and edited by M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.film_art_director.films_art_directed M0 .
?x1 a ns:film.actor .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by ?x0
}