CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)
What's the bronze medal count of Spain that has less than 39 Gold, 3 silver, and a rank better than 35?
SELECT bronze FROM table_name_27 WHERE gold < 39 AND silver = 3 AND rank < 35 AND nation = "spain"