What was written by M0 's writer , edited by a screenwriter , and directed by a writer and director of M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.edited_by ?x2 .
?x0 ns:film.film.written_by ?x3 .
?x1 ns:film.director.film M2 .
?x1 ns:film.writer.film M2 .
?x2 a ns:film.writer .
?x3 ns:film.writer.film M0
}