Did M2 direct , executive produce , and write a film whose sequel was produced and distributed by M1
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.sequel ?x1 .
?x1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x1 ns:film.film.produced_by|ns:film.film.production_companies M1 .
M2 ns:film.director.film ?x0 .
M2 ns:film.producer.films_executive_produced ?x0 .
M2 ns:film.writer.film ?x0
}