CREATE TABLE "external_links" (
  "code" text,
  "district" text,
  "headquarters" text,
  "population_2011" real,
  "area_km" real,
  "density_km" real,
  "official_website" text
);

Question: Where is the headquarters of the place whose abbreviation is hy?
SQL: SELECT "headquarters" FROM "external_links" WHERE "code"='HY';

Question: Where is the headquarters of the place whose population in 2011 was 3811738?
SQL: SELECT "headquarters" FROM "external_links" WHERE "population_2011"=3811738;

Question: What was the minimum population in 2011 of the district of Prakasam?
SQL: SELECT MIN("population_2011") FROM "external_links" WHERE "district"='Prakasam';

Question: What is the abbreviation of the district of Mahbubnagar?
SQL: SELECT "code" FROM "external_links" WHERE "district"='Mahbubnagar';

Question: What is the 2011 population of the district of East Godavari?
SQL: SELECT "population_2011" FROM "external_links" WHERE "district"='East Godavari';