What was produced by M0 , written by M3 's director and writer , and produced by M1 and M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.produced_by|ns:film.film.production_companies M0 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M1 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M2 .
?x0 ns:film.film.written_by ?x1 .
?x1 ns:film.director.film M3 .
?x1 ns:film.writer.film M3
}