Skip to main content

AI STUDIO / FROM EVIDENCE TO DECISION

Turn the question into SQL you can inspect.

Keep source context, generated logic and result validation together as you explore.

Use the finance connection and the close contract. Selected finance source.
Illustrative workflow · product-based SVG · mock dataOpen full-size screen ↗
Use the finance connection and the close contract.

Select finance_postgres. The example counts posted USD entries for 26 November; invoices are positive and credit entries are negative.

Marked on screen: Selected finance source.

ILLUSTRATIVE SCENARIO

“What did we sell?” needs a contract.

A finance analyst asks for daily net sales before the reporting cutoff.

QuestionNet sales · yesterday · USD
QueryPosted invoices − valid credits
ValidateReconcile one day before sharing

Confirm grain, timezone and currency with the owner. Review the generated query and its result as separate steps.

Download the synthetic ledger used in this example. It includes 250 in-scope entries and three deliberately excluded rows. Filter by date, currency and status before reconciling the result.

Setup, interpretation and operating boundaries

The illustrated SQL worksheet has a separate Execute Query control. In V2 SQL Assistant mode, a runnable generated read query runs as part of answering. A statement that may write data is held until you press Execute Query on the SQL Assistant answer card, inspect the SQL in Run this statement?, and confirm Run. A reply marked not runnable cannot be executed from that reply. Use source credentials restricted to the data and operations you need; a read-only prompt is not a database permission boundary. Use a separate SQL worksheet when you need to inspect SQL before running even a read query.

AI Studio supports questions, generated SQL and worksheets. Select the correct source and relevant context, inspect generated SQL, then execute through the authorized workflow. Check joins, filters, date boundaries, aggregation, null behavior and result scope against known examples.

The illustrated execution and reconciliation use synthetic ledger data; they are not a measured customer run. Generated SQL is a proposal and can be wrong or expensive. Source permissions, model configuration and connector capabilities bound the workflow. Reusing a query in a dashboard does not make its business definition correct.

Continue with the product and reference guides
Discuss this use case