Did M1 's sequel star a producer of M2 and star M0
SELECT count(*) WHERE {
?x0 ns:film.film.prequel M1 .
?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
?x0 ns:film.film.starring/ns:film.performance.actor M0 .
?x1 ns:film.producer.film|ns:film.production_company.films M2
}