Was M3 influenced by a cinematographer that wrote M1 and M2 and influenced by M4 and M5
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by M4 .
M3 ns:influence.influence_node.influenced_by M5
}