Which film whose writer played M2 did M1 edit
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.film .
?x0 ns:film.film.edited_by M1 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.actor.film/ns:film.performance.character M2
}