Was M1 a cinematographer that a sequel of M0 was executive produced by and was written by
SELECT count(*) WHERE {
?x0 ns:film.film.prequel M0 .
M1 a ns:film.cinematographer .
M1 ns:film.producer.films_executive_produced ?x0 .
M1 ns:film.writer.film ?x0
}