question: Was a screenwriter that M2 , M3 , and M4 were written by and M5 and M6 were directed by a actor
query: SELECT count(*) WHERE {
  ?x0 a ns:film.actor .
  ?x0 a ns:film.writer .
  ?x0 ns:film.director.film M5 .
  ?x0 ns:film.director.film M6 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x0 ns:film.writer.film M4
  }