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