Was a film 's sequel produced by and distributed by M0 's prequel 's producer
SELECT count(*) WHERE {
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor ?x1 .
?x0 ns:film.film.prequel ?x2 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 ns:film.producer.film|ns:film.production_company.films ?x3 .
?x2 a ns:film.film .
?x3 ns:film.film.sequel M0
}