question: Which screenwriter that a film 's prequel starred wrote M1 , M2 , and M3 and executive produced M4
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
  ?x0 ns:film.producer.films_executive_produced M4 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x1 ns:film.film.sequel ?x2 .
  ?x2 a ns:film.film
  }