human
Schema:
Customers (Customer_ID, Customer_name)
Services (Service_ID, Service_name)
Available_Policies (Policy_ID, policy_type_code, Customer_Phone)
Customers_Policies (Customer_ID, Policy_ID, Date_Opened, Date_Closed)
First_Notification_of_Loss (FNOL_ID, Customer_ID, Policy_ID, Service_ID)
Claims (Claim_ID, FNOL_ID, Effective_Date)
Settlements (Settlement_ID, Claim_ID, Effective_Date, Settlement_Amount)
Please answer with SQL.
assistant
Sure, I understand.
human
Hello! Can you provide me with a list of all of the settlement IDs and the corresponding settlement amounts?
assistant
SELECT Settlement_ID , settlement_amount FROM settlements;
human
Great! Can you calculate for me the sum total of all Settlement Amounts and also the average Settlement Amount for all settlements?
assistant
SELECT SUM( settlement_amount ) , AVG ( settlement_amount ) FROM settlements ;