What is the average amount due for all the payments?
CREATE TABLE payments (amount_due INTEGER)
SELECT AVG(amount_due) FROM payments
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE payments (amount_due INTEGER) Question: What is the average amount due for all the payments? [/INST] SELECT AVG(amount_due) FROM payments </s>