question: Was M2 written by and executive produced by M1 's prequel 's Spanish director
query: SELECT count(*) WHERE {
  ?x0 ns:film.director.film ?x1 .
  ?x0 ns:people.person.nationality ns:m.06mkj .
  ?x1 ns:film.film.sequel M1 .
  M2 ns:film.film.executive_produced_by ?x0 .
  M2 ns:film.film.written_by ?x0
  }