CREATE TABLE table_39546 ("Rank" TEXT, "Nation" TEXT, "Gold" FLOAT, "Silver" FLOAT, "Bronze" FLOAT, "Total" FLOAT)

The United States, with a total medal count of less than 171, and a bronze medal count less than 9, has how many gold medals?
SELECT MAX("Gold") FROM table_39546 WHERE "Total" < '171' AND "Nation" = 'united states' AND "Bronze" < '9'
SELECT MAX("Gold") FROM "table_39546" WHERE "Bronze" < '9' AND "Nation" = 'united states' AND "Total" < '171'