Were M2 and M5 written by M3 and M4 and edited by a art director that directed M1
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.director.film M1 .
M2 ns:film.film.edited_by ?x0 .
M2 ns:film.film.written_by M3 .
M2 ns:film.film.written_by M4 .
M5 ns:film.film.edited_by ?x0 .
M5 ns:film.film.written_by M3 .
M5 ns:film.film.written_by M4
}