CREATE TABLE "immigration" (
  "year" text,
  "indians_admitted" real,
  "pakistanis_admitted" real,
  "sri_lankans_admitted" real,
  "bangladeshis_admitted" real,
  "nepalis_admitted" real
);

Question: What was the most Nepalis admitted when the number of Sri Lankans was more than 5,520, Bangladeshis was more than 2,715, and Pakistanis more than 139,574?
SQL: SELECT MAX("nepalis_admitted") FROM "immigration" WHERE "sri_lankans_admitted">'5,520' AND "bangladeshis_admitted">'2,715' AND "pakistanis_admitted">'139,574';

Question: What were the fewest number of Sri Lankans admitted when more than 4,270 Bangladeshis and more than 4,986 Pakistanis were admitted?
SQL: SELECT MIN("sri_lankans_admitted") FROM "immigration" WHERE "bangladeshis_admitted">'4,270' AND "pakistanis_admitted">'4,986';

Question: How many Sri Lankans were admitted in 2004 when more than 594 Nepalis were admitted?
SQL: SELECT SUM("sri_lankans_admitted") FROM "immigration" WHERE "year"='2004' AND "nepalis_admitted">594;

Question: How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?
SQL: SELECT AVG("bangladeshis_admitted") FROM "immigration" WHERE "nepalis_admitted"=714 AND "pakistanis_admitted">'13,575';

Question: What was the most Nepalis admitted when fewer than 1,896 Bangladeshis were admitted?
SQL: SELECT MAX("nepalis_admitted") FROM "immigration" WHERE "bangladeshis_admitted"<'1,896';