# US 2022/0284013 A1 · Processing a logical query

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0284013 A1
- Document ID: US20220284013A1
- Status: Published application
- Kind: A1
- Application number: 17/750,060
- Filed: 2022-05-20
- Published: 2022-09-08
- Earliest claimed: 2018-07-24
- Assignees: MachEye, Inc.
- Applicants: MachEye, Inc.
- Inventors: Ramesh Panuganty; Chandrasekhar Varada; Srikanth Ryali; Gopikrishna Putti
- Web page: https://patentgrep.com/patent/US20220284013A1

## CPC

- G06F 16/243: {Natural language query formulation}
- G06F 16/215: Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
- G06F 16/24578: {using ranking}
- G06F 16/248: Presentation of query results
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Some implementations generate logical queries from a canonical query, where the logical queries each reflect a modified scope of the canonical query. Implementations receive, via a personalized analytics system, a canonical query that is associated with a user. The canonical query can be analyzed to determine an intent of the canonical query. In turn, one or more implementations generate, based on the intent an anecdotal information associated with the user, a logical query that reflects a modified scope of the canonical query. In implementations multiple logical queries are generated and are processed to remove a duplicate logical query. A logical query can be used to extract data from a database associated with the personalized analytics system based on a modified scope.

## Claims

### Claim 1

A method comprising:
receiving a plurality of logical queries;
determining at least one duplicate logical query from the plurality of logical queries by identifying matching characteristics between two or more respective logical queries;
removing the at least one duplicate logical query from the plurality of logical queries to generate a modified plurality of logical queries;
correlating each logical query of the modified plurality of logical queries to anecdotal information associated with a user to generate a respective correlation value;
ranking the modified plurality of logical queries to generate multiple ranked logical queries based on a respective correlation value for each logical query of the modified plurality of logical queries;
selecting at least a subset of the multiple ranked logical queries; and
generating scripting statements for each ranked logical query of the subset to extract information from a database.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the matching characteristics include at least one of matching primary attributes, matching secondary attributes, matching keywords, or matching time scopes.

### Claim 3 (depends on 2)

The method as recited in claim 2, further comprising:
determining a primary attribute for each logical query of the plurality of logical queries; and
determining the at least one duplicate logical query from the plurality of logical queries further by determining that the two or more respective logical queries have a same primary attribute.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein said generating the scripting statements comprises:
evaluating a first set of scripting statements and a second set of scripting statements to generate respective efficiency metrics, wherein the first set of scripting statements and the second set of scripting statements are configured to generate a same result; and
selecting one of the first set of scripting statements and the second set of scripting statements to use as the scripting statements to extract information from the database based, at least in part, on the efficiency metric.

### Claim 5 (depends on 1)

The method as recited in claim 1, for at least one logical query of the plurality of logical queries, the method further comprises:
identifying keywords of the logical query;
determining whether each identified keyword of the identified keywords falls within a predefined threshold associated with a query success rate; and
in response to determining that an identified keyword falls below the predefined threshold, replacing the identified keyword of the logical query with a keyword that has a higher query success rate.

### Claim 6 (depends on 1)

The method as recited in claim 1, for at least one logical query of the plurality of logical queries, the method further comprises:
identifying keywords of the logical query;
ranking the identified keywords of the logical query; and
selecting a keyword subset of the identified keywords based on said ranking to generate a modified logical query of the modified plurality of logical queries.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein said removing the duplicate logical queries comprises:
analyzing at least two logical queries of the plurality of logical queries to identify a first logical query and a second logical query that have a same primary attribute and a same scope; and
marking the first logical query and the second logical query as being duplicates of one another.

### Claim 8

A system comprising:
one or more processors; and
one or more storage devices comprising processor executable instructions that, responsive to execution by the one or more processors, cause the system to perform operations comprising:
receiving a plurality of logical queries;
determining duplicate logical queries from the plurality of logical queries by identifying matching characteristics between two respective logical queries;
removing the duplicate logical queries from the plurality of logical queries to generate a modified plurality of logical queries;
correlating each logical query of the modified plurality of logical queries to anecdotal information associated with a user to generate a respective correlation value;
ranking the modified plurality of logical queries to generate multiple ranked logical queries based on the respective correlation value;
selecting at least a subset of the multiple ranked logical queries; and
generating scripting statements for each ranked logical query of the subset to extract information from a database.

### Claim 9 (depends on 8)

The system as recited in claim 8, wherein said selecting at least the subset of the multiple ranked logical queries comprises selecting a predetermined number of logical queries based, at least in part, on a playback duration of an associated narrated analytics playlist, each logical query of the multiple ranked logical queries having a corresponding time duration for playback of extracted information from the logical query in the associated narrated analytics playlist.

### Claim 10 (depends on 8)

The system as recited in claim 8, the operations further comprising:
applying, to each logical query of the subset, a security constraint that indicates a level of authorized data access.

### Claim 11 (depends on 8)

The system as recited in claim 8, wherein the anecdotal information associated with the user is learned based on a model trained using machine learning.

### Claim 12 (depends on 8)

The system as recited in claim 8, wherein for at least one logical query of the plurality of logical queries, the operations further comprise:
identifying keywords of the logical query; and
generating an additional query for the plurality of logical queries that replaces at least one identified keyword with a replacement keyword that has a higher success rate than a success rate of the at least one identified keyword.

### Claim 13 (depends on 8)

The system as recited in claim 8, wherein said removing the duplicate logical queries comprises:
analyzing keywords in at least two logical queries of the plurality of logical queries to identify a first logical query and a second logical query that have a threshold value of matching keywords; and
marking the first logical query and the second logical query as being duplicates of one another.

### Claim 14

A method comprising:
receiving a plurality of logical queries;
removing duplicate logical queries from the plurality of logical queries to generate a modified plurality of logical queries;
ranking the modified plurality of logical queries to generate multiple ranked logical queries;
selecting at least a subset of the multiple ranked logical queries; and
generating scripting statements for each ranked logical query of the subset to extract information from a database.

### Claim 15 (depends on 14)

The method as recited in claim 14, wherein ranking the modified plurality of logical queries comprises:
correlating each logical query of the modified plurality of logical queries to anecdotal information associated with a user to generate a respective correlation value; and
ranking the modified plurality of logical queries by the respective correlation value.

### Claim 16 (depends on 14)

The method as recited in claim 14, wherein said selecting at least the subset of the multiple ranked logical queries comprises selecting a predetermined number of logical queries based, at least in part, on a playback duration of an associated narrated analytics playlist, each logical query of the multiple ranked logical queries having a corresponding time duration for playback of extracted information from the logical query in the associated narrated analytics playlist.

### Claim 17 (depends on 14)

The method as recited in claim 14, wherein said generating the scripting statements comprises:
evaluating a first set of scripting statements and a second set of scripting statements to generate respective efficiency metrics, wherein the first set of scripting statements and the second set of scripting statements are configured to generate a same result; and
selecting one of the first set of scripting statements and the second set of scripting statements to use as the scripting statements to extract information from the database based, at least in part, on the efficiency metric.

### Claim 18 (depends on 14)

The method as recited in claim 14, further comprising:
applying, to each logical query of the subset, a security constraint that indicates a level of authorized data access.

### Claim 19 (depends on 14)

The method as recited in claim 14, wherein said removing the duplicate logical queries comprises:
analyzing keywords in each logical query of the plurality of logical queries to identify a first logical query and a second logical query that have a threshold value of matching keywords; and
marking, based on said analyzing, the first logical query and the second logical query as being duplicates of one another.

### Claim 20 (depends on 14)

The method as recited in claim 14, wherein said removing the duplicate logical queries comprises:
analyzing each logical query of the plurality of logical queries to identify a first logical query and a second logical query that have a same primary attribute and a same scope; and
marking, based on said analyzing, the first logical query and the second logical query as being duplicates of one another.
