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