Retrieve the customer with the lowest opening amount.
{
    "explanation": "I finalized the SQL query by analyzing the schema and context provided. The question asks for the customer with the lowest opening amount. I used the ORDER BY clause to sort the results by opening amount in ascending order and then used the LIMIT clause to retrieve only the first row. I also used the CUSTOMER table to filter the results.",
    "query" : "SELECT c.CUST_CODE, c.CUST_NAME, c.CUST_CITY, c.OPENING_AMT FROM CUSTOMER c ORDER BY c.OPENING_AMT ASC LIMIT 1;",
    "operation_kind" : "aggregation",
    "schema": "CUSTOMER",
    "confidence" : "100",
    "general_message": "Here is the customer with the lowest opening amount",
    "main_entity" : "customer"
}