Did a person influence M1 and M2 and marry M4 's prequel 's Canadian star
SELECT count(*) WHERE {
?x0 a ns:people.person .
?x0 ns:influence.influence_node.influenced M1 .
?x0 ns:influence.influence_node.influenced M2 .
?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 ns:film.actor.film/ns:film.performance.film ?x2 .
?x1 ns:people.person.nationality ns:m.0d060g .
?x2 ns:film.film.sequel M4 .
FILTER ( ?x0 != ?x1 )
}