What film producer that wrote M1 and M2 and wrote M3 was M4 's art director and writer
SELECT DISTINCT ?x0 WHERE {
?x0 a ns:film.producer .
?x0 ns:film.film_art_director.films_art_directed M4 .
?x0 ns:film.writer.film M1 .
?x0 ns:film.writer.film M2 .
?x0 ns:film.writer.film M3 .
?x0 ns:film.writer.film M4
}