What was written by a film producer , written by M0 , and edited by M2 's writer , cinematographer , and producer
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by ?x2 .
?x0 ns:film.film.written_by M0 .
?x1 ns:film.cinematographer.film M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.writer.film M2 .
?x2 a ns:film.producer
}