Was a film written by and executive produced by a cinematographer produced and written by a cinematographer of M2
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x1 a ns:film.cinematographer .
?x2 ns:film.cinematographer.film M2
}