Did M2 star a film 's art director , writer , star , and cinematographer and star a film director
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.cinematographer.film ?x1 .
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x0 ns:film.writer.film ?x1 .
?x1 a ns:film.film .
?x2 a ns:film.director .
M2 ns:film.film.starring/ns:film.performance.actor ?x0 .
M2 ns:film.film.starring/ns:film.performance.actor ?x2
}