Were M2 and M5 produced by M3 and M4 , directed by a actor of M1 , and produced by 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.character M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M4 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M4
}