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