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