Were M2 and M3 founded by a person that M1 was influenced by and married
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced M1 .
?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 M1 .
FILTER ( ?x0 != M1 ) .
M2 ns:organization.organization.founders ?x0 .
M3 ns:organization.organization.founders ?x0
}