Was M3 edited by a film director , executive produced by a art director , and written by M1 's director
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.director.film M1 .
?x2 a ns:film.director .
M3 ns:film.film.edited_by ?x2 .
M3 ns:film.film.executive_produced_by ?x0 .
M3 ns:film.film.written_by ?x1
}