Query Compiler Translating Worksheet State to Database Query

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Modern businesses face challenges in manipulating and querying large datasets stored in cloud-based data warehouses, as constructing complex queries often exceeds the capabilities of most users.

Innovation Solution

A query compiler system that receives a state specification from a graphical user interface, converts it into a database query by determining the order of operations, and sends the query to the data warehouse, utilizing abstract syntax trees, canonicalization, and worksheet algebra to generate a structured query language statement.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If users directly construct complex database queries using SQL, then query functionality and flexibility are improved, but user capability requirements and system accessibility deteriorate

Engineering Contradiction:
Improvequery functionalityVSAvoiduser capability requirements
Core Design Contradiction:
Adaptability or versatilityVSEase of operation

Solution Approach 1:

The patent introduces a query compiler as an intermediary component that translates natural language or simplified query expressions into complex SQL statements. This mediator handles the complexity of query construction internally while presenting a simplified interface to users, thereby maintaining query functionality without requiring advanced user expertise in SQL syntax and database operations.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If a query compiler converts state specifications into database queries through multiple transformation stages, then query accuracy and reliability are improved, but processing time and system complexity worsen

Engineering Contradiction:
Improvequery accuracyVSAvoidprocessing time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The query compiler performs preliminary actions by pre-compiling and caching commonly used query patterns and transformation rules. When processing new queries, the system can leverage these pre-computed intermediates and reusable components, reducing the time required for multi-stage transformations while maintaining query accuracy through the established compilation pipeline.

Inventive Principle:
Principle #10Preliminary action

3Adaptability or versatility

If the system uses intermediate representations like abstract syntax trees and worksheet algebra, then query transformation capability and versatility are improved, but device complexity worsens

Engineering Contradiction:
Improvequery transformation capabilityVSAvoidsystem architecture complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent segments the query compilation process into distinct modular stages, each handling a specific transformation task (e.g., parsing, abstract syntax tree construction, worksheet algebra conversion, SQL generation). This segmentation allows the system to manage complexity by organizing functions into independent, reusable modules while maintaining high transformation capability through the structured pipeline of intermediate representations.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS12013869B2Compiling a database query
Publication Date: 2024.06.18 SIGMA COMPUTING INC
  • US12013869B2 patent drawing
  • US12013869B2 patent drawing
  • US12013869B2 patent drawing

AI summary

Compiling a database query including receiving, by a query compiler from a client computing system, a state specification of a graphical user interface comprising a worksheet, wherein the worksheet is a presentation of a data set from a data warehouse; converting, by the query compiler, the state specification into a database query including determining a first order of operations for elements within the state specification; and sending the database query to the data warehouse.