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