user: ### NOW ANSWER:
Question: What is the greatest Total population (1000) from sweden and born in a non EU state (1000) less than 859?
Columns: ['Country', 'Total population (1000)', 'Total Foreign-born (1000)', 'Born in other EU state (1000)', 'Born in a non EU state (1000)']
Types: ['text', 'real', 'real', 'real', 'real']
Sample row: ['EU 27', 501098.0, 47348.0, 15980.0, 31368.0]
SQL:

assistant: SELECT MAX("Total population (1000)") FROM "Table" WHERE "Country" = 'sweden' AND "Born in a non EU state (1000)" < 859.0;