question: What screenwriter wrote M3 's prequel , directed M2 , and wrote M1
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.director.film M2 .
  ?x0 ns:film.writer.film ?x1 .
  ?x0 ns:film.writer.film M1 .
  ?x1 ns:film.film.sequel M3
  }