CREATE TABLE "by_country" (
  "country" text,
  "pct_of_all_immigrants_2008" text,
  "pct_of_all_immigrants_2007" text,
  "pct_of_all_immigrants_2006" text,
  "pct_of_all_immigrants_2005" text,
  "pct_of_all_immigrants_2004" text
);

Question: What's the percentage of all immigrants in 2007 in the country with 1.7% of all immigrants in 2008?
SQL: SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2008"='1.7%';

Question: How many different percentages of immigrants in 2006 can there be for Morocco?
SQL: SELECT COUNT("pct_of_all_immigrants_2006") FROM "by_country" WHERE "country"='Morocco';

Question: What's the percentage of immigrants in 2004 in the country with 2.1% of the immigrants in 2006?
SQL: SELECT "pct_of_all_immigrants_2004" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='2.1%';

Question: What's the percentage of the immigrants in 2007 in the country with 14.1% of the immigrants in 2006?
SQL: SELECT "pct_of_all_immigrants_2007" FROM "by_country" WHERE "pct_of_all_immigrants_2006"='14.1%';

Question: How many different percentages of immigrants are there for the year of 2007 in the countries with 1.2% of the immigrants in the year of 2005?
SQL: SELECT COUNT("pct_of_all_immigrants_2007") FROM "by_country" WHERE "pct_of_all_immigrants_2005"='1.2%';