Was a film whose prequel was directed by , starred , and was written by a writer of M0 and M1 M2
SELECT count(*) WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.writer.film M0 .
?x1 ns:film.writer.film M1 .
M2 a ns:film.film .
M2 ns:film.film.prequel ?x0
}