Was a film whose producer edited and directed M1 a film 's sequel and prequel
SELECT count(*) WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.prequel ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
?x0 ns:film.film.sequel ?x1 .
?x1 a ns:film.film .
?x2 ns:film.director.film M1 .
?x2 ns:film.editor.film M1
}