question: Was M3 written by and executive produced by M1 's female American star
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film M1 .
  ?x0 ns:people.person.gender ns:m.02zsn .
  ?x0 ns:people.person.nationality ns:m.09c7w0 .
  M3 ns:film.film.executive_produced_by ?x0 .
  M3 ns:film.film.written_by ?x0
  }