question: Which film that M1 , M2 , and M3 produced was produced by , starred , and was written by a costume designer
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:film.film .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies M2 .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies M3 .
  ?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
  ?x0 ns:film.film.written_by ?x1 .
  ?x1 a ns:film.film_costumer_designer
  }