CREATE TABLE table_54659 ("Name" TEXT, "Scotland career" TEXT, "Caps" FLOAT, "Goals" FLOAT, "Average" FLOAT)

What is the goal top with caps of 38 and an average less than 0.579?
SELECT MAX("Goals") FROM table_54659 WHERE "Caps" = '38' AND "Average" < '0.579'
SELECT MAX("Goals") FROM "table_54659" WHERE "Average" < '0.579' AND "Caps" = '38'