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