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