question: What was produced by M0 , written by M2 's director , and executive produced by a actor
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 ns:film.film.executive_produced_by ?x1 .
  ?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
  ?x0 ns:film.film.written_by ?x2 .
  ?x1 a ns:film.actor .
  ?x2 ns:film.director.film M2
  }