Cortex Analyst keeps writing a slightly wrong query for a common question about churn. What improves accuracy most directly?
- Exam domain
- Text to SQL with Cortex Analyst
- Difficulty
- Medium
- In this mock
- 5 questions on this domainPractise this domain
Why C is the answer
Add the question and its correct SQL as a verified query in the semantic view
Semantic views can include sample questions with their SQL answers to guide query generation, which improves accuracy on common questions.
Remember: Verified queries fix repeat mistakes.
In detail
- Verified queries guide generation.
- Fix the common questions first.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Raise the warehouse sizeWrong
Warehouse size changes speed, not correctness.
B. Rename the tablesWrong
Renaming tables does not teach the right logic.
C. Add the question and its correct SQL as a verified query in the semantic viewRight
Verified queries fix repeat mistakes.
D. Turn on Cortex Search for the churn table, which teaches Analyst the right SQL from the dataWrong
Cortex Search retrieves text; it does not teach SQL.
Use case
An illustrative scenario, not a real incident.
Illustrative: adding the verified churn query stops the wrong date filter.
See it in different ways
flowchart LR S0["Find the common question"] --> S1["Write the correct SQL"] --> S2["Add as a verified query"] --> S3["Retest"]
How to read this chart
- Read it in order: Find the common question, then Write the correct SQL, then Add as a verified query, then Retest.
stateDiagram-v2 state "Wrong SQL" as s0 state "Correct SQL" as s1 [*] --> s0 s0 --> s1: verified query added s1 --> [*]
How to read this chart
- It starts at "Wrong SQL".
- From "Wrong SQL", "verified query added" moves it to "Correct SQL".
- It ends at "Correct SQL".