Was a film 's sequel and prequel produced by a production company and executive produced by M0
SELECT count(*) WHERE {
?x0 ns:film.film.executive_produced_by M0 .
?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 a ns:film.production_company
}