Was M3 edited by a Spanish editor of M2 and written by M0 's art director
SELECT count(*) WHERE {
?x0 ns:film.film_art_director.films_art_directed M0 .
?x1 ns:film.editor.film M2 .
?x1 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0
}