CREATE TABLE table_name_14 (votes INT, constituency VARCHAR, spoilt VARCHAR)

WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?
SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387
SELECT AVG("votes") FROM "table_name_14" WHERE "constituency" = "dublin south" AND "spoilt" < 3 OFFSET 387