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