Was M0 's writer M3 's Mexican Spanish director
SELECT count(*) WHERE {
?x0 ns:film.director.film M3 .
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.06mkj .
?x0 ns:people.person.nationality ns:m.0b90_r
}