Instruct: What is the sum of all gold medals for Algeria when total medals is less than 3?
Output: SELECT SUM Gold FROM table WHERE Nation = algeria AND Total < 3