Did M1 's director and star edit M0 and edit a prequel of a sequel of a film
SELECT count(*) WHERE {
?x0 ns:film.actor.film/ns:film.performance.film M1 .
?x0 ns:film.director.film M1 .
?x0 ns:film.editor.film ?x1 .
?x0 ns:film.editor.film M0 .
?x1 ns:film.film.sequel ?x2 .
?x2 ns:film.film.prequel ?x3 .
?x3 a ns:film.film
}