NL2SQL over many tables
HardML design30 minREMLEPro outline
The question
Design a system that turns user questions into SQL over a database with hundreds of tables. How do you pick the right tables, generate correct SQL and check it?
What the interviewer is looking for
- Schema linking by retrieval over table and column descriptions
- Few-shot examples and join hints
- Execution checks and self-correction
- Safety: read-only and limits
- Evaluation by execution accuracy
Your answer
Saved in this browser only. Nobody else sees it.
Why this question
Written by BlogLLM in the style of a publicly reported Zhipu AI (Z.ai) question type: NL2SQL across multiple tables.
Reported in: nowcoder.com
Practice question written by BlogLLM based on publicly reported interview formats. Not an official Zhipu AI (Z.ai) question.