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
Show me all the policy types available? | Do you mean policy type code? | yes
assistant
SELECT distinct policy_type_code FROM available_policies;
human
Show me the policy type code with policy id 257?
assistant
SELECT policy_type_code FROM available_policies WHERE Policy_ID = 257 ;