The Soviet Union occupied Latvia in 1940 .
Soviet Union enumerated people there by ethnicity from 1959 to 1989 .
The Soviet Union occupied Latvia in 1940 , and it enumerated people there by ethnicity from 1959 to 1989 .