Was a film 's prequel and sequel directed by M2 's star and produced by M0
SELECT count(*) WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.prequel ?x2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.sequel ?x2 .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x2 a ns:film.film
}