human
Considering the provided database schema and associated query, produce SQL code to retrieve the answer to the query. 
###Database Schema: Name, Gain, Loss, Long, Avg/G
###Question: Which Avg/G has a Gain of 1,839?
gpt
SELECT SUM Avg/G FROM table WHERE Gain = 1,839