Was a screenwriter influenced by M4 's star and art director and influenced by M1 , M2 , and M3
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by ?x1 .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:influence.influence_node.influenced_by M3 .
?x1 ns:film.actor.film/ns:film.performance.film M4 .
?x1 ns:film.film_art_director.films_art_directed M4
}