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

Which Total has a Rank of 17, and a Gold larger than 0?
SELECT AVG("Total") FROM table_40754 WHERE "Rank" = '17' AND "Gold" > '0'
SELECT AVG("Total") FROM "table_40754" WHERE "Gold" > '0' AND "Rank" = '17'