CREATE TABLE "population_of_the_46_city_districts_on_3" (
  "no" text,
  "city_district_stadtteil" text,
  "area_in_km" text,
  "population" text,
  "foreign_nationals" text,
  "foreign_nationals_in_pct" text,
  "area_district_ortsbezirk" text
);

Question: How many foreigners in percentage terms had a population of 4.911?
SQL: SELECT COUNT("foreign_nationals_in_pct") FROM "population_of_the_46_city_districts_on_3" WHERE "population"='4.911';

Question: What is the number of the city district of stadtteil where foreigners are 5.162?
SQL: SELECT COUNT("city_district_stadtteil") FROM "population_of_the_46_city_districts_on_3" WHERE "foreign_nationals"='5.162';

Question: What is the city where the number is 47?
SQL: SELECT "city_district_stadtteil" FROM "population_of_the_46_city_districts_on_3" WHERE "no"='47';