SCHEMA:
CREATE TABLE table_name_59 (points INTEGER, rank VARCHAR, wins VARCHAR)
USER:
What is the total of the points for wins under 6 and a rank of 2nd?

QUERY:
SELECT SUM(points) FROM table_name_59 WHERE rank = "2nd" AND wins < 6