question: Did M3 's Spanish actor 's actor produce M1 and write M0
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.character ?x1 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M1 .
  ?x0 ns:film.writer.film M0 .
  ?x1 ns:film.actor.film/ns:film.performance.character M3 .
  ?x1 ns:people.person.nationality ns:m.06mkj
  }