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