Were M2 , M3 , and M4 edited by a actor , executive produced by a actor , and edited by M1 's writer
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 a ns:film.actor .
?x2 ns:film.writer.film M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.edited_by ?x2 .
M2 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.edited_by ?x2 .
M3 ns:film.film.executive_produced_by ?x0 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.edited_by ?x2 .
M4 ns:film.film.executive_produced_by ?x0
}