Did a character marry M2 , influence M1 , and influence a male founder of M3 and M4
SELECT count(*) WHERE {
?x0 a ns:fictional_universe.fictional_character .
?x0 ns:influence.influence_node.influenced ?x1 .
?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 M2 .
?x1 ns:organization.organization_founder.organizations_founded M3 .
?x1 ns:organization.organization_founder.organizations_founded M4 .
?x1 ns:people.person.gender ns:m.05zppz .
FILTER ( ?x0 != M2 )
}