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