What did M0 's distributor produce and M1 's writer direct
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x2 .
?x1 ns:film.writer.film M1 .
?x2 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M0
}