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

Question: What is the median household income where the per capita is $28,789?
SQL: SELECT "median_household_income" FROM "counties" WHERE "per_capita_income"='$28,789';

Question: What is the median income for a family whose per capita income is $18,296?
SQL: SELECT "median_family_income" FROM "counties" WHERE "per_capita_income"='$18,296';