What did a female person that M5 and M6 married and M1 , M2 , and M3 influenced direct
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x1 a ns:people.person .
?x1 ns:influence.influence_node.influenced_by M1 .
?x1 ns:influence.influence_node.influenced_by M2 .
?x1 ns:influence.influence_node.influenced_by M3 .
?x1 ns:people.person.gender ns:m.02zsn .
?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 M5 .
?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 M6 .
FILTER ( ?x1 != M5 ) .
FILTER ( ?x1 != M6 )
}