Was M2 directed by M3 , produced by a film director , and written by a film editor
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 a ns:film.director .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by ?x0
}