Was M0 's sequel executive produced by a writer of M1 's prequel
SELECT count(*) WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.prequel M0 .
?x1 ns:film.writer.film ?x2 .
?x2 ns:film.film.sequel M1
}