question: Which sequel of M1 was written by M0 and starred M2 's actor
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.film.prequel M1 .
  ?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
  ?x0 ns:film.film.written_by M0 .
  ?x1 ns:film.actor.film/ns:film.performance.character M2
  }