question: Were M3 , M4 , and M5 written by M0 's editor and star and edited by M2 's male director
query: SELECT count(*) WHERE {
  ?x0 ns:film.actor.film/ns:film.performance.film M0 .
  ?x0 ns:film.editor.film M0 .
  ?x1 ns:film.director.film M2 .
  ?x1 ns:people.person.gender ns:m.05zppz .
  M3 ns:film.film.edited_by ?x1 .
  M3 ns:film.film.written_by ?x0 .
  M4 ns:film.film.edited_by ?x1 .
  M4 ns:film.film.written_by ?x0 .
  M5 ns:film.film.edited_by ?x1 .
  M5 ns:film.film.written_by ?x0
  }