Who was influenced by a spouse of a film 's writer and executive producer , married M2 , and influenced M1
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced_by ?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 M2 .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x2 .
?x2 ns:film.producer.films_executive_produced ?x3 .
?x2 ns:film.writer.film ?x3 .
?x3 a ns:film.film .
FILTER ( ?x0 != M2 ) .
FILTER ( ?x1 != ?x2 )
}