clarified spec grammar for DISTINCT in function