What was written by a film 's sequel 's writer and written by M0
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 ns:film.writer.film ?x2 .
?x2 ns:film.film.prequel ?x3 .
?x3 a ns:film.film
}