Were M5 and M6 produced by a Mexican film director that was influenced by M2 and M3 and influenced M1
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x0 ns:people.person.nationality ns:m.0b90_r .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}