Did M2 influence a screenwriter that influenced and was influenced by M1
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced_by M1 .
M2 ns:influence.influence_node.influenced ?x0
}