Were M3 , M4 , and M5 edited by a costume designer of a film and produced by a Spanish writer of M0
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.06mkj .
?x1 ns:film.film_costumer_designer.costume_design_for_film ?x2 .
?x2 a ns:film.film .
M3 ns:film.film.edited_by ?x1 .
M3 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M4 ns:film.film.edited_by ?x1 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M5 ns:film.film.edited_by ?x1 .
M5 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}