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