CREATE TABLE "comparison_with_other_countries_from_eur" (
  "country" text,
  "total_population_1000" real,
  "total_foreign_born_1000" real,
  "born_in_other_eu_state_1000" real,
  "born_in_a_non_eu_state_1000" real
);

Question: What is the highest Total Foreign-born (1000) from a non EU state (1000) of 685 and a population (1000) smaller than 10,666?
SQL: SELECT MAX("total_foreign_born_1000") FROM "comparison_with_other_countries_from_eur" WHERE "born_in_a_non_eu_state_1000"=685 AND "total_population_1000">'10,666';

Question: What is the highest number born in a none EU state (1000) from Denmark with a total population (1000) less than 5,534?
SQL: SELECT MAX("born_in_a_non_eu_state_1000") FROM "comparison_with_other_countries_from_eur" WHERE "country"='denmark' AND "total_population_1000"<'5,534';

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 "comparison_with_other_countries_from_eur" WHERE "country"='sweden' AND "born_in_other_eu_state_1000">477;

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 "comparison_with_other_countries_from_eur" WHERE "country"='sweden' AND "born_in_a_non_eu_state_1000"<859;

Question: What is the greatest Born in other EU state (1000) with more than 1,380 foreign-born from Italy and a born in a non EU state (1000) less than 3,205?
SQL: SELECT MAX("born_in_other_eu_state_1000") FROM "comparison_with_other_countries_from_eur" WHERE "total_foreign_born_1000">'1,380' AND "country"='italy' AND "born_in_a_non_eu_state_1000"<'3,205';