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