user: ### NOW ANSWER:
Question: What is the average long that has 1581 as a gain, with a loss less than 308?
Columns: ['Name', 'Gain', 'Loss', 'Long', 'Avg/G']
Types: ['text', 'real', 'real', 'real', 'real']
Sample row: ['Toben Opurum', 564.0, 23.0, 26.0, 54.1]
SQL:

assistant: SELECT AVG("Long") FROM "Table" WHERE "Gain" = 1581.0 AND "Loss" < 308.0;