Did a film 's cinematographer produce and write M0 's sequel
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x2 .
?x0 ns:film.writer.film ?x2 .
?x1 a ns:film.film .
?x2 ns:film.film.prequel M0
}