Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
### Context:
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?
### Answer:
SELECT AVG(election) FROM table_name_50 WHERE province = "grosseto" AND established < 1766