Was a screenwriter that M4 's sequel 's producer influenced a cinematographer that influenced M2 and influenced M3
SELECT count(*) WHERE {
?x0 a ns:film.cinematographer .
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced M2 .
?x0 ns:influence.influence_node.influenced M3 .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x1 ns:film.producer.film|ns:film.production_company.films ?x2 .
?x2 ns:film.film.prequel M4
}