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