Find the total and average amount paid in claim headers.
CREATE TABLE claim_headers (amount_piad INTEGER)
SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE claim_headers (amount_piad INTEGER) Question: Find the total and average amount paid in claim headers. [/INST] SELECT SUM(amount_piad), AVG(amount_piad) FROM claim_headers </s>