Was M0 's writer and director a male Canadian art director 's spouse
SELECT count(*) WHERE {
?x0 ns:film.director.film M0 .
?x0 ns:film.writer.film M0 .
?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:film.film_art_director .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.nationality ns:m.0d060g .
FILTER ( ?x0 != ?x1 )
}