Were M4 and M6 distributed by M5 and produced by a Japanese male screenwriter that M1 influenced
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d .
M4 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M5 .
M4 ns:film.film.produced_by|ns:film.film.production_companies ?x0 .
M6 ns:film.film.distributors/ns:film.film_film_distributor_relationship.distributor M5 .
M6 ns:film.film.produced_by|ns:film.film.production_companies ?x0
}