Which film whose sequel was written by M3 's director and starred M2 was M1 's sequel
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.prequel M1 .
?x0 ns:film.film.sequel ?x1 .
?x1 ns:film.film.starring/ns:film.performance.actor M2 .
?x1 ns:film.film.written_by ?x2 .
?x2 ns:film.director.film M3
}