Was M2 produced by M0 's director and produced by a film 's director and art director
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x1 ns:film.director.film ?x2 .
?x1 ns:film.film_art_director.films_art_directed ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1
}