What was written by M0 and executive produced by a screenwriter that executive produced , wrote , and directed M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 a ns:film.writer .
?x1 ns:film.director.film M2 .
?x1 ns:film.producer.films_executive_produced M2 .
?x1 ns:film.writer.film M2
}