Were M2 and M3 written by a film director and edited by a film 's art director
SELECT count(*) WHERE {
?x0 a ns:film.director .
?x1 ns:film.film_art_director.films_art_directed ?x2 .
?x2 a ns:film.film .
M2 ns:film.film.edited_by ?x1 .
M2 ns:film.film.written_by ?x0 .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0
}