What was written by M0 and M1 and produced by M2 's prequel 's cinematographer and editor
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
?x1 ns:film.cinematographer.film ?x2 .
?x1 ns:film.editor.film ?x2 .
?x2 ns:film.film.sequel M2
}