Was M2 written by M3 , edited by a art director , and written by a film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x1 a ns:film.film_art_director .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3
}