Did a film 's prequel 's executive producer write M0
SELECT count(*) WHERE {
?x0 ns:film.producer.films_executive_produced ?x1 .
?x0 ns:film.writer.film M0 .
?x1 ns:film.film.sequel ?x2 .
?x2 a ns:film.film
}