Was M6 produced by and written by a film director whose Mexican parent wrote M1 , M2 , M3 , and M4
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .
?x1 ns:film.writer.film M1 .
?x1 ns:film.writer.film M2 .
?x1 ns:film.writer.film M3 .
?x1 ns:film.writer.film M4 .
?x1 ns:people.person.nationality ns:m.0b90_r .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.written_by ?x0
}