Did M4 , M5 , M6 , and M7 marry a male Canadian screenwriter 's female spouse
SELECT count(*) WHERE {
?x0 ns:people.person.gender ns:m.02zsn .
?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.writer .
?x1 ns:people.person.gender ns:m.05zppz .
?x1 ns:people.person.nationality ns:m.0d060g .
FILTER ( ?x0 != ?x1 ) .
FILTER ( M4 != ?x0 ) .
FILTER ( M5 != ?x0 ) .
FILTER ( M6 != ?x0 ) .
FILTER ( M7 != ?x0 ) .
M4 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 .
M5 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 .
M6 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0 .
M7 ns:people.person.spouse_s/ns:people.marriage.spouse|ns:fictional_universe.fictional_character.married_to/ns:fictional_universe.marriage_of_fictional_characters.spouses ?x0
}