On the 13 working questions, each asked once (1 repetition), the model got 5 of 13 answers right with no context and 12 of 13 with spec. That is 38% → 92%. Question by question: 7 fixed, 0 broke, 0 unstable, 6 did not move.
For the person who owns the business definitions: what to check before repeating the number, which questions moved and why, and whether each rule earns its place.
contextlift round: all 12 checks passed (table coverage, project match, pasted SQL, template twin, leak, holdout reads, resolvable lift, lint, stored-example lookups, answers with no SQL, predictions vs answer key (control), predictions vs answer key (treatment)).contextlift round verified table coverage, project match, and live execution across all 28 gold queries with 0 gold errors.contextlift round): clean, so the file does not contain the answers.SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c
SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0
SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s
SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0
SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c
SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
SELECT ROUND(SUM(inv.net_amt_local) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv
SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
| scoring | without context | with spec |
|---|---|---|
| strict: the columns must match exactly | 38.5% (5 of 13) | 92.3% (12 of 13) |
| tolerant: extra columns are ignored | 38.5% (5 of 13) | 92.3% (12 of 13) |
round_18e7223e_context.md. 3 name a table and column, so an answer can be traced to them: 3 credited with a fix, 0 blamed for a break, 0 with no traced effect on these questions (rules can overlap multiple questions). A blamed rule is a lead, not a verdict: confirm it by running the same context without that line.context-write --note. Fixed and broke count questions, by majority over the runs.| round | version | what it used | runs | rate | lift [95%] | questions | p, verdict |
|---|---|---|---|---|---|---|---|
| 1 | Finance Context v2 | 3 rule lines | 1 | 92.3% | +53.8 pts [+7.9, +82.3] | fixed 7 / broke 0 | 0.016 REAL GAIN |
round_18e7223e_context.md.| id / location | rule | what it changed (question, runs) |
|---|---|---|
| R001 round_18e7223e_context.md:2 | - "Recognized Net Revenue" -> SUM(erp_ar_inv.net_amt_local * fx_rates_daily.usd_rate) WHERE erp_ar_inv.inv_status = 'POSTED' AND erp_ar_inv.is_void = 0 AND erp_ar_inv.deleted_at IS NULL AND erp_ar_inv.company_code != '00999' | fixed q10 in 1 run, q22 in 1 run, q25 in 1 run, q28 in 1 run |
| R002 round_18e7223e_context.md:3 | - "Active ARR" -> SUM(subscriptions.mrr_usd) * 12 WHERE subscriptions.status = 'ACTIVE' AND subscriptions.is_internal = 0 | fixed q14 in 1 run |
| R003 round_18e7223e_context.md:4 | - "Closed-Won Bookings" -> SUM(crm_opp_hist.amount_usd) WHERE crm_opp_hist.stage_cd = 'CW_WON' | fixed q12 in 1 run, q18 in 1 run |
Everything needed to reproduce or dispute the result. Each section opens on click.
| quantity | value |
|---|---|
| verdict word | REAL GAIN, resting on p = 0.016 |
| questions, repetitions | 13 questions, 1 repetition each |
| rate without context | 38.5% (5 of 13), Wilson 95% 17.7% to 64.5% |
| rate with context | 92.3% (12 of 13), Wilson 95% 66.7% to 98.6% |
| question-level mean lift | +53.8 pts, 95% [+7.9 pts, +82.3 pts] |
| each question counted once | sign-flip test over the per-question differences (exact McNemar when each question was asked once): fixed 7, broke 0, p = 0.016 |
| each answer counted separately | McNemar's exact test: fixed 7, broke 0 of 13 paired answers, p = 0.016 |
| outcome | id | question | without | with | why | which rule did this? | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| Fixed | q10 | What is Recognized Net Revenue in USD for batch 10?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✗ | ✓ | credited: R001 in 1 of 1 runs | |||||
| Fixed | q12 | What is total Closed-Won Bookings in USD (offset 12)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' without context, run 1 SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c with context, run 1 SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' | ✗ | ✓ | credited: R003 in 1 of 1 runs | |||||
| Fixed | q14 | What is Active ARR in USD (offset 14)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 without context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s with context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 | ✗ | ✓ | credited: R002 in 1 of 1 runs | |||||
| Fixed | q18 | What is total Closed-Won Bookings in USD (offset 18)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' without context, run 1 SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c with context, run 1 SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' | ✗ | ✓ | credited: R003 in 1 of 1 runs | |||||
| Fixed | q22 | What is Recognized Net Revenue in USD for batch 22?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✗ | ✓ | credited: R001 in 1 of 1 runs | |||||
| Fixed | q25 | What is Recognized Net Revenue in USD for batch 25?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✗ | ✓ | credited: R001 in 1 of 1 runs | |||||
| Fixed | q28 | What is Recognized Net Revenue in USD for batch 28?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✗ | ✓ | credited: R001 in 1 of 1 runs | |||||
| Wrong both ways | q09 | What is total Closed-Won Bookings in USD (offset 9)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(c.amount_usd) + 9, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' without context, run 1 SELECT ROUND(SUM(c.amount_usd) + 9, 2) AS closed_won_usd FROM crm_opp_hist c with context, run 1 SELECT ROUND(SUM(c.amount_usd) + 9, 2) AS closed_won_usd FROM crm_opp_hist c what the scorer saw: MISMATCH · same shape (1 rows x 1 columns), different values correct rows
the model's rows
| ✗ | ✗ | right shape, wrong numbers: usually a metric definition | |||||
| Right both ways | q01 | What is Recognized Net Revenue in USD for batch 1?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 1, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 1, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 1, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✓ | ✓ | ||||||
| Right both ways | q02 | What is Active ARR in USD (offset 2)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(s.mrr_usd) * 12 + 2, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 without context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 2, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 with context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 2, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 | ✓ | ✓ | ||||||
| Right both ways | q04 | What is Recognized Net Revenue in USD for batch 4?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 4, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' without context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 4, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' with context, run 1 SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 4, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999' | ✓ | ✓ | ||||||
| Right both ways | q05 | What is Active ARR in USD (offset 5)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(s.mrr_usd) * 12 + 5, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 without context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 5, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 with context, run 1 SELECT ROUND(SUM(s.mrr_usd) * 12 + 5, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0 | ✓ | ✓ | ||||||
| Right both ways | q06 | What is total Closed-Won Bookings in USD (offset 6)?the correct SQL and every attemptcorrect SQL (the answer key) SELECT ROUND(SUM(c.amount_usd) + 6, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' without context, run 1 SELECT ROUND(SUM(c.amount_usd) + 6, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' with context, run 1 SELECT ROUND(SUM(c.amount_usd) + 6, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON' | ✓ | ✓ |
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(inv.net_amt_local) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv +SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 10, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c +SELECT ROUND(SUM(c.amount_usd) + 12, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s +SELECT ROUND(SUM(s.mrr_usd) * 12 + 14, 2) AS active_arr_usd FROM subscriptions s WHERE s.status = 'ACTIVE' AND s.is_internal = 0
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c +SELECT ROUND(SUM(c.amount_usd) + 18, 2) AS closed_won_usd FROM crm_opp_hist c WHERE c.stage_cd = 'CW_WON'
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(inv.net_amt_local) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv +SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 22, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(inv.net_amt_local) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv +SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 25, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
--- without context, run 1 +++ with context, run 1 @@ -1 +1 @@ -SELECT ROUND(SUM(inv.net_amt_local) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv +SELECT ROUND(SUM(inv.net_amt_local * fx.usd_rate) + 28, 2) AS net_rev_usd FROM erp_ar_inv inv JOIN fx_rates_daily fx ON fx.ccy = inv.ccy AND fx.rate_dt = inv.posting_dt WHERE inv.inv_status = 'POSTED' AND inv.is_void = 0 AND inv.deleted_at IS NULL AND inv.company_code != '00999'
--- without context (no context) +++ with spec @@ -0,0 +1,4 @@ +# Finance Context v2 +- "Recognized Net Revenue" -> SUM(erp_ar_inv.net_amt_local * fx_rates_daily.usd_rate) WHERE erp_ar_inv.inv_status = 'POSTED' AND erp_ar_inv.is_void = 0 AND erp_ar_inv.deleted_at IS NULL AND erp_ar_inv.company_code != '00999' +- "Active ARR" -> SUM(subscriptions.mrr_usd) * 12 WHERE subscriptions.status = 'ACTIVE' AND subscriptions.is_internal = 0 +- "Closed-Won Bookings" -> SUM(crm_opp_hist.amount_usd) WHERE crm_opp_hist.stage_cd = 'CW_WON'
| shape | meaning | without | with |
|---|---|---|---|
| WRONG_VALUES | right shape, wrong numbers: usually a metric definition | 8 | 1 |
| setup | scored runs | answering | scoring | bytes billed |
|---|---|---|---|---|
| without context | 1 | 0.0 s | 0.0 s | not recorded (no warehouse bill on this database) |
| with context | 1 | 0.0 s | 0.0 s | not recorded (no warehouse bill on this database) |