Was M4 influenced by a star of M2 and M3 and influenced by M0 's Japanese writer
SELECT count(*) WHERE {
?x0 ns:film.writer.film M0 .
?x0 ns:people.person.nationality ns:m.03_3d .
?x1 ns:film.actor.film/ns:film.performance.film M2 .
?x1 ns:film.actor.film/ns:film.performance.film M3 .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1
}