Was M2 a film that a cinematographer executive produced and a production company produced
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x1 a ns:film.production_company .
M2 a ns:film.film .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}