What film was written by a screenwriter , starred M2 's actor , and starred M1
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.starring/ns:film.performance.actor ?x1 .
?x0 ns:film.film.starring/ns:film.performance.actor M1 .
?x0 ns:film.film.written_by ?x2 .
?x1 ns:film.actor.film/ns:film.performance.character M2 .
?x2 a ns:film.writer
}