Was M3 produced by a character and written by a Mexican film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.nationality ns:m.0b90_r .
?x1 a ns:fictional_universe.fictional_character .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M3 ns:film.film.written_by ?x0
}