Did M2 star M3 , star a art director , writer , and star of M1 , and star M0 's art director
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.film_art_director.films_art_directed M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x1 .
M2 ns:film.film.starring/ns:film.performance.actor M3
}