Was M4 influenced by a person , influenced by a Canadian cinematographer , and influenced by M1 's spouse
SELECT count(*) WHERE {
?x0 a ns:people.person .
?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 M1 .
?x2 a ns:film.cinematographer .
?x2 ns:people.person.nationality ns:m.0d060g .
FILTER ( ?x1 != M1 ) .
M4 ns:influence.influence_node.influenced_by ?x0 .
M4 ns:influence.influence_node.influenced_by ?x1 .
M4 ns:influence.influence_node.influenced_by ?x2
}