Was M2 influenced by a cinematographer that M1 was edited by and written by
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film M1 .
M2 ns:influence.influence_node.influenced_by ?x0
}