Was M2 edited by a actor , executive produced by a screenwriter , and written by M3
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 a ns:film.actor .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by M3
}