CREATE TABLE table_name_70 (avg_finish NUMBER, position VARCHAR2, top_5 VARCHAR2)

WHAT IS THE LOWEST AVERAGE FINISH FOR 40TH POSITION, WITH A TOP 5 LARGER THAN 0?
SELECT MIN(avg_finish) FROM table_name_70 WHERE position = "40th" AND top_5 > 0
SELECT MIN("avg_finish") FROM "table_name_70" WHERE "40th" = "position" AND "top_5" > 0