Did M3 influence M2 's spouse and influence a female person 's child
SELECT count(*) WHERE {
?x0 ns:people.person.parents|ns:fictional_universe.fictional_character.parents|ns:organization.organization.parent/ns:organization.organization_relationship.parent ?x1 .
?x1 a ns:people.person .
?x1 ns:people.person.gender ns:m.02zsn .
?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 M2 .
FILTER ( ?x2 != M2 ) .
M3 ns:influence.influence_node.influenced ?x0 .
M3 ns:influence.influence_node.influenced ?x2
}