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