Who was a film director that a film starred and M2 was written by
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.director .
?x0 a ns:people.person .
?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
?x0 ns:film.writer.film M2 .
?x1 a ns:film.film
}