What was produced by M1 's distributor and written by M0
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.written_by M0 .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1
}