Docs menu

Query Patterns

You rarely write queries by hand - you describe the shape and Thinky (or any agent) proposes it. These are the shapes that come up most.

PatternAsk it likeGives you
Aggregation over time"average signups per hour over the last day"a value bucketed by time
Threshold"every hour with more than 40 signups"rows past a cutoff
Comparison"signups by campaign this week"a metric split by a dimension
Trend"signups this week vs last week"period-over-period change

Each becomes a warm query - an API any AI can call (see Warm Queries). Save the ones your team re-derives; they become shared sources of truth.

More patterns

Eight longer starting points in KQL, with OEE, a downtime Pareto, batch traceability and energy cost: Query Pattern Library.

Next steps

On fathym.com: OpenX query patterns →

On this page