Did M3 's star write a sequel of a film and write M0 , M1 , and M2
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M3 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x1 ns:film.film.prequel ?x2 .
?x2 a ns:film.film
}