question: Was M5 directed by a Japanese screenwriter that M1 , M2 , and M3 were directed by and were written by
query: SELECT count(*) WHERE {
  ?x0 a ns:film.writer .
  ?x0 ns:film.director.film M1 .
  ?x0 ns:film.director.film M2 .
  ?x0 ns:film.director.film M3 .
  ?x0 ns:film.writer.film M1 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x0 ns:people.person.nationality ns:m.03_3d .
  M5 ns:film.film.directed_by ?x0
  }