Instruct: Japan (JPN) with a total of less than 5, has what average gold medals?
Output: SELECT AVG Gold FROM table WHERE Nation = japan (jpn) AND Total < 5