Did M3 influence M4 , marry M5 , and influence a Japanese person that M2 was played by
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:film.actor.film/ns:film.performance.character M2 .
?x0 ns:people.person.nationality ns:m.03_3d .
FILTER ( M3 != M5 ) .
M3 ns:influence.influence_node.influenced ?x0 .
M3 ns:influence.influence_node.influenced M4 .
M3 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M5
}