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