question: What person that M1 and M2 were written by and directed by did M3 , M4 , and M5 star
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:people.person .
  ?x0 ns:film.actor.film/ns:film.performance.film M3 .
  ?x0 ns:film.actor.film/ns:film.performance.film M4 .
  ?x0 ns:film.actor.film/ns:film.performance.film M5 .
  ?x0 ns:film.director.film M1 .
  ?x0 ns:film.director.film M2 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2
  }