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