CREATE TABLE "pct_foreign_born_by_borough_1970_2006" (
  "borough" text,
  "1970" real,
  "1980" real,
  "1990" real,
  "2000" real,
  "2006" real
);

Question: What was the percentage in 2006 that had less than 9% in 1970?
SQL: SELECT AVG("2006") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "1970"<9;

Question: What was the percentage in 1980 that had less than 37.8% in 2006, more than 29.4% in 2000, and more than 18.2% in 1970?
SQL: SELECT MIN("1980") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "2006"<37.8 AND "2000">29.4 AND "1970">18.2;

Question: What was the percentage in 1980 in Brooklyn?
SQL: SELECT MIN("1980") FROM "pct_foreign_born_by_borough_1970_2006" WHERE "borough"='brooklyn';