CREATE TABLE table_name_51 (gold INTEGER, nation VARCHAR(255), total VARCHAR(255))
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