question: What was written by a writer of M1 , M2 , and M3 and written by M0 's producer and star
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.film.written_by ?x1 .
  ?x0 ns:film.film.written_by ?x2 .
  ?x1 ns:film.actor.film/ns:film.performance.film M0 .
  ?x1 ns:film.producer.film|ns:film.production_company.films M0 .
  ?x2 ns:film.writer.film M1 .
  ?x2 ns:film.writer.film M2 .
  ?x2 ns:film.writer.film M3
  }