Were M2 , M4 , and M5 edited by M3 and directed by a art director that M1 starred
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.actor.film/ns:film.performance.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by M3 .
M4 ns:film.film.directed_by ?x0 .
M4 ns:film.film.edited_by M3 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.edited_by M3
}