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