Did M1 , M2 , and M3 distribute and produce a film 's prequel
SELECT count(*) WHERE {
?x0 ns:film.film.sequel ?x1 .
?x1 a ns:film.film .
M1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M1 ns:film.producer.film|ns:film.production_company.films ?x0 .
M2 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M2 ns:film.producer.film|ns:film.production_company.films ?x0 .
M3 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x0 .
M3 ns:film.producer.film|ns:film.production_company.films ?x0
}