Was M3 executive produced by and written by a screenwriter that M1 was edited by and M2 was directed by
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:film.director.film M2 .
?x0 ns:film.editor.film M1 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x0
}