Was M2 edited by a writer of M1 's prequel and written by a cinematographer
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?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
}