Were M5 and M6 written by a male Japanese screenwriter that M1 and M2 influenced
SELECT count(*) WHERE {
?x0 a ns:film.writer .
?x0 ns:influence.influence_node.influenced_by M1 .
?x0 ns:influence.influence_node.influenced_by M2 .
?x0 ns:people.person.gender ns:m.05zppz .
?x0 ns:people.person.nationality ns:m.03_3d .
M5 ns:film.film.written_by ?x0 .
M6 ns:film.film.written_by ?x0
}