What costume designer of M1 wrote M0 and produced a prequel of M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film_costumer_designer.costume_design_for_film M1 .
?x0 ns:film.producer.film|ns:film.production_company.films ?x1 .
?x0 ns:film.writer.film M0 .
?x1 ns:film.film.sequel M2
}