← Latest papers
💬 NLP

PRACTIQ: A Practical Conversational Text-to-SQL dataset with Ambiguous and Unanswerable Queries

This paper introduces PRACTIQ, a new conversational text-to-SQL dataset featuring ambiguous and unanswerable queries inspired by real-world interactions, and demonstrates through LLM-based baselines that current state-of-the-art systems struggle to effectively handle these practical challenges.

Original authors: Mingwen Dong, Nischal Ashok Kumar, Yiqun Hu, Anuj Chauhan, Chung-Wei Hang, Shuaichen Chang, Lin Pan, Wuwei Lan, Henghui Zhu, Jiarong Jiang, Patrick Ng, Zhiguo Wang

Published 2026-01-26
📖 4 min read☕ Coffee break read

Original authors: Mingwen Dong, Nischal Ashok Kumar, Yiqun Hu, Anuj Chauhan, Chung-Wei Hang, Shuaichen Chang, Lin Pan, Wuwei Lan, Henghui Zhu, Jiarong Jiang, Patrick Ng, Zhiguo Wang

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 ask a librarian for a specific book. In the perfect world of most computer science tests, you walk up and say, "I want the book by Author X published in 1990," and the librarian instantly hands you the exact right book.

But in the real world, things are messier. You might say, "I want the book by Author X," but the library has three books by that author, and you didn't specify which one. Or, you might ask for a book that doesn't exist in their collection at all. If the librarian just guesses or says "I can't do that" without explaining why, you get frustrated.

This paper, PRACTIQ, is about teaching computers (specifically, AI systems that turn human questions into database queries) how to handle these messy, real-life situations.

Here is a breakdown of what they did, using simple analogies:

1. The Problem: The "Too Perfect" Librarian

Most existing AI training data is like a library where every single request is perfect. The user asks a clear question, and the answer exists.

  • The Reality: Real users ask confusing questions (Ambiguous) or ask for things that don't exist (Unanswerable).
  • The Gap: Current AI systems are great at the "perfect" questions but crash or give nonsense answers when faced with confusion or missing data. They haven't been trained to say, "Wait, do you mean this book or that one?" or "Sorry, we don't have that book."

2. The Solution: Building a "Messy" Library (PRACTIQ)

The authors created a new dataset called PRACTIQ. Think of this as a training manual for a new librarian that is filled with difficult, confusing, and impossible requests.

They identified 8 specific types of trouble:

  • 4 Types of Confusion (Ambiguous):
    • Example: You ask for "the age" of a visitor. The database has "Age at Entry" and "Current Age." Which one do you want?
    • Example: You ask for "young" people. Does that mean under 18? Under 21? The definition is fuzzy.
  • 4 Types of Impossibility (Unanswerable):
    • Example: You ask for the "nickname" of a winner, but the database only has their legal names. The info simply isn't there.
    • Example: You ask to connect two lists of data that have no link between them (like trying to join a list of students with a list of library books when there is no shared ID).

3. How They Made the Data: The "Reverse Engineering" Trick

Instead of just writing fake questions, they used a clever three-step process to build realistic conversations:

  1. Stage 1: Breaking the Database: They took a normal, clean database and intentionally "broke" it or made it confusing. They might remove a column or add two columns that look the same but mean different things.
  2. Stage 2: The Conversation Script: They asked an AI to write a script where:
    • The User asks a confusing question.
    • The Assistant (the AI) realizes the confusion and asks, "Do you mean X or Y?"
    • The User clarifies, "Oh, I meant X."
    • The Assistant gives the correct answer and explains it in plain English.
    • Special Twist: Sometimes, instead of asking for clarification, the assistant is smart enough to give both answers at once to be extra helpful.
  3. Stage 3: Polishing: They used AI again to make the conversation sound natural, like two humans talking, rather than a robot reading a script.

4. The Test: Can the AI Handle the Chaos?

The authors tested the smartest AI models available today (like Claude 3.5 and Llama 3) using this new "messy" dataset.

The Results:

  • The AI is still struggling. Even the best models got about 70-77% of the answers right on the confusing questions.
  • The "Perfect" vs. "Real" Gap: These models are great at the clean, perfect questions (getting ~79% right), but their performance drops significantly when the question is ambiguous or the data is missing.
  • The Lesson: Current AI is like a student who aces the textbook but fails the pop quiz when the teacher asks a tricky question. They need more training on how to handle confusion and missing information.

Summary

The paper introduces PRACTIQ, a new dataset designed to teach AI how to handle real-world confusion. It shows that while AI is getting better at turning questions into database commands, it still needs to learn how to politely ask for clarification when a question is vague or admit when an answer doesn't exist, rather than just guessing.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →