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