Did M5 influence a Japanese film producer that M3 and M4 starred and influence a person 's spouse
SELECT count(*) WHERE {
?x0 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x1 .
?x1 a ns:people.person .
?x2 a ns:film.producer .
?x2 ns:film.actor.film/ns:film.performance.film M3 .
?x2 ns:film.actor.film/ns:film.performance.film M4 .
?x2 ns:people.person.nationality ns:m.03_3d .
FILTER ( ?x0 != ?x1 ) .
M5 ns:influence.influence_node.influenced ?x0 .
M5 ns:influence.influence_node.influenced ?x2
}