Was M2 a screenwriter that M1 's producer was influenced by , a art director was influenced by , and M4 influenced
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
M2 a ns:film.writer .
M2 ns:influence.influence_node.influenced ?x0 .
M2 ns:influence.influence_node.influenced ?x1 .
M2 ns:influence.influence_node.influenced_by M4
}