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: Which Gold has a Nation of sri lanka, and a Silver smaller than 10?
gpt
SELECT AVG Gold FROM table WHERE Nation = sri lanka AND Silver < 10