Did M3 's prequel 's editor write M1 , write M2 , and edit M0
SELECT count(*) WHERE {
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.editor.film M0 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x1 ns:film.film.sequel M3
}