Was M2 produced by a art director that M1 was written and executive produced by and produced by M3
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.producer.films_executive_produced M1 .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3
}