Were M3 and M5 written by M4 , written by a art director , and edited by a Spanish costume designer
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 a ns:film.film_costumer_designer .
?x1 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.written_by ?x0 .
M3 ns:film.film.written_by M4 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.written_by ?x0 .
M5 ns:film.film.written_by M4
}