CREATE TABLE table_7796 ("Name" TEXT, "Gain" FLOAT, "Loss" FLOAT, "Long" FLOAT, "Avg/G" FLOAT)

What was the highest long with less than 7 losses and an Avg/G smaller than 25.1?
SELECT MAX("Long") FROM table_7796 WHERE "Loss" < '7' AND "Avg/G" < '25.1'
SELECT MAX("Long") FROM "table_7796" WHERE "Avg/G" < '25.1' AND "Loss" < '7'