Was M2 written by M0 's director , directed by M3 , and directed by M1 's editor
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x1 ns:film.editor.film M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.written_by ?x0
}