Was M2 edited by M4 , written by a Spanish costume designer , and produced by M3
SELECT count(*) WHERE {
?x0 a ns:film.film_costumer_designer .
?x0 ns:people.person.nationality ns:m.06mkj .
M2 ns:film.film.edited_by M4 .
M2 ns:film.film.produced_by|ns:film.film.production_companies M3 .
M2 ns:film.film.written_by ?x0
}