Was M4 directed by a film editor and written by a star of M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.actor.film/ns:film.performance.film M2 .
?x1 a ns:film.editor .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.written_by ?x0
}