Did M0 's sequel 's star direct M1 's prequel
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.director.film ?x2 .
?x1 ns:film.film.prequel M0 .
?x2 ns:film.film.sequel M1
}