Were M3 and M5 edited by a person , written by M1 's male art director , and edited by M4
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x1 a ns:people.person .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.written_by ?x0
}