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