```json
{
  "answer": 9,
  "definition_id": "delivery",
  "definition_version": null,
  "unanswerable": false,
  "note": "Counted C-118 orders with customer_confirm_date ≤ 2026-07-31"
}
```

Answer: 9


```json
{
  "answer": 109343,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Version 1 applied (effective to 2026-04-30); excludes freight and tax."
}
```

Answer: 109343


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window from 2026-01-17 to 2026-07-15 inclusive"
}
```

Answer: 17


```json
{"answer": 18220, "definition_id": "halden.def.order_value", "definition_version": 1, "unanswerable": false, "note": "O004 + O024; calculated as (gross - discount + freight)"}
```

Answer: 18220


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window: Nov 17, 2025 – May 15, 2026. 16 customers with non-cancelled orders."
}
```

Answer: 16


```json
{
  "answer": 6,
  "definition_id": "on-time-delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-118 HAL shipments confirmed delivered by 2026-07-31; 11 total, 6 met promised/revised dates"
}
```

Answer: 6


```json
{"answer": 23, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "23 delivered shipments were on-time as of 2026-08-31"}
```

Answer: 23


```json
{
  "answer": 7,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Counted weekdays (Mon-Fri) from 2025-12-29 through 2026-01-06 inclusive"
}
```

Answer: 7


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer satisfaction score field in provided data."
}
```


```json
{
  "answer": 8,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "8 of 12 delivered C-118 shipments were on time"
}
```

Answer: 8


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "7 of 20 delivered shipments met promised_date requirement"
}
```

Answer: 7


```json
{
  "answer": 153700,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of gross_amount for non-cancelled orders, 2026-05-01 to 2026-07-31."
}
```

Answer: 153700


```json
{
  "answer": 8,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "8 of 13 C-118 HAL deliveries as of 2026-06-30 on time"
}
```

Answer: 8


```json
{
  "answer": 20,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "20 of 44 delivered shipments were on time as of 2026-07-31"
}
```

Answer: 20


```json
{
  "answer": 50,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted shipments with customer_confirm_date on/before 2026-08-31"
}
```

Answer: 50


```json
{"answer": 139070, "definition_id": "Order value", "definition_version": 1, "unanswerable": false, "note": "15 non-cancelled orders placed between 2026-05-01 and 2026-07-31"}
```

Answer: 139070


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = contract_status='open'. No historical contract status dates available."
}
```

Answer: 20


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with contract_status='open' as of 2026-02-15"
}
```

Answer: 20


```json
{
  "answer": 34406,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoiced amounts for four HAL-supplied C-118 orders placed 2026-05-01 to 2026-07-31"
}
```

Answer: 34406


```json
{"answer": 10, "definition_id": "Delivered_Shipments", "definition_version": 1, "unanswerable": false, "note": "Meridian rule: customer_confirm_date present and on/before 2026-08-31"}
```

Answer: 10


```json
{
  "answer": 60055,
  "definition_id": "meridian.def.order_value",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Seven ZEN orders placed 2026-06-01 to 2026-08-31; all non-cancelled."
}
```

Answer: 60055


```json
{"answer": 104670, "definition_id": "meridian.def.net_revenue", "definition_version": 2, "unanswerable": false, "note": "12 invoices in period; 1 return (R006) dated 2026-06-04."}
```

Answer: 104670


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "18 customers with non-cancelled orders in 180-day window (2026-03-04 to 2026-08-31]"
}
```

Answer: 18


```json
{
  "answer": 10,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "10 of 17 C-118 HAL shipments delivered on time by 2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 9,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "9 business days: 2025-12-31, 2026-01-02, 05, 07-09, 12-14"
}
```

Answer: 9


```json
{
  "answer": 109343,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Invoiced orders sum: 112920; returns deducted: 3577"
}
```

Answer: 109343


```json
{
  "answer": 9,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "9 of 15 C-118 shipments delivered by 2026-07-31 were on time"
}
```

Answer: 9


```json
{
  "answer": 115288,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Sum of (gross - discount) for 13 invoices dated 2025-10-01 to 2025-12-31, minus 1 return dated in period"
}
```

Answer: 115288


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "No customer satisfaction score field in provided data."}
```


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Fed.C-118.delivered governs; counted HAL shipments with carrier_scan_date≤2026-06-30"
}
```

Answer: 15


```json
{
  "answer": 5,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Orders dated 2026-07-06 to 2027-01-01: C001, C004, C011, C013, C022"
}
```

Answer: 5


```json
{
  "answer": 17,
  "definition_id": "active_customers",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window from Dec 4, 2025 to Jun 1, 2026; non-cancelled orders only."
}
```

Answer: 17


```json
{
  "answer": 58155,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "7 non-cancelled ZEN orders 2026-06-01 to 2026-08-31"
}
```

Answer: 58155


Answer: 17


```json
{"answer": 14, "definition_id": "halden.def.delivered", "definition_version": 2, "unanswerable": false, "note": "C-118 shipments with carrier_scan_date on or before 2026-08-31"}
```

Answer: 14


```json
{
  "answer": 126340,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "14 non-cancelled orders placed in period; order value = gross - discount"
}
```

Answer: 126340


```json
{
  "answer": 55463,
  "definition_id": "net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Freight included; period after 1 May 2026. Five invoices, one return."
}
```

Answer: 55463


Answer: 29065


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Active in 365-day window ending 2026-03-15, non-cancelled orders"
}
```

Answer: 21


```json
{
  "answer": 18220,
  "definition_id": "Order value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden formula: gross minus discount plus freight, tax excluded"
}
```

**Calculation:**

Qualifying orders (HAL supplier, C-118 contract, placed 2026-01-01 to 2026-03-31, non-cancelled):

1. **O004** (2026-01-23): 7500 − 375 + 150 = **7,275**
2. **O024** (2026-02-26): 12700 − 1905 + 150 = **10,945**

**Total: 18,220**

Note: O051 (2026-03-19) is excluded due to cancelled status.

Answer: 18220


```json
{
  "answer": 139070,
  "definition_id": "Order value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "15 non-cancelled orders, 2026-05-01 to 2026-07-31: gross minus discount."
}
```

Answer: 139070


```json
{"answer": 18220, "definition_id": "halden.def.order_value", "definition_version": 1, "unanswerable": false, "note": "Fed record C-118: gross - discount + freight. Orders O004, O024."}
```

Answer: 18220


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Business day calculation requires weekend/holiday data unavailable."
}
```


```json
{
  "answer": 139070,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "15 non-cancelled orders: gross minus discount"
}
```

Answer: 139070


```json
{
  "answer": 21,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window: 2025-03-15 to 2026-03-15. Non-cancelled orders only."
}
```

Answer: 21


```json
{"answer": 17, "definition_id": "meridian.def.active_customer", "definition_version": 2, "unanswerable": false, "note": "Counted unique customers with non-cancelled orders from 2026-01-17 to 2026-07-15"}
```

Answer: 17


```json
{
  "answer": 104670,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Sum of (gross - discount + freight) for invoices 2026-05-01 to 2026-06-30, minus returns in period."
}
```

Answer: 104670


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = signup_date ≤ 2026-04-01 AND contract_status = open"
}
```

Answer: 20


```json
{
  "answer": 20,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "20 customers with orders in (2025-02-15, 2026-02-15], excluding cancelled"
}
```

Answer: 20


```json
{
  "answer": 6,
  "definition_id": "revised_promised_date_method",
  "definition_version": 1,
  "unanswerable": false,
  "note": "On-time uses revised_promised_date when present, otherwise promised_date. Delivered = customer_confirm_date not null before 2026-06-30."
}
```

Answer: 6


```json
{
  "answer": 7,
  "definition_id": "On-time delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Meridian rule pre-Feb 2026: delivery <= promised_date"
}
```

Answer: 7


```json
{
  "answer": 21,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "45 shipments delivered; 21 met on-time criteria using revised_promised_date"
}
```

Answer: 21


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window: 2025-03-15 to 2026-03-15. 21 customers with non-cancelled orders."
}
```

Answer: 21


```json
{
  "answer": 115288,
  "definition_id": "net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "13 invoices in period, freight excluded (pre-May 2026), 1 return subtracted."
}
```

Answer: 115288


```json
{
  "answer": 5,
  "definition_id": "on_time_performance",
  "definition_version": 1,
  "unanswerable": false,
  "note": "5 of 11 C-118 HAL shipments delivered by 2026-06-30 were on-time"
}
```

Answer: 5


```json
{
  "answer": 10,
  "definition_id": "on-time-delivery-meridian",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Applied 1 Jan–31 Jan 2026 rule: delivered if confirmed ≤ date; on time if confirmed ≤ promised date."
}
```

Answer: 10


```json
{
  "answer": 15,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "15 customers with non-cancelled orders in (2025-01-31, 2026-01-31]"
}
```

Answer: 15


```json
{
  "answer": 37,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted shipments with customer_confirm_date present and on/before 2026-05-31"
}
```

Answer: 37


```json
{
  "answer": 50,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date on/before 2026-08-31"
}
```

Answer: 50


```json
{
  "answer": 21,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Using revised_promised_date when present, else promised_date."
}
```

Answer: 21


```json
{
  "answer": 10,
  "definition_id": "business_day_standard",
  "definition_version": 1,
  "unanswerable": false,
  "note": "2025-12-30 order date to 2026-01-14 scan date; 10 business days excluding weekends and 2026-01-01 holiday"
}
```

Answer: 10


```json
{
  "answer": 7,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Weekdays 2025-12-29 through 2026-01-06, excluding weekends only"
}
```

Answer: 7


```json
{
  "answer": 21,
  "definition_id": "Active customers",
  "definition_version": null,
  "unanswerable": false,
  "note": "365-day window: 2025-02-28 to 2026-02-28, non-cancelled orders"
}
```

Answer: 21


```json
{
  "answer": 115288,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "13 invoices in period; 1 return on 2025-11-03"
}
```

Answer: 115288


```json
{
  "answer": 10,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 orders with HAL supplier having confirmed delivery by 2026-07-31"
}
```

Answer: 10


```json
{"answer": 29065, "definition_id": "halden.def.order_value", "definition_version": 1, "unanswerable": false, "note": "Four non-cancelled C-118 orders: O009 (4490) + O045 (2940) + O065 (13885) + O072 (7750)."}
```

Answer: 29065


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "21 customers with non-cancelled orders in (2025-03-15, 2026-03-15]."
}
```

Answer: 21


```json
{
  "answer": 15,
  "definition_id": "delivered_shipments_halden",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Halden rule: carrier scan date present and ≤ 2026-08-31"
}
```

Answer: 15


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day lookback from 2026-08-31: orders 2026-03-05 to 2026-08-31, non-cancelled"
}
```

Answer: 18


```json
{
  "answer": 57500,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "ZEN supplier, non-cancelled orders, 2026-06-01 to 2026-08-31, gross amounts"
}
```

Answer: 57500


```json
{
  "answer": 22,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "22 delivered shipments were on-time by 2026-07-31"
}
```

Answer: 22


```json
{"answer": 42, "definition_id": "Delivered shipments", "definition_version": 1, "unanswerable": false, "note": "Meridian: customer confirmation date present and on/before 2026-06-30"}
```

Answer: 42


```json
{
  "answer": 18,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "All 18 C-118 shipments have carrier_scan_date ≤ 2026-08-31."
}
```

Answer: 18


```json
{"answer": 50, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Delivered = customer_confirm_date populated and ≤ 2026-08-31"}
```

Answer: 50


Looking at this question, I need to apply the "Active customers" definition from the context.

As of 2026-05-15, I must determine which rule applies:
- From 1 April 2026 onwards, the window is 180 days
- The date 2026-05-15 falls after 1 April 2026, so I use the 180-day window

**Calculating the window:**
180 days before 2026-05-15:
- Back through May (15 days), April (30), March (31), February (28), January (31), December (31) = 166 days
- Need 14 more days into November: 2025-11-17

Window: 2025-11-17 through 2026-05-15 (inclusive)

**Finding active customers:**
A customer is active if they

Answer: 16


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 HAL shipments scanned on/before promised date."
}
```

Answer: 9


```json
{
  "answer": 12,
  "definition_id": "delivery_definition",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted C-118 shipments with customer_confirm_date populated and on or before 2026-08-31"
}
```

Answer: 12


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with contract_status='open' and signup_date ≤ 2026-08-31"
}
```

Answer: 20


```json
{
  "answer": 12,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied v2 effective 2026-02-01; used revised_promised_date when present."
}
```

Answer: 12


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Gross margin undefined; cost of goods sold data unavailable"
}
```


```json
{
  "answer": 19,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Version 1 effective until 2026-03-31; window 365 days; interval (2025-01-31, 2026-01-31]"
}
```

Answer: 19


```json
{
  "answer": 5,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "9 delivered shipments; 5 on time per revised/promised dates"
}
```

Answer: 5


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = contract_status 'open' with signup before 2026-02-28"
}
```

Answer: 20


```json
{
  "answer": 22,
  "definition_id": "customers_ordered_past_year",
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders between 2025-06-01 and 2026-06-01"
}
```

Answer: 22


```json
{
  "answer": 6,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Churn inferred as inactive transition"
}
```

Answer: 6


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Customer business day calendar not defined in catalogue"
}
```


```json
{
  "answer": 108915,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoices issued 2026-05-01 to 2026-06-30 minus returns on those orders."
}
```

Answer: 108915


```json
{
  "answer": 109343,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Sum (gross - discount) of invoices minus returns for Q1 2026"
}
```

Answer: 109343


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Version 2 active (180-day window). Orders in (2026-01-16, 2026-07-15]."
}
```

Answer: 17


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "15 HAL-supplied C-118 shipments with carrier_scan_date on/before 2026-07-31"
}
```

Answer: 15


```json
{
  "answer": 10,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 delivered on-time shipments as of 2026-01-31"
}
```

Answer: 10


```json
{
  "answer": 50,
  "definition_id": null,
  "definition_version": null,
  "unaswerable": false,
  "note": "Shipments with non-null customer_confirm_date on/before 2026-08-31"
}
```

Answer: 50


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date ≤ 2025-12-31; on-time = delivered date ≤ promised or revised date."
}
```

Answer: 9


```json
{
  "answer": 20,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window 365 days: 2025-02-15 to 2026-02-15, non-cancelled orders"
}
```

Answer: 20


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = open contract_status. Snapshot-based count."
}
```

Answer: 20


```json
{
  "answer": 43,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date on/before 2026-06-30"
}
```

Answer: 43


```json
{
  "answer": 9,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Order O006 dated 2025-12-30, shipment S005 scanned 2026-01-14. Nine business days between (weekdays excluding 2026-01-01 and 2026-01-06 Halden holidays)."
}
```

Answer: 9


```json
{
  "answer": 90239,
  "definition_id": "meridian_net_revenue_order_period",
  "definition_version": 1,
  "unanswerable": false,
  "note": "9 invoiced orders placed 2026-05-01 to 2026-06-30; zero returns in period"
}
```

Answer: 90239


```json
{
  "answer": 5,
  "definition_id": "Business days",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden calendar: 2025-12-29,30,31; 2026-01-02,05 are business days; 01-01,06 are holidays"
}
```

Answer: 5


```json
{"answer": 43, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "Shipments with customer_confirm_date on or before 2026-06-30"}
```

Answer: 43


```json
{"answer": 51, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "Shipments with customer_confirm_date present and on/before 2026-08-31"}
```

Answer: 51


```json
{
  "answer": 10,
  "definition_id": "delivery_definition",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date populated and <= 2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 7,
  "definition_id": "on-time-delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "7 delivered shipments with customer confirmation on/before 2025-12-31 met promised dates"
}
```

Answer: 7


```json
{
  "answer": 34406,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoice amounts for HAL C-118 orders 2026-05-01 to 2026-07-31"
}
```

**Calculation details:**
Filtered orders meeting criteria (C-118, HAL supplier, placed 2026-05-01 to 2026-07-31 inclusive, non-cancelled):
- O009 (2026-07-14): Invoice I007 = 5,276
- O045 (2026-05-10): Invoice I035 = 3,470
- O065 (2026-07-21): Invoice I051 = 16,485
- O072 (2026-05-18): Invoice I057 = 9,175

**Total: 34,406**

Answer: 34406


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "Gross margin not defined; COGS data unavailable."}
```


```json
{
  "answer": 11,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Used halden.def.delivered; carrier_scan_date as delivery date."
}
```

Answer: 11


```json
{
  "answer": 58155,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "7 non-cancelled ZEN orders placed 2026-06-01 to 2026-08-31"
}
```

Answer: 58155


```json
{
  "answer": 20,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Version 1 applies: interval (2025-02-15, 2026-02-15], window_days=365"
}
```

Answer: 20


```json
{
  "answer": 21315,
  "definition_id": "halden.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-118 orders 2026-05-01 to 2026-07-31, non-cancelled, using Halden formula."
}
```

Answer: 21315


```json
{"answer": 18220, "definition_id": "halden.def.order_value", "definition_version": 1, "unanswerable": false, "note": "O004 (7275) and O024 (10945) within date range, non-cancelled"}
```

Answer: 18220


```json
{
  "answer": 141511,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoiced amount (13 invoices) minus returns for Q4 2025"
}
```

Answer: 141511


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Question asks future forecast beyond available data cutoff"
}
```

The question requests a forecast as of 2027-01-01, which is future-dated beyond the available data (orders through ~2026-08-29). To answer "how many active customers" would exist by then using the stated definition of "customers who ordered in the past year," I would need data through 2027-01-01. The available orders table does not contain that information, making prediction impossible.


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damage indicator field in shipments or returns data."
}
```


```json
{
  "answer": 9,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 HAL orders: 18 with shipments. 15 delivered by 2026-07-31. 9 on-time."
}
```

Answer: 9


```json
{
  "answer": 14,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 HAL shipments with customer_confirm_date ≤ 2026-08-31"
}
```

Answer: 14


```json
{
  "answer": 19,
  "definition_id": "meridian-on-time-delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Applied Meridian delivered shipments and on-time rules."
}
```

Answer: 19


```json
{
  "answer": null,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": true,
  "note": "Question asks about future date; data current through 2026-09-06"
}
```


```json
{"answer": 12, "definition_id": "customer_confirm_date", "definition_version": 1, "unanswerable": false, "note": "Halden C-118 orders with confirmed delivery by 2026-07-31"}
```

Answer: 12


```json
{"answer": 29065, "definition_id": "halden.def.order_value", "definition_version": 1, "unanswerable": false, "note": "Four qualifying orders: O009, O045, O065, O072"}
```

Answer: 29065


```json
{
  "answer": 21,
  "definition_id": "past_year_orders",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with orders placed 2025-05-15 through 2026-05-15."
}
```

Answer: 21


```json
{
  "answer": 50,
  "definition_id": "delivered-shipments-meridian",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date present and on/before 2026-08-31"
}
```

Answer: 50


```json
{
  "answer": 20,
  "definition_id": "customers_ordered_past_year",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with orders 2025-02-15 to 2026-02-15"
}
```

Answer: 20


```json
{
  "answer": 14,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Interval (2025-02-15, 2026-02-15], 365-day window, non-cancelled orders"
}
```

Answer: 14


```json
{
  "answer": 9,
  "definition_id": "Business days",
  "definition_version": null,
  "unanswerable": false,
  "note": "Halden's 2026 holidays applied; weekdays excluded 2026-01-01, 2026-01-06"
}
```

Calculation: Order O006 dated 2025-12-30, shipment S005 carrier scan 2026-01-14. Business days from 2025-12-31 to 2026-01-14 inclusive, using Halden's calendar (holidays: 1 Jan, 6 Jan): Dec 31, Jan 2, 5, 7, 8, 9, 12, 13, 14 = 9 weekdays excluding Halden holidays and weekends.

Answer: 9


```json
{"answer": 16, "definition_id": "halden.def.delivered", "definition_version": 2, "unanswerable": false, "note": "16 C-118 HAL shipments have carrier_scan_date ≤ 2026-08-31"}
```

Answer: 16


```json
{
  "answer": 29065,
  "definition_id": "Order value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden calculation: gross minus discount plus freight."
}
```

Answer: 29065


```json
{
  "answer": 21,
  "definition_id": "active_customers_past_year",
  "definition_version": null,
  "unanswerable": false,
  "note": "21 customers ordered in 12 months before 2026-07-15"
}
```

Answer: 21


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "Shipments table has no damage or defect tracking field."}
```


```json
{"answer": 16, "definition_id": "halden.def.delivered", "definition_version": 2, "unanswerable": false, "note": "C-118 shipments with carrier_scan_date on or before 2026-07-31"}
```

Answer: 16


```json
{"answer": 21, "definition_id": "on-time-delivery", "definition_version": 2, "unanswerable": false, "note": "Meridian rule from 1 Feb 2026: revised promised date when populated, else promised date"}
```

Answer: 21


```json
{"answer": 23, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "Applied v2 of on_time (effective 2026-02-01) using revised_promised_date when present"}
```

Answer: 23


```json
{
  "answer": 13,
  "definition_id": "Delivered shipments - Halden Logistics",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden rule since 2026-01-01: carrier scan date present and on/before cutoff date."
}
```

Answer: 13


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Order O066: 2025-12-28 to scan 2026-01-06. Business days: 12/29, 12/30, 12/31, 01/02, 01/05."
}
```

Answer: 5


```json
{
  "answer": 21,
  "definition_id": "active_base_past_year",
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders placed 2025-04-01 to 2026-04-01"
}
```

Answer: 21


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders in past 12 months (2025-02-28 to 2026-02-28)"
}
```

Answer: 21


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 shipments with carrier_scan_date on/before 2026-06-30"
}
```

Answer: 15


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Customer-specific calendars not provided; incomplete holiday data"
}
```

**Reasoning:** The question asks for lateness measured "under the customer's own working calendar," but:

1. **Missing customer calendar data**: Each customer (C001–C024) would have their own working calendar, which is not provided in the data.

2. **Incomplete holiday information**: The available definitions specify Meridian and Halden holidays only for 2026. Many orders span 2024–2025, for which holiday


```json
{
  "answer": 37,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date ≤ 2026-05-31"
}
```

Answer: 37


```json
{"answer": 139070, "definition_id": "meridian.def.order_value", "definition_version": 1, "unanswerable": false, "note": "Sum of gross_amount minus discount_amount for non-cancelled orders placed 2026-05-01 to 2026-07-31."}
```

Answer: 139070


```json
{
  "answer": 23,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Delivered shipments (customer_confirm_date present and ≤2026-08-31) assessed against revised_promised_date when present, else promised_date."
}
```

Answer: 23


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer satisfaction score data available in tables."
}
```


```json
{"answer": 37, "definition_id": "Delivered shipments", "definition_version": 1, "unanswerable": false, "note": "Counted shipments with customer_confirm_date on/before 2026-05-31"}
```

Answer: 37


```json
{
  "answer": 10,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Business days from 2025-12-31 to 2026-01-14, excluding weekends and New Year's Day."
}
```

Answer: 10


```json
{
  "answer": 15,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Customers with non-cancelled orders in (2025-10-02, 2026-04-01]"
}
```

Answer: 15


```json
{
  "answer": 14,
  "definition_id": "Delivered shipments - Halden Logistics rule",
  "definition_version": 1,
  "unanswerable": false,
  "note": "All C-118 orders are HAL supplier. Counted 14 shipments with carrier_scan_date on/before 2026-06-30."
}
```

Answer: 14


```json
{
  "answer": 12,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "12 delivered shipments were on time as of 2026-02-01"
}
```

Answer: 12


```json
{"answer": 50, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "Shipments with customer_confirm_date on or before 2026-08-31"}
```

Answer: 50


```json
{
  "answer": 18,
  "definition_id": "Active customers",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window from 2026-03-04 to 2026-08-31; excluded cancelled orders"
}
```

Answer: 18


```json
{
  "answer": 7,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Halden delivered (carrier scan ≤ 2026-07-31); on-time v2"
}
```

**Methodology**: Identified 15 C-118 orders with HAL supplier. Of these, 13 had shipments with carrier_scan_date ≤ 2026-07-31 (Halden's delivery rule since 1 Jan 2026). Applied on-time rule effective from 1 Feb 2026: shipments are on-time if carrier_scan_date ≤ revised_promised_date (when present) or ≤ promised_date. Result: 7 shipments met both criteria (O004, O007, O013, O021, O024, O045, O066).

Answer: 7


```json
{
  "answer": 20,
  "definition_id": "quarterly_past_year",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with orders between 2025-02-15 and 2026-02-15."
}
```

Answer: 20


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered (customer_confirm_date ≤ 2026-08-31) and met promised/revised delivery date."
}
```

Answer: 20


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "7 of 13 C-118 HAL shipments delivered by 2026-07-31 were on time"
}
```

Answer: 7


Answer: 34406

Sum of invoice amounts for HAL C-118 orders May-July 2026.


```json
{
  "answer": 8,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Counted HAL-supplied C-118 orders with carrier_scan_date ≤ 2026-06-30 where carrier_scan_date ≤ promised_date (or revised_promised_date if present). 13 delivered; 8 on-time."
}
```

Answer: 8


```json
{
  "answer": 115288,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Invoices dated 2025-10-01 to 2025-12-31, less returns in same period."
}
```

Answer: 115288


```json
{
  "answer": 17,
  "definition_id": "active_customers_meridian",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window rule in force June 1, 2026; window: Dec 4, 2025–Jun 1, 2026"
}
```

Answer: 17


```json
{"answer": 18220, "definition_id": "order_value", "definition_version": null, "unanswerable": false, "note": "Halden formula: gross minus discount plus freight."}
```

Qualifying orders (HAL supplier, C-118 contract, date 2026-01-01 to 2026-03-31, non-cancelled):
- O004 (2026-01-23, invoiced): 7500 - 375 + 150 = 7,275
- O024 (2026-02-26, invoiced): 12700 - 1905 + 150 = 10,945

Total: 18,220

(Note: O051 dated 2026-03-19 is excluded as cancelled. Per Order value definition, Halden applies: gross amount − discount amount + freight, with tax excluded.)

Answer: 18220


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders 2025-07-15 to 2026-07-15"
}
```

Answer: 21


```json
{
  "answer": 10,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Used carrier_scan_date for delivery; revised_promised_date when available."
}
```

Answer: 10


```json
{
  "answer": 169538,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Order value = gross - discount + freight + tax for non-cancelled orders only."
}
```

Answer: 169538


```json
{
  "answer": 38,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customer confirm date present and ≤ 2026-05-31"
}
```

Answer: 38


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered by customer_confirm_date ≤ 2026-01-31; on-time vs. revised_promised_date if renegotiated, else promised_date."
}
```

Answer: 12


```json
{
  "answer": 5,
  "definition_id": "business_days",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden calendar: Jan 1, 6 are holidays; Dec 29-31, Jan 2, 5 are business days"
}
```

Answer: 5


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Customer working calendar data not available in dataset"
}
```

**Explanation**: The question requires calculating delivery delays in business days under each customer's specific working calendar. However, the provided dataset contains no information about:
- Individual customer locations or regions
- Each customer's working calendar or business day schedule
- The applicable public holiday calendars

While the data includes promised dates and customer confirmation dates for s


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer working calendar data provided; cannot compute business days per customer."
}
```


```json
{
  "answer": 43,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customer_confirm_date present and on/before 2026-06-30"
}
```

Answer: 43


```json
{
  "answer": 133443,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Q1 2026 invoices (137,020) minus Q1 returns (3,577)"
}
```

Answer: 133443


```json
{
  "answer": 38,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date present and on/before 2026-05-31"
}
```

Answer: 38


Looking at the data provided:

**Order O006 details:**
- Order date: 2025-12-30
- Supplier: HAL (Halden Logistics)
- Contract: C-118

**Shipment S005 (for O006):**
- Carrier scan date: 2026-01-14

**Calculating business days from 2025-12-30 to 2026-01-14:**

First, I'll determine the day of the week:
- 2025-01-01 = Wednesday (baseline)
- 2025 has 365 days (52 weeks + 1 day), so 2025-12-31 = Wednesday
- 2025-12-30 = Tuesday
- 2026-01-14 = Wednesday

Counting weekdays (Monday-Friday) *after* 2025-12-30 through 2026-01-14:
1. 2025-12-31 (Wed)
2. 2026-01-02 (Fri) — *excluding 2026-01-01 (Thu, New

Answer: 10


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with contract_status=open by 2026-03-15"
}
```

Answer: 20


```json
{
  "answer": 139070,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "15 orders (May–July 2026), non-cancelled, value = gross - discount"
}
```

Answer: 139070


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window 180 days: (2026-03-05, 2026-08-31]. 18 unique customers with non-cancelled orders."
}
```

Answer: 18


```json
{
  "answer": 24,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Internal Meridian reporting; v2 effective 2026-02-01 applies as of question date."
}
```

Answer: 24


```json
{
  "answer": 15,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window: 2025-10-02 to 2026-04-01; 15 customers with non-cancelled orders"
}
```

Answer: 15


```json
{"answer": 23, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "23 of 50 delivered shipments met on-time criteria."}
```

Answer: 23


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Business day calculation requires day-of-week data not provided in dataset"
}
```

**Explanation**: The question requires calculating delivery delays in business days (excluding weekends and holidays). While I can identify 30+ orders with customer confirmations and determine calendar day delays, accurately converting calendar days to business days requires knowing:

1. Which dates fall on weekends for each date between 2025-2026
2. Which dates are public holidays (not provided)


```json
{
  "answer": 21624,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoice amounts for HAL C-118 orders placed 2026-01-01 to 2026-03-31, non-cancelled"
}
```

Answer: 21624


```json
{"answer": 153700, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Sum of gross_amount for non-cancelled orders placed 2026-05-01 to 2026-07-31"}
```

Answer: 153700


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "17 customers with non-cancelled orders in (2025-12-03, 2026-06-01]"
}
```

Answer: 17


```json
{
  "answer": 10,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-301 orders with customer_confirm_date present and ≤2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 10,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 delivered shipments were on-time as of 2026-01-31"
}
```

Answer: 10


```json
{
  "answer": 58155,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "ZEN orders O016, O019, O020, O025, O026, O036, O069; gross minus discount."
}
```

Answer: 58155


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window 365 days: (2025-03-15, 2026-03-15], non-cancelled orders only"
}
```

Answer: 21


```json
{
  "answer": 62903,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Period invoices sum 63690, returns 787, net 62903"
}
```

Answer: 62903


```json
{"answer": 9, "definition_id": "Business days", "definition_version": 1, "unanswerable": false, "note": "9 business days from 2025-12-30 to 2026-01-14 using Halden 2026 calendar"}
```

Answer: 9


```json
{
  "answer": 115288,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "13 invoices dated in period; 1 return; v1 applies through 2026-04-30"
}
```

Answer: 115288


```json
{
  "answer": 9,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "9 weekdays excluding Halden holidays 2026-01-01 and 2026-01-06"
}
```

Answer: 9


```json
{
  "answer": 37,
  "definition_id": "Delivered shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Meridian: customer_confirm_date present and ≤ 2026-05-31"
}
```

Answer: 37


```json
{
  "answer": 19,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "19 of 21 C-118 orders have shipments with carrier_scan_date ≤ 2026-08-31"
}
```

Answer: 19


```json
{
  "answer": 9,
  "definition_id": "on-time-delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden logistics carrier scan date rule applied."
}
```

Answer: 9


```json
{
  "answer": 22,
  "definition_id": "customers_with_orders_past_12_months",
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders placed between 2025-06-01 and 2026-06-01 inclusive."
}
```

Answer: 22


```json
{
  "answer": 62903,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Invoices 2026-07-01 to 2026-08-31: 7 invoices, revenue 63690, returns 787"
}
```

Answer: 62903


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Shipments table lacks damage status field."
}
```


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Active customers = signed up by date with open contract_status"}
```

Answer: 20


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered by customer_confirm_date ≤ 2026-01-31; on-time = customer_confirm_date ≤ agreed_promised_date"
}
```

Answer: 12


```json
{
  "answer": 23,
  "definition_id": "meridian_on_time_performance",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Used revised_promised_date when available; compared customer_confirm_date to commitment."
}
```

Answer: 23


```json
{
  "answer": 141511,
  "definition_id": "revenue_invoiced_minus_returns",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Invoiced Q4 2025 amount minus returns in period."
}
```

Answer: 141511


```json
{"answer": 29065, "definition_id": "Order value", "definition_version": 1, "unanswerable": false, "note": "Halden formula: gross - discount + freight."}
```

Answer: 29065


```json
{
  "answer": 139070,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "15 non-cancelled orders 2026-05-01 to 2026-07-31; gross minus discount"
}
```

Answer: 139070


```json
{
  "answer": 17,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "180-day window [2026-01-17, 2026-07-15]; non-cancelled orders only."
}
```

Answer: 17


```json
{
  "answer": 37,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date present and on/before 2026-05-31"
}
```

Answer: 37


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date ≤ promised_date (or revised_promised_date if present)"
}
```

Answer: 21


```json
{"answer": 51, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "Count of shipments with customer_confirm_date on/before 2026-08-31"}
```

Answer: 51


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window 365 days: (2025-02-28, 2026-02-28]. Non-cancelled orders."
}
```

Answer: 21


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Halden delivery rule (carrier scan date) + on-time rule from 1 Feb 2026"
}
```

Answer: 9


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Active = contract_status open; all customers signed up by cutoff"}
```

Answer: 20


```json
{"answer": 11, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "11 C-301 shipments have customer_confirm_date on/before 2026-08-31"}
```

Answer: 11


```json
{
  "answer": 62700,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of gross_amount for non-cancelled ZEN orders placed 2026-06-01 to 2026-08-31."
}
```

Answer: 62700


```json
{
  "answer": 37,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "37 shipments with customer_confirm_date on/before 2026-05-31"
}
```

Answer: 37


Looking at this question, I need to determine how many active customers existed as of 2026-01-31 using the definition provided.

**Understanding the Definition:**
- A customer is active if they have at least one order with status ≠ "cancelled" and order_date within the active window
- For dates between 1 January 2025 and 31 March 2026, the window is 365 days
- Since 2026-01-31 falls within this period, I use a 365-day window
- The window ending on 2026-01-31: since 2025 has exactly 365 days, 365 days before 2026-01-31 is 2025-01-31
- Therefore the window is [2025-01-31, 2026-01-31] inclusive

Answer: 16

365-day window (1 Jan 2025 - 31 Mar 2026 period)


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window active orders: 2025-02-01 through 2026-01-31"
}
```

Answer: 21


```json
{
  "answer": 15,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Active customers with non-cancelled orders in 180 days prior to 2026-04-01."
}
```

Answer: 15


```json
{
  "answer": 18,
  "definition_id": "meridian.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "18 delivered orders exceeded 2-business-day lateness using Meridian calendar."
}
```

Answer: 18


```json
{
  "answer": 2,
  "definition_id": "order_based_churn",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Q1→Q2 active base decline. Customers C001, C007 ordered in Q1 but not Q2."
}
```

Answer: 2


```json
{
  "answer": 55463,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Invoices dated 2026-07-01 to 2026-08-31: I026, I029, I048, I051, I054. Calculated (gross - discount + freight) for each. Subtracted return R004 (2026-07-11)."
}
```

Answer: 55463


```json
{
  "answer": 11,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-301 HAL orders with customer_confirm_date on/before 2026-08-31"
}
```

Answer: 11


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "18 customers with non-cancelled orders in 180-day window"
}
```

Answer: 18


```json
{"answer": 15, "definition_id": "halden.def.delivered", "definition_version": 2, "unanswerable": false, "note": "Fed.C-118.delivered applies; halden def requires carrier_scan_date present and on/before as-of date"}
```

Answer: 15


```json
{
  "answer": 11,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window 365 days: (2025-01-31, 2026-01-31]. Qualifying customers: C001, C003, C005, C008, C011, C013, C017, C021, C022, C023, C024"
}
```

Answer: 11


```json
{"answer": 43, "definition_id": "Delivered shipments", "definition_version": 1, "unanswerable": false, "note": "Customer confirmation date present and ≤ 2026-06-30"}
```

Answer: 43


```json
{
  "answer": 5,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "5 customers have non-cancelled orders in window (2026-07-05, 2026-09-06]"
}
```

Answer: 5


```json
{
  "answer": 21,
  "definition_id": "quarterly_active_base",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with orders May 2025-May 2026"
}
```

Answer: 21


```json
{
  "answer": 10,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 C-301 HAL shipments delivered as of 2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered on/before 2026-01-31 with confirmed date ≤ promised/revised promised date"
}
```

Answer: 12


```json
{
  "answer": 58155,
  "definition_id": "Order value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "7 non-cancelled ZEN orders 2026-06-01 to 2026-08-31. Gross minus discount."
}
```

Answer: 58155


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Version 1 active (365-day window), period: 2025-03-01 to 2026-02-28"
}
```

Answer: 21


```json
{
  "answer": 58155,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Non-cancelled ZEN orders 2026-06-01 to 2026-08-31"
}
```

Answer: 58155


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date ≤ date. On-time = met promised or revised promised date."
}
```

Answer: 9


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Customer satisfaction score not present in data tables"
}
```


```json
{"answer": 109343, "definition_id": "meridian.def.net_revenue", "definition_version": 1, "unanswerable": false, "note": "Invoices dated Q1 2026 minus Q1 returns"}
```

Answer: 109343


```json
{"answer": 74641, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Invoiced revenue (75428) minus returns (787) recognized in period."}
```

Answer: 74641


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window: 2026-03-05 to 2026-08-31. 18 of 24 customers had non-cancelled orders."
}
```

Answer: 18


```json
{
  "answer": 21624,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoice amounts for HAL C-118 orders placed 2026-01-01 to 2026-03-31."
}
```

Answer: 21624


```json
{"answer": 7, "definition_id": "meridian.def.on_time", "definition_version": 1, "unanswerable": false, "note": "Delivered shipments where customer_confirm_date ≤ promised_date as of 2025-12-31."}
```

Answer: 7


```json
{
  "answer": 9,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted weekdays excluding Halden holidays 2026-01-01, 2026-01-06 from 2025-12-31 through 2026-01-14."
}
```

Answer: 9


```json
{
  "answer": 21,
  "definition_id": "on-time_delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "21 delivered shipments on-time per revised rule from 1 Feb 2026"
}
```

Answer: 21


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damage tracking field in shipments or returns data."
}
```


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window from 2025-11-16. Customers with non-cancelled orders in period."
}
```

Answer: 16


```json
{
  "answer": 19,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window 2025-02-01 to 2026-01-31, status not cancelled"
}
```

Answer: 19


```json
{
  "answer": 10,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 delivered shipments were on time as of 2026-01-31"
}
```

Answer: 10


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied halden.delivered v2 and meridian.on_time v2"
}
```

Answer: 7


```json
{
  "answer": 18,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "All C-118 HAL shipments have carrier_scan_date ≤ 2026-08-31"
}
```

Answer: 18


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active customers = contract_status='open'; 4 months ahead extrapolation assumes no status changes."
}
```

Answer: 20


```json
{
  "answer": 37,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Counted shipments with non-null customer_confirm_date ≤ 2026-05-31"
}
```

Answer: 37


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "No data field indicates shipment damage status."}
```


```json
{"answer": 50, "definition_id": "meridian.def.delivered", "definition_version": 1, "unanswerable": false, "note": "Shipments with customer_confirm_date present and on/before 2026-08-31"}
```

Answer: 50


```json
{
  "answer": 17,
  "definition_id": "active_customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "180-day window from 2026-01-17 to 2026-07-15; excluded cancelled orders"
}
```

Answer: 17


```json
{
  "answer": 21,
  "definition_id": "Meridian On-Time Delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied new rule (Feb 2026+) and old rule (<Feb 2026) for deliveries as of 2026-08-31"
}
```

Answer: 21


```json
{
  "answer": 21,
  "definition_id": "active_past_year_orders",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with orders placed 2025-04-01 to 2026-04-01 inclusive"
}
```

Answer: 21


```json
{"answer": 10, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "Applied Halden delivery definition; carrier_scan date"}
```

Answer: 10


```json
{
  "answer": 11,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Delivered shipments with customer_confirm_date ≤ 2026-01-31 and delivery date ≤ promised_date."
}
```

Answer: 11


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Gross margin requires Cost of Goods Sold; only revenue-side data available."
}
```


```json
{
  "answer": 10,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 shipments delivered by 2026-01-31 met on-time criteria"
}
```

Answer: 10


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No cost of goods sold data provided; gross margin undefined in handbook."
}
```


```json
{"answer": 104670, "definition_id": "net_revenue_meridian", "definition_version": 2, "unanswerable": false, "note": "Invoices dated 2026-05-01 to 2026-06-30 inclusive, freight included from 1 May 2026, minus returns in period."}
```

Answer: 104670


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Interval: 2025-11-15 to 2026-05-15, window_days=180"
}
```

Answer: 16


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Delivered shipments with customer_confirm_date <= promised_date"
}
```

Answer: 7


```json
{"answer": 74641, "definition_id": "revenue-period-invoiced-minus-returns-period", "definition_version": 1, "unanswerable": false, "note": "Invoices issued 2026-07-01 to 2026-08-31 minus returns recorded in period."}
```

Answer: 74641


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Cannot calculate business days without calendar day-of-week functions"
}
```


```json
{
  "answer": 97,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Gross margin: (net revenue - freight) / net revenue × 100. July 2026 orders: O009, O031, O036, O065."
}
```

Answer: 97


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 HAL shipments with carrier_scan_date ≤ 2026-06-30"
}
```

Answer: 15


```json
{"answer": 11, "definition_id": "delivery_customer_confirm", "definition_version": 1, "unanswerable": false, "note": "C-301 HAL shipments with customer_confirm_date on/before 2026-08-31"}
```

Answer: 11


```json
{
  "answer": 18220,
  "definition_id": "halden.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-118 orders 2026-01-01 to 2026-03-31, non-cancelled: O004 + O024"
}
```

Answer: 18220


```json
{
  "answer": 18,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "18 C-118 HAL shipments have carrier_scan_date ≤ 2026-08-31"
}
```

Answer: 18


```json
{
  "answer": 21,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window applies on 2026-02-28; 21 customers had non-cancelled orders placed from 2025-02-28 through 2026-02-28"
}
```

Answer: 21


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Counted C-118 HAL shipments with confirmed customer delivery by 2026-06-30"
}
```

Answer: 12


```json
{
  "answer": 169538,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Order value = gross_amount - discount_amount + freight_amount + tax_amount. 15 non-cancelled orders in date range."
}
```

Answer: 169538


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damage tracking field exists in shipments data"
}
```


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window: (2025-02-28, 2026-02-28]; non-cancelled orders"
}
```

Answer: 21


```json
{"answer": 6, "definition_id": "business_days_standard", "definition_version": 1, "unanswerable": false, "note": "Excludes weekends and 2026-01-01 (New Year's Day)"}
```

**Calculation:**
- Order date: 2025-12-28 (Sunday)
- Carrier scan date: 2026-01-06 (Tuesday)
- Business days after order date through scan date:
  1. 2025-12-29 (Monday)
  2. 2025-12-30 (Tuesday)
  3. 2025-12-31 (Wednesday)
  4. 2026-01-02 (Friday) — skips 2026-01-01 (public holiday)
  5. 2026-01-05 (Monday)
  6. 2026-01-06 (Tuesday) — included

Answer: 6


```json
{
  "answer": 34406,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoiced amount for 4 non-cancelled HAL C-118 orders placed 2026-05-01 to 2026-07-31"
}
```

Answer: 34406


```json
{"answer": 15, "definition_id": "meridian.def.active_customer", "definition_version": 2, "unanswerable": false, "note": "180-day lookback window from 2026-04-01: (2025-10-03, 2026-04-01]"}
```

Answer: 15


```json
{
  "answer": 21,
  "definition_id": "past_year_orders",
  "definition_version": 1,
  "unanswerable": false,
  "note": "21 customers ordered in past year as of 2026-02-28"
}
```

Answer: 21


```json
{
  "answer": 13,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 shipments with carrier_scan_date on/before 2026-07-31"
}
```

Answer: 13


```json
{"answer": 19, "definition_id": "meridian.def.active_customer", "definition_version": 1, "unanswerable": false, "note": "Window: (2025-01-31, 2026-01-31], non-cancelled orders only."}
```

Answer: 19


```json
{
  "answer": 11,
  "definition_id": "On-time delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Halden delivery rule (carrier scan date). Feb 2026+ on-time definition applied."
}
```

Answer: 11


```json
{"answer": 11, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "C-118 HAL orders with delivered shipments: 18 total, 11 on time by revised date"}
```

Answer: 11


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "17 customers with non-cancelled orders in 180-day window"
}
```

Answer: 17


```json
{"answer": 17, "definition_id": "meridian.def.active_customer", "definition_version": 2, "unanswerable": false, "note": "Version 2 effective from 2026-04-01, 180-day window applied"}
```

Answer: 17


```json
{
  "answer": 62903,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Sum of (gross - discount + freight) for invoices dated 2026-07-01 to 2026-08-31, minus returns in period."
}
```

Answer: 62903


```json
{
  "answer": 17,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Orders late >2 business days using Meridian calendar"
}
```

Answer: 17


```json
{
  "answer": 37,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date on or before 2026-05-31."
}
```

Answer: 37


```json
{
  "answer": 19,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers with non-cancelled orders dated between 2025-01-31 and 2026-01-31."
}
```

Answer: 19


```json
{"answer": 10, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Counted C-301 HAL shipments with customer_confirm_date ≤ 2026-08-31"}
```

Answer: 10


```json
{"answer": 21, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "21 of 45 delivered shipments were on-time per v2"}
```

Answer: 21


```json
{
  "answer": 91190,
  "definition_id": "net_revenue_with_returns",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Invoice_date period. Net revenue = (gross - discount) + freight - returns."
}
```

Answer: 91190


```json
{
  "answer": 6,
  "definition_id": "context_on_time_delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-118 HAL shipments delivered and on-time by 2026-08-31"
}
```

**Calculation details:**

C-118 orders with HAL supplier that were delivered (customer_confirm_date set) by 2026-08-31:

**On-time (6 shipments):**
- O004: delivered 2026-02-06 vs revised promised 2026-02-08 ✓
- O013: delivered 2025-08-17 vs promised 2025-08-21 ✓
- O021: delivered 2025-08-28 vs promised 2025-08-30 ✓
- O024: delivered 2026-03-14 vs promised 2026-03-15 ✓
- O045: delivered 2026-05-20

Answer: 6


```json
{
  "answer": 12,
  "definition_id": "meridian_on_time_delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Delivered = confirmed by customer by 2026-02-01; on-time = confirmed ≤ revised_promised_date (or promised_date if not revised)"
}
```

Answer: 12


```json
{
  "answer": 104670,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Invoices dated 2026-05-01 to 2026-06-30; minus returns same period."
}
```

Answer: 104670


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with signup_date ≤ 2026-02-28 and contract_status=open"
}
```

Answer: 20


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active customers: contract_status='open' as of signup date ≤ 2026-04-01"
}
```

Answer: 20


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No gross margin definition in catalogue; COGS data unavailable"
}
```


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer business day definition available in catalogue"
}
```

**Rationale:** The question refers to "the customer's own working calendar," but the definition catalogue provides only two business day definitions:
- `meridian.def.business_day` (for Meridian)
- `halden.def.business_day` (for Halden Logistics)

Neither defines a customer-specific or customer-agnostic working calendar. Without a definition establishing which business days apply to individual customers, the late


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Period: 2025-03-16 to 2026-03-15, window_days=365"
}
```

Answer: 21


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied v2 (180-day window). Period: 2025-12-05 to 2026-06-01."
}
```

Answer: 17


```json
{
  "answer": 115288,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Sum of (gross - discount) for 13 invoices dated 2025-10-01 to 2025-12-31 minus one return (R003, 6697)."
}
```

Answer: 115288


```json
{"answer": 15, "definition_id": "Active customers", "definition_version": null, "unanswerable": false, "note": "180-day window from Oct 2025 to Apr 2026"}
```

Answer: 15


```json
{
  "answer": 115288,
  "definition_id": "Net revenue",
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoices dated 2025-10-01 to 2025-12-31, gross minus discount, less returns."
}
```

Answer: 115288


```json
{
  "answer": 9,
  "definition_id": "delivery_receipt",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-118 HAL shipments with customer confirmation by 2026-06-30"
}
```

Answer: 9


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "On-time = carrier_scan_date <= revised_promised_date (or promised_date if no revision)"
}
```

Answer: 9


```json
{
  "answer": 23,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered shipments (customer_confirm_date ≤ 2026-08-31) meeting promised date (revised if applicable)."
}
```

Answer: 23


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers who ordered in past 12 months from 2025-09-01."
}
```

Answer: 20


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Data snapshot is 2026-09-06; cannot predict future contract status changes"
}
```


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No contract closure timestamp available in data to determine churn timing"
}
```


```json
{
  "answer": 12,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "12 shipments delivered by 2026-02-01 met on-time criteria"
}
```

Answer: 12


```json
{
  "answer": 50,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date populated and ≤ 2026-08-31"
}
```

Answer: 50


```json
{"answer": 9, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "9 of 16 C-118 shipments delivered by 2026-07-31 were on time"}
```

Answer: 9


```json
{
  "answer": 133443,
  "definition_id": "meridian_net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Q1 invoiced revenue minus Q1 returns only."
}
```

Answer: 133443


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No data field tracks shipment damage in transit"
}
```


```json
{
  "answer": 10,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-301 HAL orders with customer_confirm_date ≤ 2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "16 customers with non-cancelled orders in (2025-11-17, 2026-05-15]"
}
```

Answer: 16


```json
{"answer": 17, "definition_id": "meridian.def.active_customer", "definition_version": 2, "unanswerable": false, "note": "Window 180 days back from 2026-06-01: 2025-12-05 to 2026-06-01"}
```

Answer: 17


```json
{
  "answer": 9,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Used halden.def.delivered v2 (carrier_scan_date) for delivery; meridian.def.on_time v2 for on-time"
}
```

Answer: 9


```json
{
  "answer": 21,
  "definition_id": "active-customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "365-day window ending 2026-03-15; status not cancelled"
}
```

Answer: 21


```json
{"answer": 9, "definition_id": "meridian.def.on_time", "definition_version": 1, "unanswerable": false, "note": "Version 1 applied (effective through 2026-01-31)"}
```

Answer: 9


```json
{
  "answer": 15,
  "definition_id": "delivered_customer_receipt",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted HAL shipments for C-118 orders with customer_confirm_date ≤ 2026-08-31"
}
```

Answer: 15


```json
{
  "answer": 20,
  "definition_id": "active_customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "20 active customers with non-cancelled orders in 365-day window ending 2026-02-15"
}
```

Answer: 20


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Churn is not defined in catalogue. Cannot determine."
}
```


```json
{"answer": 9, "definition_id": "meridian.def.on_time", "definition_version": 2, "unanswerable": false, "note": "13 delivered HAL C-118 shipments; 9 were on-time"}
```

Answer: 9


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer satisfaction score field in data"
}
```


```json
{
  "answer": 8,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 shipments scanned by 2026-06-30, on-time per revised/promised dates"
}
```

Answer: 8


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "5 weekdays excluding 2026-01-01 and 2026-01-06 holidays"
}
```

Answer: 5


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damaged-in-transit field in shipments table"
}
```


```json
{
  "answer": 141511,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum invoices (2025-10-01 to 2025-12-31) minus returns in period."
}
```

Answer: 141511


```json
{
  "answer": 9,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "9 Halden C-118 shipments delivered and on-time as of cutoff date."
}
```

Answer: 9


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "Cost of Goods Sold data required for gross margin calculation not provided"}
```


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = contract_status='open'. Static data may not reflect 2026-06-01 state."
}
```

Answer: 20


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer satisfaction score column in provided tables"
}
```


```json
{
  "answer": 18220,
  "definition_id": "halden.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Two C-118 orders placed Jan-Mar 2026: O004 (7275) + O024 (10945)"
}
```

Answer: 18220


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Gross margin requires COGS data not provided in tables."
}
```


```json
{
  "answer": 104670,
  "definition_id": "net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Invoices 2026-05-01 to 2026-06-30 (freight included from May 1 onwards, less returns)"
}
```

Answer: 104670


```json
{"answer": 58155, "definition_id": "meridian_order_value", "definition_version": 1, "unanswerable": false, "note": "ZEN orders, non-cancelled, 2026-06-01 to 2026-08-31"}
```

Answer: 58155


```json
{"answer": 5, "definition_id": "on_time_performance", "definition_version": 1, "unanswerable": false, "note": "C-118 HAL shipments delivered by 2026-07-31 vs revised promised dates"}
```

Answer: 5


```json
{
  "answer": 14,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Halden C-118 orders with carrier_scan_date on/before 2026-06-30"
}
```

Answer: 14


```json
{
  "answer": 19,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active definition: ordered in past 12 months ending 2026-01-31"
}
```

Answer: 19


```json
{
  "answer": 9,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Weekdays excluding Halden holidays 2026-01-01, 2026-01-06."
}
```

Answer: 9


```json
{
  "answer": 74641,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoiced revenue less returns for period 2026-07-01 to 2026-08-31."
}
```

Answer: 74641


```json
{
  "answer": 105440,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "12 invoiced orders, 1 return; sum=(G-D+F), 111990-6550=105440"
}
```

Answer: 105440


Answer: 29065

C-118 supplier HAL orders 2026-05-01 to 2026-07-31, non-cancelled


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted weekdays excluding Halden holidays between order date and scan date"
}
```

**Calculation:**
- Order O066 date: 2025-12-28 (Sunday)
- Shipment S061 carrier scan date: 2026-01-06 (Tuesday)
- Interval to count: (2025-12-28, 2026-01-06]

Business days (Halden definition: weekdays excluding Halden holidays [2026-01-01, 2026-01-06]):
1. 2025-12-29 (Monday) ✓
2. 2025-12-30 (Tuesday) ✓
3. 2025-12-31 (Wednesday) ✓
4. 2026-01-02 (Friday) ✓
5. 2026-01-05 (Monday)

Answer: 5


```json
{
  "answer": 11,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "11 of 19 C-118 shipments delivered by 2026-08-31 on time"
}
```

Answer: 11


```json
{
  "answer": 3,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Customers active Apr 1 but inactive Jun 30: C007, C013, C021"
}
```

Answer: 3


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No cost data available; gross margin requires COGS."
}
```


```json
{
  "answer": 8,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied halden.def.delivered (carrier_scan_date) for delivery status, meridian.def.on_time v2 for timeliness"
}
```

Answer: 8


```json
{
  "answer": 15,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "180-day window from 2025-10-04 through 2026-04-01; 15 unique customers with non-cancelled orders"
}
```

Answer: 15


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Customers with orders in past 12 months from reference date"
}
```

Answer: 21


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "C-118 shipments with carrier_scan_date ≤ 2026-07-31, per fed.C-118.delivered."
}
```

Answer: 15


```json
{
  "answer": 29065,
  "definition_id": "halden.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Four C-118 HAL orders 2026-05-01 to 2026-07-31: O009, O045, O065, O072"
}
```

Answer: 29065


```json
{
  "answer": 104670,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Sum of invoices (gross - discount + freight) minus returns, period 2026-05-01 to 2026-06-30."
}
```

Answer: 104670


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Order O066 dated 2025-12-28; shipment S061 scanned 2026-01-06. Business days (Mon-Fri, excluding Halden holidays): 2025-12-29, 2025-12-30, 2025-12-31, 2026-01-02, 2026-01-05."
}
```

Answer: 5


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "Gross margin not defined; no cost of goods sold data."
}
```


```json
{
  "answer": 62700,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of gross_amount for non-cancelled ZEN orders, 2026-06-01 to 2026-08-31"
}
```

Answer: 62700


```json
{
  "answer": 21624,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "HAL C-118 non-cancelled orders placed 2026-01-01 to 2026-03-31: O004 (8628) + O024 (12996)"
}
```

Answer: 21624


```json
{
  "answer": 109343,
  "definition_id": "net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "13 invoices (gross-discount) minus 1 return; freight excluded per v1."
}
```

Answer: 109343


```json
{
  "answer": 6,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Compared active customers on March 31 vs June 30, 2026 using versions 1 and 2."
}
```

Answer: 6


```json
{
  "answer": 8,
  "definition_id": "on_time_delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied Halden delivered rule (carrier_scan≤2026-06-30), Meridian on-time v2"
}
```

Answer: 8


```json
{"answer": 7, "definition_id": "meridian.def.on_time", "definition_version": 1, "unanswerable": false, "note": "19 shipments delivered by 2025-12-31; 7 met promised_date"}
```

Answer: 7


```json
{
  "answer": 6,
  "definition_id": "Active customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers active at Q1 end but inactive at Q2 end: C013, C016, C018, C019, C021, C022."
}
```

Answer: 6


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No customer satisfaction score data provided in tables"
}
```


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = customers with open contract_status as of 2026-06-01"
}
```

Answer: 20


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Active: non-cancelled orders within 365 days prior, 2025-03-16 to 2026-03-15"
}
```

Answer: 21


```json
{"answer": 37, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Delivered = customer_confirm_date populated and on/before 2026-05-31"}
```

Answer: 37


```json
{
  "answer": 109343,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Sum of (gross_amount - discount_amount) for 13 invoices dated 2026-01-01 to 2026-03-31, minus 1 return."
}
```

Answer: 109343


```json
{"answer": 104670, "definition_id": "meridian.def.net_revenue", "definition_version": 2, "unanswerable": false, "note": "Invoices 2026-05-01 to 2026-06-30: 111220; Returns: 6550"}
```

Answer: 104670


```json
{
  "answer": 12,
  "definition_id": "delivery_by_customer_confirmation",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Counted C-118 HAL shipments with customer_confirm_date ≤ 2026-06-30"
}
```

Answer: 12


```json
{
  "answer": 61003,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Gross sales minus discounts minus returns, excluding freight and tax pass-throughs."
}
```

Answer: 61003


```json
{
  "answer": 15,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Version 2 effective 2026-04-01: 180-day window from 2025-10-05."
}
```

Answer: 15


```json
{
  "answer": 10,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Business days (Mon–Fri excluding 2026-01-01 holiday) from 2025-12-31 to 2026-01-14"
}
```

Answer: 10


```json
{
  "answer": 13,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window 180 days back from 2026-04-01: (2025-10-04, 2026-04-01]"
}
```

Answer: 13


Looking at the data, I need to:
1. Identify all orders with contract_id = "C-118" and supplier_id = "HAL" (Halden Logistics)
2. Find their corresponding shipments with carrier_scan_dates (delivered)
3. Check if delivery was on or before the promised_date (or revised_promised_date if available)
4. Count those delivered as of 2026-08-31

**C-118 orders with HAL supplier:**
O004, O006, O007, O013, O017, O021, O024, O039, O045, O047, O048, O051 (cancelled), O052, O062, O065, O066, O072

**Shipment analysis (carrier_scan_date vs promised delivery date):**

| Order | Carrier Scan | Promised | Revise

Answer: 10

On-time = carrier_scan_date <= promised_date or revised_promised_date


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No churn date timestamp available; only current contract_status."
}
```


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Counted deliveries (customer_confirm_date present) late by >2 business days using meridian.def.business_day; excludes 2025 dates (holiday data unavailable)."
}
```

Answer: 7


```json
{
  "answer": 62903,
  "definition_id": "net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Freight included per v2 rules (from 1 May 2026). One return deducted."
}
```

Answer: 62903


```json
{
  "answer": 21624,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Sum of invoiced amounts for HAL-supplied C-118 orders placed Jan–Mar 2026."
}
```

Answer: 21624


```json
{
  "answer": null,
  "definition_id": "past_year",
  "definition_version": null,
  "unanswerable": true,
  "note": "Missing order data for Q4 2026; cannot count past-year active customers"
}
```


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "5 business days between 2025-12-28 and 2026-01-06"
}
```

**Calculation:**

Order O066: order_date = 2025-12-28, supplier = HAL, contract = C-118
Shipment S061: carrier_scan_date = 2026-01-06

Business days in the interval (2025-12-28, 2026-01-06] under halden.def.business_day v1:
- 2025-12-29 (Monday) ✓
- 2025-12-30 (Tuesday) ✓
- 2025-12-31 (Wednesday) ✓
- 2026-01-01 (Thursday) ✗ Halden holiday
- 2026-01-02 (Friday) ✓
- 2026-01-03 (Saturday) ✗ Weekend
- 2026-01

Answer: 5


```json
{
  "answer": 14,
  "definition_id": "delivered-shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden rule: carrier_scan_date present and on/before 2026-07-31"
}
```

Answer: 14


```json
{
  "answer": 50,
  "definition_id": "Delivered shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Meridian rule: customer_confirm_date present and ≤ 2026-08-31"
}
```

Answer: 50


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "21 customers with non-cancelled orders in (2025-02-28, 2026-02-28]."
}
```

Answer: 21


```json
{
  "answer": 133443,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Q1 2026 invoices minus returns: 137,020 - 3,577"
}
```

Answer: 133443


```json
{
  "answer": 15,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 shipments with customer_confirm_date ≤ 2026-08-31"
}
```

Answer: 15


```json
{
  "answer": 15,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Counted HAL shipments with carrier_scan_date on or before 2026-07-31 for C-118 contract orders."
}
```

Answer: 15


```json
{
  "answer": 62903,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "7 invoices in period, 1 return. Formula: (gross - discount + freight) minus returns."
}
```

Answer: 62903


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Active customers = open contract status as of 2026-01-31"}
```

Answer: 20


```json
{
  "answer": 10,
  "definition_id": "on-time-delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "10 shipments were on-time per pre-Feb-2026 Meridian rule."
}
```

Answer: 10


```json
{"answer": 19, "definition_id": "past_year_orders", "definition_version": 1, "unanswerable": false, "note": "Customers with orders placed 2025-01-31 to 2026-01-31"}
```

Answer: 19


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Customers with open contract_status as of 2026-08-31"}
```

Answer: 20


```json
{
  "answer": 18,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied v2 (180-day window from 2026-03-04). Counted unique customers with non-cancelled orders."
}
```

Answer: 18


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "45 shipments delivered by 2026-07-31; 21 met promised or revised promised date"
}
```

Answer: 21


```json
{"answer": 21, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Customers with orders 2025-03-15 to 2026-03-15"}
```

Answer: 21


```json
{
  "answer": 7,
  "definition_id": "On-time_delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Halden delivery rule from 2026-02-01; 7 of 13 delivered shipments on-time"
}
```

Answer: 7


```json
{
  "answer": 125200,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoiced revenue minus returns, period 2026-05-01 to 2026-06-30"
}
```

Answer: 125200


```json
{"answer": null, "definition_id": null, "definition_version": null, "unanswerable": true, "note": "No customer satisfaction score field in data"}
```


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damage information recorded in shipments table."
}
```


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date ≤ 2025-12-31; on-time = confirmed ≤ revised_promised_date or promised_date"
}
```

Answer: 9


```json
{"answer": 20, "definition_id": "meridian.def.active_customer", "definition_version": 1, "unanswerable": false, "note": "365-day window: (2025-02-15, 2026-02-15], non-cancelled orders"}
```

Answer: 20


```json
{
  "answer": 109343,
  "definition_id": "Net revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Freight excluded; freight period not yet reached."
}
```

Answer: 109343


```json
{
  "answer": 12,
  "definition_id": "on-time-delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "12 shipments delivered by 2026-02-01 were on-time using Meridian v2 rule."
}
```

Answer: 12


```json
{
  "answer": 8,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 shipments with carrier_scan_date <= 2026-06-30 compared to promised/revised date"
}
```

Answer: 8


```json
{"answer": 62700, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Seven ZEN orders June-August 2026, non-cancelled; gross_amount summed."}
```

Answer: 62700


```json
{
  "answer": 20,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Window: (2025-02-15, 2026-02-15]. 20 unique customers have non-cancelled orders."
}
```

Answer: 20


```json
{
  "answer": 13,
  "definition_id": "halden.def.delivered",
  "definition_version": 2,
  "unanswerable": false,
  "note": "15 C-118 shipments exist; 13 have carrier_scan_date ≤ 2026-07-31"
}
```

Answer: 13


```json
{
  "answer": 10,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C-301 shipments with customer_confirm_date present and on/before 2026-08-31"
}
```

Answer: 10


```json
{
  "answer": 18,
  "definition_id": "Delivered shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden rule: carrier scan date present and ≤ 2026-08-31"
}
```

Answer: 18


```json
{
  "answer": 6,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = has customer_confirm_date. On-time = delivered <= promised or revised date."
}
```

Answer: 6


```json
{
  "answer": 9,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "On-time = customer_confirm_date ≤ promised/revised_promised_date; delivered by 2025-12-31 = customer_confirm_date ≤ 2025-12-31 and NOT null"
}
```

**Calculation summary:**

Shipments delivered by 2025-12-31 (customer_confirm_date populated and ≤ 2025-12-31): 21 total

Delivered on time (customer_confirm_date ≤ promised_date, or revised_promised_date if present):
1. S010 (O011): 2025-06-20 ≤ 2025-06-22 ✓
2. S012 (O013): 2025-08-17 ≤ 2025-08-21 ✓
3. S014 (O015): 2025-12-30 ≤ 2026-

Answer: 9


```json
{
  "answer": 18,
  "definition_id": "Active customers - Meridian reporting",
  "definition_version": 1,
  "unanswerable": false,
  "note": "180-day window from 2026-03-05 to 2026-08-31; excluded cancelled orders"
}
```

Answer: 18


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date ≤ promised_date (or revised_promised_date if present) as of 2026-02-01"
}
```

Answer: 12


```json
{
  "answer": 1,
  "definition_id": "active_base_ordering_past_year",
  "definition_version": 1,
  "unanswerable": false,
  "note": "C002 fell out of active base (no orders in past 12 months from Q2 end)"
}
```

Answer: 1


```json
{
  "answer": 6,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Business days exclude weekends and Jan 1 holiday"
}
```

Answer: 6


```json
{
  "answer": 12,
  "definition_id": "meridian.def.on_time",
  "definition_version": 2,
  "unanswerable": false,
  "note": "12 of 25 delivered shipments met on-time criteria."
}
```

Answer: 12


```json
{
  "answer": 2,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Customers C013 and C021 were active at Q2 start (2026-04-01) but inactive by Q2 end (2026-06-30)."
}
```

Answer: 2


```json
{
  "answer": 16,
  "definition_id": "Delivered shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Halden rule: carrier_scan_date present and on/before 2026-07-31"
}
```

Answer: 16


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Active = contract_status='open' as of 2026-07-15"}
```

Answer: 20


Answer: 133443

Invoiced revenue Q1 2026 less returns recognized in period.


Answer: 12


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with confirmed delivery date ≤ revised promised date or promised date"
}
```

Answer: 12


```json
{
  "answer": 43,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date present and on/before 2026-06-30"
}
```

Answer: 43


```json
{
  "answer": 43,
  "definition_id": "meridian.def.delivered",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date on or before 2026-06-30"
}
```

Answer: 43


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "COGS data required to calculate gross margin; dataset lacks cost information."
}
```


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window: 2025-11-17 to 2026-05-15, status not cancelled"
}
```

Answer: 16


```json
{
  "answer": 11,
  "definition_id": "Delivered shipments",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Meridian rule: customer_confirm_date present and on/before 2026-08-31"
}
```

Answer: 11


```json
{
  "answer": 141511,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Invoiced sales less returns in period"
}
```

Answer: 141511


```json
{
  "answer": 21,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 1,
  "unanswerable": false,
  "note": "21 unique customers with non-cancelled orders in (2025-02-28, 2026-02-28]"
}
```

Answer: 21


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered shipments with customer_confirm_date ≤ revised_promised_date or promised_date."
}
```

Answer: 21


```json
{
  "answer": 16,
  "definition_id": "active_customers",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window from 2025-11-16 to 2026-05-15; 16 unique customers with non-cancelled orders."
}
```

Answer: 16


```json
{
  "answer": 43,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with non-null customer_confirm_date on/before 2026-06-30"
}
```

Answer: 43


```json
{
  "answer": 58155,
  "definition_id": "meridian.def.order_value",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Sum of (gross_amount - discount_amount) for non-cancelled ZEN orders placed 2026-06-01 to 2026-08-31"
}
```

Answer: 58155


```json
{
  "answer": 5,
  "definition_id": "halden.def.business_day",
  "definition_version": 1,
  "unanswerable": false,
  "note": "5 business days between order and carrier scan dates"
}
```

Answer: 5