Patent attributes
The present disclosure describes a system, method, and computer program for converting a natural language update instruction to a structured update database statement. In response to receiving a natural language query for a database, an NLU model is applied to the query to identify an intent and entities associated with the query. If the intent is to update a data object, the system evaluates the entities to identify update fields and update values. Update fields are matched to update values based on update parameters, operand type of the update value, and location of the update fields and values. For each update field and value pair, an update context is calculated to determine whether the update value is absolute or relative to an existing field value. An update plan is created with the update field and value pairs and corresponding update contexts, and a database update statement is generated from the update plan.