What was written by M5 's producer , directed by M4 , and written by M0 , M1 , M2 , and M3
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M4 .
?x0 ns:film.film.written_by ?x1 .
?x0 ns:film.film.written_by M0 .
?x0 ns:film.film.written_by M1 .
?x0 ns:film.film.written_by M2 .
?x0 ns:film.film.written_by M3 .
?x1 ns:film.producer.film|ns:film.production_company.films M5
}