Did M3 's male cinematographer 's Canadian spouse 's spouse marry M0
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 .
?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 M0 .
?x1 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 ?x2 .
?x2 ns:film.cinematographer.film M3 .
?x2 ns:people.person.gender ns:m.05zppz .
FILTER ( ?x0 != ?x1 ) .
FILTER ( ?x0 != M0 ) .
FILTER ( ?x1 != ?x2 )
}