Did M1 and M3 produce M2 and distribute a film 's prequel and sequel
SELECT count(*) WHERE {
?x0 ns:film.film.prequel ?x1 .
?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 M2 .
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 M2
}