Question: What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10666?
SQL: SELECT MAX("Total Foreign-born (1000)") FROM "2-1247786-1" WHERE "Born in a non EU state (1000)" = 685.0 AND "Total population (1000)" > 10666.0;

Question: What is the highest number born in a none EU state (1000) from denmark with a total population (1000) less than 5534?
SQL: SELECT MAX("Born in a non EU state (1000)") FROM "2-1247786-1" WHERE "Country" = 'denmark' AND "Total population (1000)" < 5534.0;

Question: How many Foreign-born (1000) are from sweden and born in some other EU state (1000) larger than 477?
SQL: SELECT SUM("Total Foreign-born (1000)") FROM "2-1247786-1" WHERE "Country" = 'sweden' AND "Born in other EU state (1000)" > 477.0;

Question: What is the greatest Total population (1000) from sweden and born in a non EU state (1000) less than 859?
SQL: SELECT MAX("Total population (1000)") FROM "2-1247786-1" WHERE "Country" = 'sweden' AND "Born in a non EU state (1000)" < 859.0;

Question: What is the greatest Born in other EU state (1000) with more than 1380 foreign-born from italy and a born in a non EU state (1000) less than 3205?
SQL: SELECT MAX("Born in other EU state (1000)") FROM "2-1247786-1" WHERE "Total Foreign-born (1000)" > 1380.0 AND "Country" = 'italy' AND "Born in a non EU state (1000)" < 3205.0;