Did M0 's writer influence M1 and M2 , influence M3 , and influence M4 's prequel 's cinematographer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:influence.influence_node.influenced ?x1 .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced M3 .
?x1 ns:film.cinematographer.film ?x2 .
?x2 ns:film.film.sequel M4
}