Which film whose prequel was produced and distributed by M2 was M0 's prequel
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.prequel ?x1 .
?x0 ns:film.film.sequel M0 .
?x1 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M2 .
?x1 ns:film.film.produced_by|ns:film.film.production_companies M2
}