Was M2 directed by M1 's producer , writer , and director , directed by M3 , and edited by a art director
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.director.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M1 .
?x1 ns:film.writer.film M1 .
M2 ns:film.film.directed_by ?x1 .
M2 ns:film.film.directed_by M3 .
M2 ns:film.film.edited_by ?x0
}