What was written by a film producer that M2 was edited by and was written by and executive produced by M0
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by M0 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.producer .
?x1 ns:film.editor.film M2 .
?x1 ns:film.writer.film M2
}