What was edited by and written by a film director that M1 was written by and starred
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.director .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.writer.film M1
}