What did M0 write and a cinematographer that M2 was directed by and was edited by write
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 a ns:film.cinematographer .
?x1 ns:film.director.film M2 .
?x1 ns:film.editor.film M2
}