Converting NLP to SQL effectively enable business agility as business can query data in effective manner.
Parse statement and convert into tokens
Get intent from overall statements
Based on intent determine which table and where condition user want to apply
Determine which columns user is trying to get
Get additional aggregation, group by clause that need to be applyed.