Table schema:
CREATE TABLE table_name_27 (bronze VARCHAR, nation VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR)

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