Was M3 influenced by M4 , influenced by a Canadian director of M1 , and influenced by a spouse of M2
SELECT count(*) WHERE {
?x0 ns:film.director.film M1 .
?x0 ns:people.person.nationality ns:m.0d060g .
?x1 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses M2 .
FILTER ( ?x1 != M2 ) .
M3 ns:influence.influence_node.influenced_by ?x0 .
M3 ns:influence.influence_node.influenced_by ?x1 .
M3 ns:influence.influence_node.influenced_by M4
}