Was M4 produced by M3 's male director and written by a male Japanese film producer
SELECT count(*) WHERE {
?x0 a ns:film.producer .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 ns:film.director.film M3 .
?x1 ns:people.person.gender ns:m.05zppz .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x1 .
M4 ns:film.film.written_by ?x0
}