CREATE TABLE "montana_counties_ranked_by_per_capita_in" (
  "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 household income in Valley County?
SQL: SELECT "median_household_income" FROM "montana_counties_ranked_by_per_capita_in" WHERE "county"='valley';

Question: What is the per capita income with more than 2,466 households and a median family income of $53,940?
SQL: SELECT "per_capita_income" FROM "montana_counties_ranked_by_per_capita_in" WHERE "number_of_households">'2,466' AND "median_family_income"='$53,940';