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