Business Logic-Driven Text-to-SQL Data Synthesis for Business Intelligence
This paper proposes a Business Logic-Driven Data Synthesis framework that generates highly realistic, workflow-grounded Text-to-SQL evaluation data for private business intelligence settings, demonstrating superior realism and alignment compared to existing methods while exposing significant performance gaps in current state-of-the-art models.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a very smart but inexperienced assistant how to talk to a massive, complex library of business records (a database). You want the assistant to understand questions like, "Which sales regions are underperforming?" and turn them into the exact code the computer needs to find the answer.
The problem is that most people teaching this assistant use "fake" practice questions. They might ask, "Show me all the rows where column A equals 5," which is technically correct but sounds like nothing a real human boss would ever say. It's like training a pilot on a flight simulator that only teaches them how to turn the steering wheel left and right, but never how to handle a storm or navigate to a real airport.
This paper introduces a new way to train these assistants by focusing on Business Logic. Here is how they did it, broken down into simple steps:
1. The "Character" Method (Personas)
Instead of just asking random questions, the researchers created characters (Personas). Think of these like actors in a play.
- The Character: A "Sales Development Manager."
- The Job: They need to know if their team is hitting their weekly goals.
- The Scenario: It's Monday morning, and they are reviewing the "pipeline" (the list of potential deals).
- The Workflow: They don't just ask for data; they have a specific process: check the numbers, find the outliers, and decide who needs coaching.
By building the question around who is asking, why they are asking, and what they are trying to do, the resulting questions sound like real humans talking to real humans, not robots talking to robots.
2. Picking the Right Tools (Schema Selection)
Real business databases are huge—like a warehouse with thousands of boxes. If you ask a new employee to find a specific screw, you don't hand them the keys to the whole warehouse. You only give them the toolbox relevant to the job.
The researchers' system looks at the "character's" job and automatically picks only the database tables (the boxes) that are actually needed for that specific task. This keeps the training focused and realistic.
3. The "Difficulty Levels" (Complexity Control)
The researchers realized that business questions aren't all the same difficulty. They created a "video game level" system for the questions:
- Level 1 (Single Metric): "How many meetings did we have?" (Simple count).
- Level 2 (Comparison): "Which region had more meetings, North or South?" (Comparing two things).
- Level 3 (Derived Logic): "What percentage of our leads turned into actual sales?" (Doing a calculation based on rules).
- Level 4 (Complex Puzzle): "Find the top 5 product combinations that made the most money, but only for deals that closed last month, and rank them by region." (Combining many steps and rules).
This ensures the assistant is trained on everything from simple lookups to complex, multi-step business puzzles.
4. The "Reality Check" (Evaluation)
To make sure their fake data was actually good, they used a "Judge" (an advanced AI) to grade the questions on two things:
- Does the code match the question? (If the boss asks for "sales," does the code actually count "sales" and not "returns"?)
- Does it sound real? (Would a real manager actually ask this, or does it sound like a textbook example?)
What They Found
When they tested this new method on a real, massive sales database (Salesforce):
- Realism: Their questions were 98.44% realistic. This is a huge jump compared to previous methods (which were around 79% and 44% realistic).
- Accuracy: The questions matched the code perfectly 98.59% of the time.
- The Hard Truth: Even the smartest AI models today struggled with the hardest questions. On the most complex business puzzles (Level 4), the best models only got about 43% right.
The Bottom Line
The paper argues that to truly test if an AI can help businesses, you can't just test if it knows SQL code. You have to test if it understands how people actually work. By simulating real job roles, daily scenarios, and complex workflows, they created a training ground that is much harder and more realistic than anything before it. This reveals that while AI is getting better, it still has a long way to go before it can reliably handle the messy, complex questions of the real business world.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.