question: Was M6 written by and produced by a Japanese writer of M0 , M1 , M2 , M3 , and M4
query: SELECT count(*) WHERE {
  ?x0 ns:film.writer.film M0 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x0 ns:film.writer.film M4 .
  ?x0 ns:people.person.nationality ns:m.03_3d .
  M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
  M6 ns:film.film.written_by ?x0
  }