NLP to SQL
Ask questions from Data
Ask questions from Data
Convert NLP to SQL
Convert NLP to SQL
Check NLP statement. Convert these into tokens. From statement derive intent of NLP statements.
Based on intent determine which table user want to get access, what columns user is interested in, what condition on data should be applied e.g. date ranges.
Determine whether aggreegate functons e.g. sum, avg, corr need to be applied
Determine where model has high confidence vs low confidence
Generate SQL
Above is flow for converting one NLP statement to SQL statement.
Passing context across statement is even harder.