Schema: CREATE TABLE table_name_51 (gold INTEGER, nation VARCHAR, total VARCHAR)
Question: Japan (JPN) with a total of less than 5, has what average gold medals?
SQL: SELECT AVG(gold) FROM table_name_51 WHERE nation = "japan (jpn)" AND total < 5