Was M1 a film director that M0 's art director and writer was influenced by and M3 influenced
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x0 ns:film.writer.film M0 .
M1 a ns:film.director .
M1 ns:influence.influence_node.influenced ?x0 .
M1 ns:influence.influence_node.influenced_by M3
}