question: What person married M1 and married a Mexican writer of M2 , M3 , M4 , and M5
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .
  ?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M1 .
  ?x1 ns:film.writer.film M2 .
  ?x1 ns:film.writer.film M3 .
  ?x1 ns:film.writer.film M4 .
  ?x1 ns:film.writer.film M5 .
  ?x1 ns:people.person.nationality ns:m.0b90_r .
  FILTER ( ?x0 != ?x1 ) .
  FILTER ( ?x0 != M1 )
  }