CLICKHOUSE
Talk to your ClickHouse in plain English
Self-hosted text-to-SQL for ClickHouse. Built for analytics workloads — billions of rows, plain language.
Connect in one step
Ask in plain English
Real ClickHouse queries Limerence generates from business questions.
“Weekly funnel conversion rate from signup to first purchase”
SELECT toStartOfWeek(signup_at) AS week,
count() AS signups,
countIf(first_purchase_at IS NOT NULL) AS converted,
round(countIf(first_purchase_at IS NOT NULL) / count() * 100, 2) AS conversion_pct
FROM user_lifecycle
WHERE signup_at >= now() - INTERVAL 12 WEEK
GROUP BY week
ORDER BY week;“Flatten event properties to count occurrences of each tag”
SELECT tag, count() AS occurrences
FROM events
ARRAY JOIN tags AS tag
WHERE event_time >= now() - INTERVAL 7 DAY
GROUP BY tag
ORDER BY occurrences DESC
LIMIT 25;“Sessionize page-view events into 30-minute idle-gap sessions per user”
SELECT user_id,
arrayJoin(
arraySplit(
(x, prev) -> dateDiff('minute', prev, x) > 30,
groupArray(event_time)
)
) AS session_events,
length(session_events) AS events_in_session,
session_events[1] AS session_start,
session_events[-1] AS session_end
FROM page_views
WHERE event_time >= now() - INTERVAL 1 DAY
GROUP BY user_id;How it works with ClickHouse
- Connects via the HTTP(S) interface (ports 8123 / 8443).
- Schema discovery uses system.tables and system.columns.
- MergeTree engine families fully supported (ReplacingMergeTree, AggregatingMergeTree, SummingMergeTree).
- Generated SQL uses ClickHouse aggregate functions: uniq, uniqExact, quantile, groupArray.
- Compatible with ClickHouse Cloud and self-hosted clusters.
ClickHouse questions
Does this work with ClickHouse Cloud?+
Yes. Use the HTTPS endpoint and credentials provided by Cloud — Limerence connects like any other client.
Are replicated and distributed tables supported?+
Yes. Queries hit the chosen replica via HTTP and distributed tables fan out per cluster configuration.
Can it use materialized views?+
Yes — they appear in schema discovery and are queryable like any other table.
Will it use SAMPLE clauses for fast exploration?+
When prompted to estimate or explore quickly, the agent can include SAMPLE clauses on tables that support them.
Only your schema structure (table and column names, types) is shared with the LLM. Row data is never sent. Generated SQL runs against your database directly and results stay inside your network.