Was M2 produced by a film 's sequel 's art director , written by M0 's star , and written by M3
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M0 .
?x1 ns:film.film_art_director.films_art_directed ?x2 .
?x2 ns:film.film.prequel ?x3 .
?x3 a ns:film.film .
M2 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M2 ns:film.film.written_by ?x0 .
M2 ns:film.film.written_by M3
}