Who was influenced by a male person 's Mexican spouse and influenced by a film 's writer
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 ns:film.writer.film ?x3 .
?x2 ns:people.person.nationality ns:m.0b90_r .
?x2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x4 .
?x3 a ns:film.film .
?x4 a ns:people.person .
?x4 ns:people.person.gender ns:m.05zppz .
FILTER ( ?x2 != ?x4 )
}