66How do you build RAG over a SQL database (text-to-SQL) when the answer lives in rows, not documents?▼hardSnowflakeDatabricksGoogle1 replies◆ premiumVector search over rows is the wrong tool when the user asks for a count or an aggregate. Interviewers want to see you retrieve the right schema, generate validated SQL, and know when to query the database instead of embedding it.Open full answer →
06Design a text-to-SQL feature: let users ask questions in natural language over a real database.▼hardMicrosoftDatabricksGoogle1 repliesunlockedText-to-SQL is deceptively hard because correctness is all-or-nothing and the failure mode is a confident wrong number. What interviewers reward: schema grounding, query validation, and a safety layer, not merely 'prompt an LLM with the schema.' This lays out the production design.Open full answer →
69Design a conversational analytics agent that answers business questions over a data warehouse in natural language.▼hardSnowflakeDatabricksGoogle2 replies◆ premium'What was revenue by region last quarter?' looks like text-to-SQL, yet production analytics agents break on ambiguity, wrong joins, and confidently wrong numbers. Here is the architecture that makes the answers trustworthy.Open full answer →