What did a producer and distributor of M0 and M1 write
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M0 .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film M1 .
?x1 ns:film.producer.film|ns:film.production_company.films M0 .
?x1 ns:film.producer.film|ns:film.production_company.films M1
}