human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Games, First, Last, Gold, Bronze, Total, Best finish (first/last)
###Question: What is the fewest number of medals associated with under 6 games and over 0 golds?
gpt
SELECT MIN Total FROM table WHERE Games < 6 AND Gold > 0