GASP

SQL-to-Opportunity Rate

SQL-to-Opportunity Rate: Percentage of SQLs that become pipeline opportunities.

Formula

SQL-to-Opp = Opportunities created / SQLs × 100

Computable definition

The canonical formula in the GASP formula grammar. The MCP server compiles it to SQL over the datasets listed below.

count_distinct(field.opportunity_id where in_period(field.opportunity_created_date)) / metric.sqls

Unit: percent (the formula yields an unscaled ratio)

Data requirements

Grain: Per lead stage date, aggregate daily · Frequency: Daily · Aggregation: aggregate (day) · Staged: no · Main source: CRM.

Field Dataset Type
lead_id lead string
opportunity_created_date opportunity date
opportunity_id opportunity string
snapshot_date lead date
snapshot_date opportunity date
sql_date lead date
Example SQL (Postgres)
SELECT (CAST((SELECT COUNT(DISTINCT opportunity_id) FROM opportunity WHERE snapshot_date = :period_end AND (opportunity_created_date >= :period_start AND opportunity_created_date <= :period_end)) AS DOUBLE PRECISION) / NULLIF(((SELECT COUNT(DISTINCT lead_id) FROM lead WHERE snapshot_date = :period_end AND (sql_date >= :period_start AND sql_date <= :period_end))), 0)) AS sql_to_opportunity_rate

From an agent: with the GASP MCP server, call lookup_metric({ "name": "SQL-to-Opportunity Rate" }) or generate_query({ "metric": "SQL-to-Opportunity Rate", "adapter": "<your adapter JSON>" }).

Benchmarks

  • Below 30%: Low conversion
  • 30-50%: Average
  • Above 50%: Good

Try searching for:

↑↓navigate↵select