question: What film was written by M2 's cinematographer and star and starred M1
query: SELECT DISTINCT ?x0 WHERE {
  ?x0 a ns:film.film .
  ?x0 ns:film.film.starring/ns:film.performance.actor M1 .
  ?x0 ns:film.film.written_by ?x1 .
  ?x1 ns:film.actor.film/ns:film.performance.film M2 .
  ?x1 ns:film.cinematographer.film M2
  }