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

What is the average long that has 1581 as a gain, with a loss less than 308?
SELECT AVG("Long") FROM table_65667 WHERE "Gain" = '1581' AND "Loss" < '308'
SELECT AVG("Long") FROM "table_65667" WHERE "Gain" = '1581' AND "Loss" < '308'