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 Long is the highest one that has a Loss larger than 3, and a Gain larger than 2,894?
gpt
SELECT MAX Long FROM table WHERE Loss > 3 AND Gain > 2,894