Was a cinematographer M1 's prequel 's writer and director
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.director.film ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 ns:film.film.sequel M1
}