Did M1 and M5 influence M2 , influence a screenwriter , influence M3 , and influence M4
SELECT count(*) WHERE {
?x0 a ns:film.writer .
M1 ns:influence.influence_node.influenced ?x0 .
M1 ns:influence.influence_node.influenced M2 .
M1 ns:influence.influence_node.influenced M3 .
M1 ns:influence.influence_node.influenced M4 .
M5 ns:influence.influence_node.influenced ?x0 .
M5 ns:influence.influence_node.influenced M2 .
M5 ns:influence.influence_node.influenced M3 .
M5 ns:influence.influence_node.influenced M4
}