Semantic Query Processing With Metadata-Driven SQL Planning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Data analytics systems face challenges in efficiently processing complex queries across large datasets while maintaining consistent logic and performance, particularly in handling dynamic metric calculations and optimizing query execution paths without requiring complete data materialization.

Innovation Solution

A metadata-driven architecture that processes queries across semantic and storage layers, using a semantic engine to translate high-level concepts into optimized query plans, and includes a semantic data model, query preparation component, and SQL generation service to handle complex analytical functions.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If materialized pre-calculations are used for complex metric calculations, then query performance is improved, but storage requirements and system complexity increase

Engineering Contradiction:
Improvequery performanceVSAvoidsystem complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The system segments the query processing into distinct phases: semantic query parsing, query plan generation, SQL query execution, and post-processing. This segmentation allows complex calculations to be handled through coordinated processing of multiple components rather than requiring complete materialization of all possible metric-combination data, thereby reducing storage requirements while maintaining query performance.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system performs preliminary actions by pre-defining semantic models, metrics, and dimensions in a semantic data model before queries are executed. This allows the system to understand and optimize query execution paths in advance without materializing all possible calculations, reducing both storage needs and system complexity while improving query performance.

Inventive Principle:
Principle #10Preliminary action

2Measurement precision

If complete data materialization is performed for complex queries, then calculation accuracy is improved, but processing time and resource consumption increase

Engineering Contradiction:
Improvecalculation accuracyVSAvoidprocessing time
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The system applies partial action by materializing only the specific metric-combination data needed for each query rather than all possible combinations. The query execution plan identifies and materializes only the necessary portions of data, maintaining calculation accuracy for the specific query while significantly reducing processing time and resource consumption compared to complete materialization.

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The system dynamically adjusts the materialization strategy based on the specific query requirements. The query execution plan is generated dynamically to match the semantic query, determining exactly which metric-combination data needs to be materialized. This dynamic approach ensures calculation accuracy for each specific query while minimizing overall processing time and resource usage.

Inventive Principle:
Principle #15Dynamics

3Quantity of substance

If dynamic computation models are used instead of pre-materialized data, then storage requirements are reduced, but query processing complexity increases

Engineering Contradiction:
Improvestorage requirementsVSAvoidquery processing complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The system implements a universal semantic data model that handles multiple types of queries and calculations through a unified framework. The semantic query processor can handle various query types (ad-hoc, scheduled, complex metrics) using the same coordinated processing architecture, which manages query processing complexity through standardized components while reducing storage requirements through dynamic computation.

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

Solution Approach 2:

The system introduces intermediary components including a semantic query processor, query execution plan generator, and post-processing engine that mediate between the semantic query and the underlying data storage. These intermediaries manage the complexity of dynamic computation by breaking down complex queries into manageable steps, coordinating between different system components to achieve query results without requiring complete data materialization.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Adaptability or versatility

If sophisticated analytical operations are handled at the application layer, then query flexibility is improved, but system performance and scalability decrease

Engineering Contradiction:
Improvequery flexibilityVSAvoidsystem performance
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The system replaces manual application-layer processing with an automated semantic query processing mechanism. The semantic query processor automatically translates high-level semantic queries into optimized SQL queries and coordinates execution across multiple components. This substitution maintains query flexibility for sophisticated analytical operations while significantly improving system performance and scalability by eliminating the need for complex application-layer processing.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS20260079954A1Systems and Methods for Semantic Query Processing
Publication Date: 2026.03.19 SALESFORCE INC
  • US20260079954A1 patent drawing
  • US20260079954A1 patent drawing
  • US20260079954A1 patent drawing

AI summary

A semantic query processing system enables data analytics through a metadata-driven architecture. The system processes analytical queries through a layered execution path that maintains consistent logic across system components. For incoming semantic queries, the system coordinates processing between semantic and storage layers instead of, or in addition to, requiring pre-materialized calculations. A gateway service receives semantic queries while a query preparer generates execution plans based on semantic model metadata defining relationships, measures, and dimensions. A query generator transforms these plans into optimized SQL operations, with complex calculations handled through post-processing. The system reduces analytical complexity by eliminating pre-calculation requirements, enables real-time metric computation through coordinated query processing, and maintains semantic consistency through metadata-driven execution. This architecture achieves improved response times for complex metrics while preserving consistent calculation logic across distributed components.