Were M2 , M3 , and M4 written by a film director and written by M0 's prequel 's art director
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed ?x1 .
?x1 ns:film.film.sequel M0 .
?x2 a ns:film.director .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by ?x2 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by ?x2 .
M4 ns:film.film.written_by ?x0 .
M4 ns:film.film.written_by ?x2
}