What did M0 write , a film director direct , and a producer of a film direct
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by ?x1 .
?x0 ns:film.film.directed_by ?x2 .
?x0 ns:film.film.written_by M0 .
?x1 a ns:film.director .
?x2 ns:film.producer.film|ns:film.production_company.films ?x3 .
?x3 a ns:film.film
}