What actor that M1 was edited by and was written by was M2 's writer , cinematographer , and art director
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.actor .
?x0 ns:film.cinematographer.film M2 .
?x0 ns:film.editor.film M1 .
?x0 ns:film.film_art_director.films_art_directed M2 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2
}