question: Was a Japanese cinematographer that M2 and M3 were written by , starred , and were produced by a screenwriter
query: SELECT count(*) WHERE {
  ?x0 a ns:film.cinematographer .
  ?x0 a ns:film.writer .
  ?x0 ns:film.actor.film/ns:film.performance.film M2 .
  ?x0 ns:film.actor.film/ns:film.performance.film M3 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M2 .
  ?x0 ns:film.producer.film|ns:film.production_company.films M3 .
  ?x0 ns:film.writer.film M2 .
  ?x0 ns:film.writer.film M3 .
  ?x0 ns:people.person.nationality ns:m.03_3d
  }