Did M4 marry a actor , influence M5 , and marry a film producer that M2 and M3 married
SELECT count(*) WHERE {
?x0 a ns:film.actor .
?x1 a ns:film.producer .
?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 M2 .
?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 M3 .
FILTER ( ?x1 != M2 ) .
FILTER ( ?x1 != M3 ) .
FILTER ( M4 != ?x0 ) .
FILTER ( M4 != ?x1 ) .
M4 ns:influence.influence_node.influenced M5 .
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 ?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 ?x1
}