Were M2 and M3 influenced by a art director that M1 starred and was written by
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.writer.film M1 .
M2 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x0
}