question: Was M2 directed by M3 and written by a film 's Spanish star
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film ?x1 .
  ?x0 ns:people.person.nationality ns:m.06mkj .
  ?x1 a ns:film.film .
  M2 ns:film.film.directed_by M3 .
  M2 ns:film.film.written_by ?x0
  }