human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Rank, Nation, Gold, Silver, Bronze, Total
###Question: What is the number of bronze that Scotland, which has less than 7 total medals, has?
gpt
SELECT SUM Bronze FROM table WHERE Nation = scotland AND Total < 7