Was M0 a Mexican screenwriter that wrote M2 and directed M4 and M5
SELECT count(*) WHERE {
M0 a ns:film.writer .
M0 ns:film.director.film M4 .
M0 ns:film.director.film M5 .
M0 ns:film.writer.film M2 .
M0 ns:people.person.nationality ns:m.0b90_r
}