What is the average election result for the province of Grosseto from 1766 and prior?
CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR)
SELECT AVG(election) FROM table_name_50 WHERE province = "grosseto" AND established < 1766
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_50 (election INTEGER, province VARCHAR, established VARCHAR) Question: What is the average election result for the province of Grosseto from 1766 and prior? [/INST] SELECT AVG(election) FROM table_name_50 WHERE province = "grosseto" AND established < 1766 </s>