Click-to-Narrow Slice Explorer

Every value is a link: each click adds a condition to the WHERE and re-asks the question. predict() gives the calibrated churn rate for the slice, recommend() the levers, and GROUP BY counts show the raw rates beside them.

Click-to-Narrow Slice Explorer: screenshot from the SQL demo
🐘 SQL_predict_recommendCross-vertical
Production anchorNothing precomputed: each click on the SQL demo's explorer runs predict() and recommend() on a slice that may never have been queried before, with the row count beside every rate.

The problem

Ad-hoc segment analysis usually waits for someone to build the cube. The slices the cube was built for answer fast; the slice the analyst actually wants next does not exist yet.

Thin slices bring a second problem. A raw rate over a few dozen rows looks as solid as one over thousands, and a dashboard that shows only the rate invites a decision the data cannot support.

How it works

The breadcrumb is the WHERE clause. Each click narrows it, and three kinds of statement re-run on the new slice: predict() for the calibrated outcome rate, recommend() with the slice as its condition for the levers the business can change, and a GROUP BY count for the raw rates of every value.

The engine and the counts can disagree on a thin slice, and the page shows both. The prediction shrinks toward the base rate when the evidence is thin, which is the calibration working, not a bug.

For the full architecture, see the technology overview. For the broader narrative across multiple use cases, read The Predictive Application.

See it live

This use case runs in the 🐘 SQL demo today. Click through to the live application and inspect the queries that produce the result.

Open the live demo →