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