Did a executive producer of M2 edit M0 and M1 and direct a film 's sequel
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.producer.films_executive_produced M2 .
?x1 ns:film.film.prequel ?x2 .
?x2 a ns:film.film
}