user: ### NOW ANSWER:
Question: WHAT IS THE LOWEST AVERAGE FINISH FOR 40th POSITION, WITH A TOP 5 LARGER THAN 0?
Columns: ['Year', 'Starts', 'Wins', 'Top 5', 'Top 10', 'Poles', 'Avg. Start', 'Avg. Finish', 'Position']
Types: ['text', 'real', 'real', 'real', 'real', 'real', 'real', 'real', 'text']
Sample row: ['1984', 5.0, 0.0, 0.0, 0.0, 0.0, 28.8, 24.4, '53rd']
SQL:

assistant: SELECT MIN("Avg. Finish") FROM "Table" WHERE "Position" = '40th' AND "Top 5" > 0.0;