Were M2 and M3 directed by M1 's sequel 's star and edited by a screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x1 ns:film.actor.film/ns:film.performance.film ?x2 .
?x2 ns:film.film.prequel M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.edited_by ?x0 .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.edited_by ?x0
}