What was written by a character , produced by M0 , M1 , M2 , M3 , and M4 , and directed by M5
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M5 .
?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.produced_by|ns:film.film.production_companies M3 .
?x0 ns:film.film.produced_by|ns:film.film.production_companies M4 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:fictional_universe.fictional_character
}