Was M4 's sequel distributed by M0 , M1 , M2 , and M3 and produced by M5 's writer
SELECT count(*) WHERE {
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M0 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M1 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
?x0 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M3 .
?x0 ns:film.film.prequel M4 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x1 ns:film.writer.film M5
}