Patent Document ID: 9734192
Application ID: 14032587

Base Claim:
1. A computer implemented method comprising: receiving a single database query language statement, the single database query language statement comprising both a lexical portion having one or more lexical terms and a sentiment clause portion, the sentiment clause portion comprising: a sentiment-aware operator corresponding to a particular sentiment sought after, wherein the sentiment-aware operator comprises a first parameter and a second parameter that are both contained within the sentiment-aware operator, the first parameter corresponding to one or more sentiment terms such that a sentiment analysis is performed for the one or more sentiment terms and the second parameter corresponding to a sentiment assessment indication term corresponding to the particular sentiment to be searched for relative to the one or more sentiment terms, wherein at least one of the one or more sentiment terms in the sentiment clause portion differs from the one or more lexical terms in the lexical portion; parsing, by a computer processor, the single database query language statement to identify the one or more lexical terms to be used in a retrieval of documents containing the one or more of the lexical terms; parsing the single database query language statement based at least on the sentiment-aware operator to identify the one or more sentiment terms for performing the sentiment analysis and to identify the sentiment assessment indication term that pertains to the particular sentiment relative to the one or more sentiment terms; retrieving the documents that contain at least one of the one or more lexical terms; and after retrieving the documents that contain at least one of the one or more lexical terms, performing the sentiment analysis on the one or more sentiment terms found within the documents to identify the documents that pertain to the particular sentiment based at least in part on the sentiment assessment indication term.

---

Claim 4:
4. The method of claim 1 wherein the single database query language statement further comprises a filter portion to filter sentiment analysis results from performing the sentiment analysis for the one or more sentiment terms within the documents that contains the one or more lexical terms.