What was directed by M0 and written by a Spanish character
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.directed_by M0 .
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:fictional_universe.fictional_character .
?x1 ns:people.person.nationality ns:m.06mkj
}