What is the mean amount of staying councilors with an election result amounting to less than 10 with the Green party, and a new council bigger than 0?
CREATE TABLE table_name_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR)
SELECT AVG(staying_councillors) FROM table_name_76 WHERE election_result < 10 AND party = "green" AND new_council > 0
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE table_name_76 (staying_councillors INTEGER, new_council VARCHAR, election_result VARCHAR, party VARCHAR) Question: What is the mean amount of staying councilors with an election result amounting to less than 10 with the Green party, and a new council bigger than 0? [/INST] SELECT AVG(staying_councillors) FROM table_name_76 WHERE election_result < 10 AND party = "green" AND new_council > 0 </s>