WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387?
CREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR)
SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387 ROWS
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_14 (votes INTEGER, constituency VARCHAR, spoilt VARCHAR) Question: WHAT IS THE AVERAGE VOTE FOR DUBLIN SOUTH, AND SPOILT SMALLER THAN 3,387? [/INST] SELECT AVG(votes) FROM table_name_14 WHERE constituency = "dublin south" AND spoilt < 3 OFFSET 387 ROWS </s>