Did M3 , M5 , and M6 star M4 and star a male Japanese screenwriter
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d .
M3 ns:film.film.starring/ns:film.performance.actor ?x0 .
M3 ns:film.film.starring/ns:film.performance.actor M4 .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor M4 .
M6 ns:film.film.starring/ns:film.performance.actor ?x0 .
M6 ns:film.film.starring/ns:film.performance.actor M4
}