What did a film director that M1 was written by write and executive produce
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.executive_produced_by ?x1 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.director .
?x1 ns:film.writer.film M1
}