Did M2 and M4 influence a person that founded M1 and marry M3
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:organization.organization_founder.organizations_founded M1 .
FILTER ( M2 != M3 ) .
FILTER ( M4 != M3 ) .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M3 .
M4 ns:influence.influence_node.influenced ?x0 .
M4 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M3
}