Was M2 edited by M1 's prequel 's director and writer and written by M0 's cinematographer and director
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film M0 .
?x0 ns:film.director.film M0 .
?x1 ns:film.director.film ?x2 .
?x1 ns:film.writer.film ?x2 .
?x2 ns:film.film.sequel M1 .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0
}