Were M2 and M3 edited by , directed by , and executive produced by a actor that wrote M1
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.directed_by ?x0 .
M3 ns:film.film.edited_by ?x0 .
M3 ns:film.film.executive_produced_by ?x0
}