Was M2 executive produced by a film editor , written by M1 's writer , editor , and executive producer , and directed by M3
SELECT count(*) WHERE {
?x0 a ns:film.editor .
?x1 ns:film.editor.film M1 .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x1
}