What did M0 and M1 write and a distributor of M2 's sequel produce
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
?x1 ns:film.film_distributor.films_distributed/ns:film.film_film_distributor_relationship.film ?x2 .
?x2 ns:film.film.prequel M2
}