CREATE TABLE table_name_83 (caps INT, goals VARCHAR, rank VARCHAR)

What is the sum of caps for players with less than 9 goals ranked below 8?
SELECT SUM(caps) FROM table_name_83 WHERE goals < 9 AND rank > 8
SELECT SUM("caps") FROM "table_name_83" WHERE "goals" < 9 AND "rank" > 8