question: Was a female person that M2 , M3 , and M4 were written by and M5 and M6 starred M0
query: SELECT count(*) WHERE {
  M0 a ns:people.person .
  M0 ns:film.actor.film/ns:film.performance.film M5 .
  M0 ns:film.actor.film/ns:film.performance.film M6 .
  M0 ns:film.writer.film M2 .
  M0 ns:film.writer.film M3 .
  M0 ns:film.writer.film M4 .
  M0 ns:people.person.gender ns:m.02zsn
  }