Did M5 star a screenwriter 's American German parent and star M1 's Mexican spouse
SELECT count(*) WHERE {
?x0 ns:people.person.nationality ns:m.0b90_r .
?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 M1 .
?x1 ns:people.person.children|ns:fictional_universe.fictional_character.children|ns:organization.organization.child/ns:organization.organization_relationship.child ?x2 .
?x1 ns:people.person.nationality ns:m.0345h .
?x1 ns:people.person.nationality ns:m.09c7w0 .
?x2 a ns:film.writer .
FILTER ( ?x0 != M1 ) .
M5 ns:film.film.starring/ns:film.performance.actor ?x0 .
M5 ns:film.film.starring/ns:film.performance.actor ?x1
}