What was directed by M0 and directed by a writer of a prequel of M1
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.directed_by M0 .
?x1 ns:film.writer.film ?x2 .
?x2 ns:film.film.sequel M1
}