Was M2 directed by a writer and executive producer of M1 , edited by M3 and M4 , and directed by a actor
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 ns:film.producer.films_executive_produced M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by M3 .
M2 ns:film.film.edited_by M4
}