Was M2 directed by a film editor and written by a editor and director of M0
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.editor.film M0 .
?x1 a ns:film.editor .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.written_by ?x0
}