What was written by a male Spanish film director that played M2
SELECT DISTINCT ?x0 WHERE {
?x0 ns:film.film.written_by ?x1 .
?x1 a ns:film.director .
?x1 ns:film.actor.film/ns:film.performance.character M2 .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.nationality ns:m.06mkj
}