Investigative analysis - explores related data to answer questions
Table-in, table-out — composes downstream of SELECTs.
THEN INVESTIGATE {{ prompt }}THEN INVESTIGATE({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Returns evidence-backed investigation rows with the expected schema
SELECT
*
FROM
(
VALUES
('Acme', 100),
('Bravo', 50),
('Acme', 120)
) AS t (customer, amount) THEN INVESTIGATE (
'Which customer appears to have the strongest sales performance?'
) THEN PYTHON (
'result = pd.DataFrame({"ok":[set(["finding","category","evidence"]).issubset(df.columns)]})'
)Apply theme styling to a chart specification
Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Filter query results using LLM-based semantic matching
Group by column and aggregate another
Investigative analysis - explores related data to answer questions
Table-in, table-out — composes downstream of SELECTs.
THEN INVESTIGATE {{ prompt }}THEN INVESTIGATE({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Returns evidence-backed investigation rows with the expected schema
SELECT
*
FROM
(
VALUES
('Acme', 100),
('Bravo', 50),
('Acme', 120)
) AS t (customer, amount) THEN INVESTIGATE (
'Which customer appears to have the strongest sales performance?'
) THEN PYTHON (
'result = pd.DataFrame({"ok":[set(["finding","category","evidence"]).issubset(df.columns)]})'
)Apply theme styling to a chart specification
Analyze query results with LLM based on a prompt
Remove duplicate rows
Add LLM-computed columns to query results
Filter query results using LLM-based semantic matching
Group by column and aggregate another