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