Was a cinematographer influenced by M2 's writer and influenced by M1
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x1 ns:film.writer.film M2
}