Context budgets are the real SQL problem
The hard part of production text-to-SQL is deciding what fits in the prompt before generation starts. In DeepQuery that’s picking at most six tables for each question and sending only those, not the whole schema. Most of the engineering effort goes into context management.