question: Were M3 and M5 written by M0 's producer , edited by M4 , and produced by a Spanish art director
query: SELECT count(*) WHERE {
  ?x0 ns:film.producer.film|ns:film.production_company.films M0 .
  ?x1 a ns:film.film_art_director .
  ?x1 ns:people.person.nationality ns:m.06mkj .
  M3 ns:film.film.edited_by M4 .
  M3 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M3 ns:film.film.written_by ?x0 .
  M5 ns:film.film.edited_by M4 .
  M5 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
  M5 ns:film.film.written_by ?x0
  }