Did a art director and editor of a prequel of M2 write M0 and produce M1
SELECT count(*) WHERE {
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films M1 .
?x0 ns:film.writer.film M0 .
?x1 ns:film.film.sequel M2
}