Was a German film producer 's spouse 's country of nationality a country of nationality of M2 's star and producer
SELECT count(*) WHERE {
?x0 ^ns:people.person.nationality ?x1 .
?x0 ^ns:people.person.nationality ?x2 .
?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 ?x3 .
?x2 ns:film.actor.film/ns:film.performance.film M2 .
?x2 ns:film.producer.film|ns:film.production_company.films M2 .
?x3 a ns:film.producer .
?x3 ns:people.person.nationality ns:m.0345h .
FILTER ( ?x1 != ?x3 )
}