# US 2021/0081405 A1 · Spreadsheet with dynamic database queries

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

- Number: US 2021/0081405 A1
- Document ID: US20210081405A1
- Status: Published application
- Kind: A1
- Application number: 17/019,214
- Filed: 2020-09-12
- Published: 2021-03-18
- Earliest claimed: 2019-09-13
- Assignees: Goldman, Sachs & Co.
- Applicants: Goldman Sachs & Co. LLC
- Inventors: Dean Andrew Zarras
- Web page: https://patentgrep.com/patent/US20210081405A1

## CPC

- G06F 16/2379: {Updates performed during online database operations; commit processing}
- G06F 16/2457: with adaptation to user needs
- G06F 16/245: Query processing
- G06F 16/24553: {of query operations}
- G06F 16/248: Presentation of query results
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F 40/18: of spreadsheets (form-filling G06F40/174)
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A spreadsheet supports formulas in cells that trigger queries of a data source. The parameters for queries can include or depend on values in other cells in the spreadsheet. Thus, the precise query submitted to the data source is dynamic, being dependent on the data and formulas in the spreadsheet. Furthermore, on receiving the query results, they are added to cells in the spreadsheet, which can be parameters for other queries defined in other cells. Changing the value of a single cell can automatically trigger an update of an arbitrarily deep hierarchy of calculations that can include an arbitrary number of data source queries.

## Claims

### Claim 1

A method of updating a spreadsheet using a dynamic database query, the method comprising:
receiving a request to update a specified cell in the spreadsheet, the request including a value or formula for the specified cell;
updating the specified cell to include the value or formula;
identifying additional cells that depend on the specified cell;
obtaining a dependency hierarchy for the additional cells;
updating the additional cells according to the dependency hierarchy, wherein updating a first cell of the additional cells comprises dynamically defining a data source query using a current value of another cell in the spreadsheet and updating the first cell to include a result returned by the data source query; and
providing the spreadsheet for display.

### Claim 2 (depends on 1)

The method of claim 1, wherein a server performs the method, the request is received by the server from a client device, and the spreadsheet is provided for display by the server to the client device.

### Claim 3 (depends on 1)

The method of claim 1, wherein identifying the additional cells that depend on the specified cell comprises accessing a pre-existing calculation graph for the spreadsheet, the pre-existing calculation graph indicating dependencies between cells.

### Claim 4 (depends on 1)

The method of claim 1, wherein updating the additional cells according to the dependency hierarchy comprises:
updating one or more first-generation child cells of the specified cell;
determining whether there are any second-generation child cells; and
responsive to determining there is at least one second-generation child cell, updating the at least one second-generation child cell.

### Claim 5 (depends on 1)

The method of claim 1, wherein the current value is the updated value of the specified cell.

### Claim 6 (depends on 1)

The method of claim 1, wherein the data source query returns M attributes for each of N rows in the data source, wherein M and N are integers greater than 1, and the M attributes for each of N rows are inserted into a corresponding block of M by N cells in the spreadsheet.

### Claim 7 (depends on 6)

The method of claim 6, wherein a top-left corner of the block of M by N cells is the first cell and the result included in the first cell is a first parameter of the M attributes from a first row of the N rows.

### Claim 8 (depends on 1)

The method of claim 1, wherein providing the spreadsheet for display comprises causing first-generation children cells of a selected cell to be displayed with highlighting relative to the selected cell.

### Claim 9 (depends on 8)

The method of claim 8, wherein providing the spreadsheet for display further comprises causing second-generation children cells of the selected cell to be displayed with visually distinguishable highlighting relative to the selected cell and the first-generation children cells.

### Claim 10 (depends on 8)

The method of claim 8, wherein providing the spreadsheet for display further comprises providing controls configured to enable a user to select a number of generations of children and parent cells to highlight and causing the selected number of generations of children and parent cells to be displayed with highlighting relative to the selected cell.

### Claim 11

A non-transitory computer-readable storage medium comprising instructions that, when executed by a computing device, cause the computing device to perform operations including:
receiving a request to update a specified cell in a spreadsheet, the request including a value or formula for the specified cell;
updating the specified cell to include the value or formula;
identifying additional cells that depend on the specified cell;
obtaining a dependency hierarchy for the additional cells;
updating the additional cells according to the dependency hierarchy, wherein updating a first cell of the additional cells comprises dynamically defining a data source query using a current value of another cell in the spreadsheet and updating the first cell to include a result returned by the data source query; and
providing the spreadsheet for display.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein a server performs the operations, the request is received by the server from a client device, and the spreadsheet is provided for display by the server to the client device.

### Claim 13 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein identifying the additional cells that depend on the specified cell comprises accessing a pre-existing calculation graph for the spreadsheet, the pre-existing calculation graph indicating dependencies between cells.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein updating the additional cells according to the dependency hierarchy comprises:
updating one or more first-generation child cells of the specified cell;
determining whether there are any second-generation child cells; and
responsive to determining there is at least one second-generation child cell, updating the at least one second-generation child cell.

### Claim 15 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the current value is the updated value of the specified cell.

### Claim 16 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the data source query returns M attributes for each of N rows in the data source, wherein M and N are integers greater than 1, and the M attributes for each of N rows are inserted into a corresponding block of M by N cells in the spreadsheet.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, wherein a top-left corner of the block of M by N cells is the first cell and the result included in the first cell is a first parameter of the M attributes from a first row of the N rows.

### Claim 18 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein providing the spreadsheet for display comprises causing first-generation children cells of a selected cell to be displayed with highlighting relative to the selected cell and causing second-generation children cells of the selected cell to be displayed with visually distinguishable highlighting relative to the selected cell and the first-generation children cells.

### Claim 19 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein providing the spreadsheet for display comprises causing first-generation children cells of a selected cell to be displayed with highlighting relative to the selected cell, providing controls configured to enable a user to select a number of generations of children and parent cells to highlight, and causing the selected number of generations of children and parent cells to be displayed with highlighting relative to the selected cell.

### Claim 20

A server comprising:
a spreadsheet engine configured to:
receive a request to update a specified cell in the spreadsheet, the request including a value or formula for the specified cell;
update the specified cell to include the value or formula;
identify additional cells that depend on the specified cell;
obtain a dependency hierarchy for the additional cells;
update the additional cells according to the dependency hierarchy, wherein updating a first cell of the additional cells comprises dynamically defining a data source query using a current value of another cell in the spreadsheet and updating the first cell to include a result returned by the data source query; and
provide the spreadsheet for display; and
a data source configured to:
receive the data source query;
identify one or more results responsive to the query, the one or more results including the first result; and
return the one or more results to the spreadsheet engine in response to the data source query.
