Which prequel of M1 's sequel was produced by a screenwriter and starred M0
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.sequel ?x2 .
?x0 ns:film.film.starring/ns:film.performance.actor M0 .
?x1 a ns:film.writer .
?x2 ns:film.film.prequel M1
}