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