Did M1 edit and produce M0 's sequel 's prequel
SELECT count(*) WHERE {
?x0 ns:film.film.sequel ?x1 .
?x1 ns:film.film.prequel M0 .
M1 ns:film.editor.film ?x0 .
M1 ns:film.producer.film|ns:film.production_company.films ?x0
}