Were M4 and M5 directed by a cinematographer of M1 , M2 , and M3 and edited by a art director
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.cinematographer.film M1 .
?x1 ns:film.cinematographer.film M2 .
?x1 ns:film.cinematographer.film M3 .
M4 ns:film.film.directed_by ?x1 .
M4 ns:film.film.edited_by ?x0 .
M5 ns:film.film.directed_by ?x1 .
M5 ns:film.film.edited_by ?x0
}