question: What was the average number of points with bonus pts less than 31 with the rider dennis gavros?
answer: SELECT AVG(total_points) FROM table_name_29 WHERE rider = "dennis gavros" AND bonus_pts < 31
context: CREATE TABLE table_name_29 (total_points INTEGER, rider VARCHAR, bonus_pts VARCHAR)