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