Were M2 and M3 produced by and written by M1 's sequel 's Mexican director
SELECT count(*) WHERE {
?x0 ns:film.director.film ?x1 .
?x0 ns:people.person.nationality ns:m.0b90_r .
?x1 ns:film.film.prequel M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M3 ns:film.film.written_by ?x0
}