Who wrote a film , edited M1 , and wrote M2 's prequel
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:people.person .
?x0 ns:film.editor.film M1 .
?x0 ns:film.writer.film ?x1 .
?x0 ns:film.writer.film ?x2 .
?x1 ns:film.film.sequel M2 .
?x2 a ns:film.film
}