Were M2 and M5 directed by a art director that wrote M1 , edited by M4 , and produced by M3
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x0 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x0 .
M2 ns:film.film.edited_by M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M5 ns:film.film.directed_by ?x0 .
M5 ns:film.film.edited_by M4 .
M5 ns:film.film.produced_by|ns:film.film.production_companies M3
}