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