Was a sequel of M0 directed and written by M1 's executive producer and cinematographer
SELECT count(*) WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.prequel M0 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.producer.films_executive_produced M1
}