CREATE TABLE "tennessee_counties_ranked_by_per_capita_" (
  "county" text,
  "per_capita_income" text,
  "median_household_income" text,
  "median_family_income" text,
  "population" real,
  "number_of_households" real
);

Question: What is the median family income when the per capita is $24,114?
SQL: SELECT "median_family_income" FROM "tennessee_counties_ranked_by_per_capita_" WHERE "per_capita_income"='$24,114';

Question: What is the median household income when the per capita is $21,585?
SQL: SELECT "median_household_income" FROM "tennessee_counties_ranked_by_per_capita_" WHERE "per_capita_income"='$21,585';

Question: What is the population where the median family income is $48,446 and there are more than 35,343 households?
SQL: SELECT AVG("population") FROM "tennessee_counties_ranked_by_per_capita_" WHERE "median_family_income"='$48,446' AND "number_of_households">'35,343';

Question: What is the population where the median household income is $87,832 and there are fewer than 64,886 households?
SQL: SELECT AVG("population") FROM "tennessee_counties_ranked_by_per_capita_" WHERE "median_household_income"='$87,832' AND "number_of_households"<'64,886';