Was M3 directed by M2 's Spanish producer , written by a art director , and edited by M4
SELECT count(*) WHERE {
?x0 a ns:film.film_art_director .
?x1 ns:film.producer.film|ns:film.production_company.films M2 .
?x1 ns:people.person.nationality ns:m.06mkj .
M3 ns:film.film.directed_by ?x1 .
M3 ns:film.film.edited_by M4 .
M3 ns:film.film.written_by ?x0
}