hottub.patents
US 12,346,378 B2#3507881 Most CitedActiveUnited States (USPTO)Utility

Automated database query generation and analysis

0Forward Citations (#3507881 Global)
0.0/yrCitation Velocity (#3507881 Global)
0.00Citation PageRank (#3507881 Global)
15Prior Art Cited
8Structured Claims
0Drawings / Sheets

Abstract

Techniques are disclosed relating to automatically generating and analyzing database queries. In various embodiments, a database inquiry assistance system maintains a first machine learning model trained using query history data for a database and a second machine learning model using analysis history for the database. In an embodiment, the system receives from a user system a request for an inquiry into data stored in the database and identifies a sequence of queries for responding to the request, where identifying the sequence of queries includes applying the second machine learning model to the request. The system generates corresponding database query code for implementing one or more of the queries in the sequence of queries, where generating the corresponding database query code includes applying the first machine learning model to descriptors of one or more of the queries, and sends a plan identifying the sequence of queries to the user system.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 15 · Forward citations: 0.

Claims (8)

  1. Claim 1Independent Claim

    A method, comprising: receiving, at a computer system and from a user system, an inquiry into data stored in a database accessible by the computer system using a database query code format, wherein the inquiry is not in the database query code format; generating a set of descriptors for a sequence of two or more queries corresponding to the inquiry, wherein generating the set of descriptors includes executing, by a processor of the computer system, a text generative machine learning model trained using analysis history data selected based at least in part on performance characteristics for previous query execution using the database; executing, by the computer system, a sequence-to-sequence machine learning model in a first direction to produce corresponding database query code for the set of descriptors, wherein the sequence-to-sequence machine learning model is trained using query history data selected based at least in part on performance characteristics for previous query execution

  2. Claim 2Depends on #1

    The method of claim 1, further comprising sending to the user system a suggested inquiry plan including the set of descriptors.

  3. Claim 3Depends on #2

    The method of claim 2, wherein sending the suggested inquiry plan includes sending the corresponding database query code.

  4. Claim 4Depends on #1

    The method of claim 1, wherein the inquiry includes incident details for a transaction using the database.

  5. Claim 5Depends on #1

    The method of claim 1, further comprising updating the analysis history data to reflect the sequence of queries.

  6. Claim 6Depends on #1

    The method of claim 1, wherein executing the sequence-to-sequence machine learning model includes generating abstract syntax trees (ASTs) corresponding to the descriptors of the set of descriptors.

  7. Claim 7Depends on #6

    The method of claim 6, wherein the sequence-to-sequence machine learning model is further trained using query analysis data, and wherein the query analysis data includes query identifiers and corresponding abstract syntax tree (AST) data for queries represented in the query history data.

  8. Claim 8Independent Claim

    A method, comprising: receiving, at a computer system and from a user system, a sequence of multiple queries for obtaining data from a database accessible by the computer system using a database query code format, wherein the sequence of multiple queries is expressed in the database query code format; executing, by a processor of the computer system, a sequence-to-sequence machine learning model in a first direction to generate corresponding natural-language step descriptions for submodules of the queries in the sequence, wherein the sequence-to-sequence machine learning model is trained using query history data selected based at least in part on performance characteristics for previous query execution using the database; executing, by the processor, the sequence-to-sequence machine learning model again, in a reverse direction as compared to the first direction, to generate one or more alternative query code submodules corresponding to the natural-language step descriptions; sending an

Technical Overview & Description

BACKGROUND Technical Field This disclosure relates generally to database queries, and more particularly to techniques for automatically generating and analyzing queries. Description of the Related Art Server computer systems, such as web servers, application servers, email servers, etc., may provide various computing resources and services to an end user. For example, a web service may use a computer system to provide access to software applications to remote users via a network. Large enterprises providing computing resources and services may have many users (e.g., millions) located in different geographic regions worldwide. User interactions with a server system for such an enterprise therefore happen in great numbers at an extremely high rate. Maintaining data to support such global interactions may require extensive databases with complex organizational structures, such as multidimensional databases. Ensuring proper operation of services provided to users as well as compliance with legal and regulatory requirements requires frequent queries of databases supporting the service. The queries can be very complex and very rapid response is often required. Errors in queries can result from these constraints, giving rise to failure to obtain the correct data when needed. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a data flow diagram illustrating an example of data flows involving elements of a database inquiry assistance system during operation, according to some embodiments. FIG. 2 A is a block diagram illustrating a structure of a database inquiry plan, according to some embodiments. FIG. 2 B illustrates examples of components of the inquiry plan of FIG. 2 A . FIG. 3 is a block diagram illustrating an example of a database inquiry assistance system, according to some embodiments. FIGS. 4 A- 4 B are data flow diagrams illustrating examples of data flows involving elements of a database inquiry assistance system during operation, according to some embodiments. FIG. 5

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (15)

PatentTitleYearCitations

Non-Patent Literature (10)

  • Alon et al.
  • “
  • Code2Seq: Generating Sequences from Structured Representations of Code.
  • ”
  • , 2019 teaches in Abstract,
  • “
  • the ability to generate natural language sequences from source code snippets
  • ”
  • . (Year: 2019).
  • Baik et al.