What was written by M0 and M1 and edited by M2 's writer , producer , cinematographer , costume designer , and editor
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.edited_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
?x1 ns:film.cinematographer.film M2 .
?x1 ns:film.editor.film M2 .
?x1 ns:film.film_costumer_designer.costume_design_for_film M2 .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:film.writer.film M2
}