Was a film 's prequel 's prequel edited by , executive produced by , produced by , directed by , and written by M0
SELECT count(*) WHERE {
?x0 ns:film.film.directed_by M0 .
?x0 ns:film.film.edited_by M0 .
?x0 ns:film.film.executive_produced_by M0 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.sequel ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 ns:film.film.sequel ?x2 .
?x2 a ns:film.film
}