Multi-Table Question Answering with Dynamic Schema Inference

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing question answering systems, particularly those using large language models (LLMs) for multi-table question answering, require significant computational resources, are not scalable, and are limited by fixed schemas, making them inefficient and costly to adapt to diverse databases and domains.

Innovation Solution

A multi-table question answering system that decomposes complex questions into sub-questions using coreference resolution, dependency parsing, and chunking, generates code scripts with LLMs, and executes these scripts to retrieve structured data from multiple tables, dynamically adapting to schema descriptions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If fixed schemas are used to dictate the structure of data tables, then the system structure is simplified and easier to implement, but the adaptability of the system to different databases and domains is limited

Engineering Contradiction:
Improveadaptability to different databases and domainsVSAvoidsystem structure complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies dynamics by replacing fixed schemas with dynamic schema inference. The system automatically infers database schemas from natural language descriptions and adapts to different table structures without manual configuration. This allows the same system to work across diverse databases and domains while maintaining operational simplicity through automation.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system performs self-service by automatically inferring schemas and generating queries without requiring manual schema configuration or user intervention. The model self-adapts to different database structures by learning from the provided natural language descriptions, eliminating the need for complex manual setup while maintaining high adaptability.

Inventive Principle:
Principle #25Self-service

2Reliability

If large language models are fine-tuned for specific tables or databases, then the question answering accuracy is improved, but the cost and scalability are increased

Engineering Contradiction:
Improvequestion answering accuracyVSAvoidscalability and cost efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent applies universality by training a single LLM on diverse multi-table question answering tasks across different domains. The model learns general patterns for inferring schemas and generating queries that work across various database structures. This universal approach maintains high accuracy without requiring separate fine-tuning for each domain, thereby improving scalability and reducing costs.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The system changes parameters dynamically by adjusting the model's inference behavior based on the specific database schema and query requirements. Rather than fine-tuning the entire model for each domain, the system adapts its parameters and reasoning process to match the specific table structures and question types, maintaining accuracy while avoiding the computational cost of full fine-tuning.

Inventive Principle:
Principle #35Parameter changes

3Loss of information

If complex questions are answered by retrieving data from multiple tables, then the completeness of the answer is improved, but the computational resources and time required increase

Engineering Contradiction:
Improvecompleteness of answerVSAvoidcomputational resources and time
Core Design Contradiction:
Loss of informationVSUse of energy by stationary object

Solution Approach 1:

The patent applies segmentation by breaking down complex multi-table queries into smaller, manageable sub-queries. The system divides the information retrieval task across multiple tables and uses intermediate representations to connect different data sources. This segmentation allows the model to retrieve necessary information systematically while reducing the computational burden by processing queries in manageable chunks rather than attempting to process the entire complex query at once.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12393575B2Multi-table question answering system and method thereof
Publication Date: 2025.08.19 QUANTIPHI INC
  • US12393575B2 patent drawing
  • US12393575B2 patent drawing
  • US12393575B2 patent drawing

AI summary

A method and system for multi-table question answering is provided herein. The method includes receiving a complex question from a user. The method may further include decomposing the complex question into one or more sub-questions using one or more of but not limited to coreference resolution, dependency parsing, chunking and prompt techniques. The method may further include generating code scripts for each sub-question using a Large Language Model (LLM). The method may further include executing the code scripts to retrieve relevant structured data from a plurality of tables. The method may further include generating an answer to the complex question based on the retrieved structured data.