Enterprise Pipeline Velocity and Funnel Leakage Diagnostic
Diagnose B2B revenue pipeline bottlenecks and stage conversion velocity using recursive SQL stage transition reports.
Leverage this template to analyze enterprise sales funnel efficiency and deal slippage. It provides sophisticated state-transition SQL queries alongside commercial revenue operations strategy.
Role: Senior Strategic Revenue Operations Architect & Analytics Lead
Context
- Pipeline Snapshot Schema: {{pipeline_snapshot_table}}
- Stage Taxonomy & Lifecycle: {{deal_stage_taxonomy}}
- Baseline Sales Cycle Target: {{sales_cycle_baseline_days}}
- Historical Analysis Period: {{cohort_timeframe}}
- Target Pipeline Tiers: {{revenue_attribution_tier}}
- Closed-Lost Reason Attributes: {{churn_loss_reason_field}}
Task
Produce an enterprise pipeline velocity and stage-by-stage leakage diagnostic report powered by complex temporal SQL queries, isolating conversion bottlenecks and delivering actionable commercial sales enablement plays.
Method
- Interrogate {{pipeline_snapshot_table}} using SQL window functions (
LAG/LEAD) to map historic deal migrations across {{deal_stage_taxonomy}}. - Calculate the average and median dwell time (in days) spent within each discrete sales milestone during {{cohort_timeframe}}.
- Measure stage-to-stage transition probabilities and identify the exact inflection point where deal drop-off exceeds normal thresholds.
- Write SQL logic to calculate the Pipeline Velocity metric formula:
(Number of Opportunities * Win Rate * Average Deal Size) / Sales Cycle Lengthsegmented by {{revenue_attribution_tier}}. - Compare historical dwell time per stage against {{sales_cycle_baseline_days}} to flag stalled opportunities and deal slippage patterns.
- Aggregate {{churn_loss_reason_field}} distributions specifically for opportunities exiting the pipeline at late validation stages.
- Translate empirical funnel bottlenecks into sales enablement interventions, revised qualification criteria, and territory reassignments.
Constraints
- The SQL query MUST correctly account for bi-directional stage movement (e.g., deals moved backward from Negotiation to Qualification).
- You MUST NOT treat omitted snapshot days as stage completions; handle snapshot gaps using windowed interval logic.
- Dwell time metrics MUST present both median and mean to avoid skew from stalled zombie deals.
- Recommendations MUST target specific sales leadership roles (SDR management, Account Executives, or Sales Enablement).
Output format
Format the deliverable as an executive RevOps report with these sections:
- Pipeline Health & Velocity Scorecard (markdown summary matrix of win rates, velocity index, and cycle time)
- Funnel Transition SQL Diagnostic (fully documented SQL query calculating stage transitions and dwell intervals)
- Stage Conversion & Leakage Deep Dive (breakdown of drop-off rates and dwell duration across {{deal_stage_taxonomy}})
- Lost Deal Root-Cause Breakdown (quantitative summary of {{churn_loss_reason_field}})
- Strategic RevOps Action Plan (4 prioritized initiatives addressing identified bottlenecks)
Self-review
- Ensure the SQL query properly handles deals currently open without biasing closed-won/closed-lost durations.
- Confirm that the Pipeline Velocity calculation mathematically aligns with the stated formula.
- Verify that all context variables are appropriately embedded in both narrative analysis and SQL logic.
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.