Query Qualification Pipeline

How Solid filters millions of historical queries down to the representative set used to seed semantic models and benchmarks.

During ingestion, Solid processes raw query history from the data warehouse to extract the highest-value queries for seeding semantic models. The pipeline filters aggressively.

The Five-Stage Funnel

StageOperationExample Scale
Raw queriesAll historical queries from the query log35M
Filter irrelevantRemove unsuccessful queries; take unique SELECT queries (remove duplicates)1.7M
Select valuableKeep complex queries with metrics, filters, and joins — the ones the model can learn from1.2M
Map by user roleSelect reliable queries from human and machine users350K
Cluster queriesGroup similar queries into clusters; select cluster representatives10K

What Survives

The representative queries that survive the funnel are:

  • Syntactically valid SELECT statements
  • Structurally complex — containing joins, aggregations, filters, metrics
  • Contributed by reliable users (human analysts or trusted automation)
  • Deduplicated and clustered, so redundancy is eliminated

These representative queries are used to:

  • Identify relevant tables and columns for semantic model generation
  • Infer relationships between tables
  • Extract metric definitions
  • Seed benchmark questions, via certified SQL examples

Did this page help you?