# US 11,748,342 B2 · Natural language based processor and query constructor

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

- Number: US 11,748,342 B2
- Document ID: US11748342B2
- Status: Granted
- Kind: B2
- Application number: 17/396,407
- Filed: 2021-08-06
- Published: 2023-02-09
- Granted: 2023-09-05
- Earliest claimed: 2021-08-06
- Assignees: Cloud Software Group, Inc.
- Applicants: Cloud Software Group, Inc.
- Inventors: Raphael Derbier
- Web page: https://patentgrep.com/patent/US11748342B2

## CPC

- G06F 16/243: {Natural language query formulation}
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06F 16/248: Presentation of query results
- G06F 16/288: {Entity relationship models}
- G06F 40/205: Parsing
- G06F 40/211: Syntactic parsing, e.g. based on context-free grammar [CFG] or unification grammars
- G06F 40/253: Grammatical analysis; Style critique
- G06F 40/247: Thesauruses; Synonyms
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An apparatus comprising an interface and a natural language processor. The interface receives a data retrieval request formatted in a natural language and the natural language processor processes the data retrieval request. Processing the data retrieval request includes identifying database entities, database relations, or any combination thereof based words in the data retrieval request. It can also include identifying database entity criterion, database relation criterion, or any combination thereof based on words in the data retrieval request. It also includes generating a database query based on the database entities, the database relations, the database entity criterion, the database relation criterion, or any combination thereof and causing the database query to be applied to a database. Wherein, processing the data retrieval request includes grammatically tagging the data retrieval request using part-of-speech tagging techniques, e.g. grammatical type, grammatical context, semantic, or any combination thereof, and a database ontology.

## Claims

### Claim 1

An apparatus comprising:
an interface for receiving a data retrieval request formatted in a natural language; and
a natural language processor for processing the data retrieval request, processing the data retrieval request includes:
identifying at least one database entity, at least one database relation, at least one database entity criteria, at least one database relation criteria, or any combination thereof based on at least one word in the data retrieval request; and
generating a database query based on the at least one database entity, the at least one database relation, the at least one database entity criteria, the at least one database relation criteria, or any combination thereof;
causing the database query to be applied to a database; and
wherein the natural language processor uses database domain ontology to process the data retrieval request.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein processing the data retrieval request further includes:
grammatically tagging the data retrieval request;
identifying at least one selected from a group consisting of a linguistic group, a common entity noun, a database entity, a database entity criteria, a database relation, and a database relation criteria using the tagged data retrieval request and the database domain ontology; and
creating at least one chunk, each chunk comprising at least one selected from a group consisting of the linguistic group, the common entity noun, the database entity, the database relation, the database entity criteria, and the database relation criteria.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein processing the data retrieval request further includes grammatically tagging the data retrieval request by identifying each word or multiple words as having a grammatical type, grammatical context, semantic, or any combination thereof.

### Claim 4 (depends on 2)

The apparatus of claim 2, further comprising associating each chunk comprising the database entity criteria or database relation criteria with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof using the database ontology.

### Claim 5 (depends on 2)

The apparatus of claim 2, wherein each chunk comprising the database entity criteria or database relation criteria is associated with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof based on attribute proximity to the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof.

### Claim 6 (depends on 1)

The apparatus of claim 1, where the at least one database entity criteria or the at least one database relation criteria comprises at least one database attribute, at least one database function, at least one value, or any combination thereof.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the database ontology comprises one or more text corpus, a database schema, a database base model, or any combination thereof.

### Claim 8

A system comprising:
an interface for receiving a data retrieval request formatted in a natural language; and
a natural language processor for processing the data retrieval request, processing the data retrieval request includes:
identifying at least one database entity, at least one database relation, at least one database entity criteria, at least one database relation criteria, or any combination thereof based on at least one word in the data retrieval request; and
generating a database query based on the at least one database entity, the at least one database relation, the at least one database entity criteria, the at least one database relation criteria, or any combination thereof; and
a database for receiving the database query and generating a response;
wherein the natural language processor uses database domain ontology to process the data retrieval request.

### Claim 9 (depends on 8)

The system of claim 8, wherein processing the data retrieval request further includes:
grammatically tagging the data retrieval request;
identifying at least one selected from a group consisting of a linguistic group, a common entity noun, a database entity, a database entity criteria, a database relation, and a database relation criteria using the tagged data retrieval request and the database domain ontology; and
creating at least one chunk, each chunk comprising at least one selected from a group consisting of the linguistic group, the common entity noun, the database entity, the database relation, the database entity criteria, and the database relation criteria.

### Claim 10 (depends on 9)

The system of claim 9, wherein processing the data retrieval request further includes grammatically tagging the data retrieval request by identifying each word or multiple words as having a grammatical type, grammatical context, semantic, or any combination thereof.

### Claim 11 (depends on 9)

The system of claim 9, further comprising associating each chunk comprising the database entity criteria or database relation criteria with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof using the database ontology.

### Claim 12 (depends on 9)

The system of claim 9, wherein each chunk comprising the database entity criteria or database relation criteria is associated with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof based on attribute proximity to the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof.

### Claim 13 (depends on 8)

The system of claim 8, where the at least one database entity criteria or the at least one database relation criteria comprises at least one database attribute, at least one database function, at least one value, or any combination thereof.

### Claim 14 (depends on 8)

The system of claim 8, wherein the database ontology comprises one or more text corpus, a database schema, a database base model, or any combination thereof.

### Claim 15

A method comprising:
receiving a data retrieval request formatted in a natural language;
identifying at least one database entity, at least one database relation, at least one database entity criteria, at least one database relation criteria, or any combination thereof based on at least one word in the data retrieval request;
generating a database query based on the at least one database entity, the at least one database relation, the at least one database entity criteria, the at least one database relation criteria, or any combination thereof; and
causing the database query to be applied to a database.

### Claim 16 (depends on 15)

The method of claim 15, further comprising:
grammatically tagging the data retrieval request;
identifying at least one selected from a group consisting of a linguistic group, a common entity noun, a database entity, a database entity criteria, a database relation, and a database relation criteria using the tagged data retrieval request and a database domain ontology; and
creating at least one chunk, each chunk comprising at least one selected from a group consisting of the linguistic group, the common entity noun, the database entity, the database relation, the database entity criteria, and the database relation criteria.

### Claim 17 (depends on 16)

The method of claim 16, further comprising grammatically tagging the data retrieval request by identifying each word or multiple words as having a grammatical type, grammatical context, semantic, or any combination thereof.

### Claim 18 (depends on 16)

The method of claim 16, further comprising associating each chunk comprising the database entity criteria or database relation criteria with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof using the database ontology.

### Claim 19 (depends on 16)

The method of claim 16, further comprising associating each chunk comprising the database entity criteria or database relation criteria with the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof based on attribute proximity to the common entity noun, the at least one database entity, the at least one database relation, or any combination thereof.

### Claim 20 (depends on 16)

The method of claim 16, wherein the database ontology comprises one or more text corpus, a database schema, a database base model, or any combination thereof.
