Who influenced a character 's parent 's parent , influenced M1 , and influenced a character 's spouse
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced ?x2 .
?x0 ns:influence.influence_node.influenced M1 .
?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 ?x3 .
?x2 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x4 .
?x3 a ns:fictional_universe.fictional_character .
?x4 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x5 .
?x5 a ns:fictional_universe.fictional_character .
FILTER ( ?x1 != ?x3 )
}