CREATE TABLE table_name_61 (gold INT, rank VARCHAR, silver VARCHAR, nation VARCHAR)

How many gold medals for Bulgaria (BUL) with 2 silvers and a less than 18 rank?
SELECT SUM(gold) FROM table_name_61 WHERE silver = 2 AND nation = "bulgaria (bul)" AND rank < 18
SELECT SUM("gold") FROM "table_name_61" WHERE "bulgaria (bul)" = "nation" AND "rank" < 18 AND "silver" = 2