Was a screenwriter 's country of nationality M1 's spouse 's country of nationality
SELECT count(*) WHERE {
?x0 ^ns:people.person.nationality ?x1 .
?x0 ^ns:people.person.nationality ?x2 .
?x1 a ns:film.writer .
?x2 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 .
FILTER ( ?x2 != M1 )
}