CREATE TABLE table_64141 ("Rank" FLOAT, "Nation" TEXT, "Gold" FLOAT, "Silver" FLOAT, "Bronze" FLOAT, "Total" FLOAT)

How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank?
SELECT SUM("Gold") FROM table_64141 WHERE "Silver" = '2' AND "Nation" = 'bulgaria (bul)' AND "Rank" < '18'
SELECT SUM("Gold") FROM "table_64141" WHERE "Nation" = 'bulgaria (bul)' AND "Rank" < '18' AND "Silver" = '2'