What did M0 direct and a editor and star of M1 edit
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M0 .
?x0 ns:film.film.edited_by ?x1 .
?x1 ns:film.actor.film/ns:film.performance.film M1 .
?x1 ns:film.editor.film M1
}