question: Were M3 and M5 executive produced by a Spanish screenwriter , directed by M2 's writer , and written by M4
query: SELECT count(*) WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:people.person.nationality ns:m.06mkj .
  ?x1 ns:film.writer.film M2 .
  M3 ns:film.film.directed_by ?x1 .
  M3 ns:film.film.executive_produced_by ?x0 .
  M3 ns:film.film.written_by M4 .
  M5 ns:film.film.directed_by ?x1 .
  M5 ns:film.film.executive_produced_by ?x0 .
  M5 ns:film.film.written_by M4
  }