Did M2 star a art director that M1 was written by and directed by
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.director.film M1 .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.starring/ns:film.performance.actor ?x0
}