Find the average OPENING_AMT in the CUSTOMER table.
{
    "explanation": "I finalized the SQL query by analyzing the schema and context provided. The question asks for the average OPENING_AMT in the CUSTOMER table. I used the CUSTOMER table and applied the AVG aggregation function on the OPENING_AMT column.",
    "query" : "SELECT 'customer' AS main_entity, 'average_opening_amount' AS description, AVG(c.OPENING_AMT) AS avg_opening_amount, c.CUST_CODE AS customer_code FROM CUSTOMER c",
    "operation_kind" : "aggregation",
    "schema": "CUSTOMER",
    "confidence" : "100",
    "general_message": "Here is the average opening amount for customers",
    "main_entity" : "customer"
}