What was produced by a cinematographer , edited by M0 , and written by a star of M1 and M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.edited_by M0 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x1 a ns:film.cinematographer .
?x2 ns:film.actor.film/ns:film.performance.film M1 .
?x2 ns:film.actor.film/ns:film.performance.film M2
}