Was M2 produced by a film 's art director and star and written by a art director
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.actor.film/ns:film.performance.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 ?x1 .
M2 ns:film.film.written_by ?x0
}