Was M2 written by a screenwriter , directed by M3 , and written by a art director
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 a ns:film.writer .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by ?x1
}