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 average for silver when bronze is less than 1, and gold is more than 0?
gpt
SELECT AVG Silver FROM table WHERE Bronze < 1 AND Gold > 0