Was M2 written and executive produced by a Mexican cinematographer of a film
SELECT count(*) WHERE {
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:people.person.nationality ns:m.0b90_r .
?x1 a ns:film.film .
M2 ns:film.film.executive_produced_by ?x0 .
M2 ns:film.film.written_by ?x0
}