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