What film director influenced M1 and M2 , was influenced by M4 's spouse , and influenced M3 's executive producer
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.director .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced_by ?x2 .
?x1 ns:film.producer.films_executive_produced M3 .
?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 M4 .
FILTER ( ?x2 != M4 )
}