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

Answer: 5


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

Answer: 20


```json
{
  "answer": 12,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered = customer_confirm_date ≤ 2026-01-31; On-time = customer_confirm_date ≤ revised_promised_date (if exists) else promised_date"
}
```

Answer: 12


```json
{
  "answer": 12,
  "definition_id": "meridian_ontime_delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "12 of 25 delivered shipments met promised/revised delivery dates"
}
```

Answer: 12


```json
{
  "answer": 23,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Delivered shipments: actual customer_confirm_date ≤ promised/revised date."
}
```

Answer: 23


```json
{
  "answer": 20,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Active = open contract status as of date"
}
```

Answer: 20


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

Answer: 23


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

Answer: 21


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


```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": 5, "definition_id": "meridian.def.active_customer", "definition_version": 1, "unanswerable": false, "note": "Customers active 2026-03-31 but inactive 2026-06-30: C016, C018, C019, C021, C022"}
```

Answer: 5


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


```json
{"answer": 20, "definition_id": "meridian.def.active_customer", "definition_version": 1, "unanswerable": false, "note": "20 active customers in 365-day window ending 2026-02-15"}
```

Answer: 20


```json
{
  "answer": 5,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window (2026-07-05, 2027-01-01]: customers C001, C004, C011, C013, C022"
}
```

Answer: 5


```json
{"answer": 20, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Active = ordered in past 12 months (≥2025-08-31)"}
```

Answer: 20


```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": 12,
  "definition_id": "on-time-delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Applied post-2026-02-01 rule using revised promised dates where populated"
}
```

Answer: 12


```json
{
  "answer": 18,
  "definition_id": "on-time-delivery",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Counted delivered orders where delivery date exceeded promised/revised date by more than 2 business days using Meridian calendar per the COO rule effective from 2026-02-01"
}
```

Answer: 18


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

Answer: 11


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

Answer: 43


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


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

Answer: 18220


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


```json
{
  "answer": 21,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "Shipments with customer_confirm_date ≤ 2026-07-31, delivered on or before promised/revised date"
}
```

Answer: 21


```json
{
  "answer": 7,
  "definition_id": "meridian.def.on_time",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments delivered with customer_confirm_date by 2025-12-31, on or before promised_date."
}
```

Answer: 7


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


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

Answer: 43


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

Answer: 7


```json
{
  "answer": 14,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "C-118 + Halden Logistics shipments with carrier scan date ≤ 2026-06-30"
}
```

Answer: 14


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

Answer: 17


```json
{
  "answer": 16,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Window: 2025-11-16 to 2026-05-15; 16 unique customers with non-cancelled orders"
}
```

Answer: 16


Looking at the data, I need to:
1. Find all orders with contract_id = C-118 and supplier_id = HAL
2. Identify corresponding shipments
3. Count those with a non-null customer_confirm_date on or before 2026-07-31

**C-118 orders with HAL supplier:**
O004, O006, O007, O009, O013, O017, O021, O022, O023, O024, O039, O041, O045, O047, O048, O051, O052, O062, O065, O066, O072

**Checking shipments with customer_confirm_date ≤ 2026-07-31:**
- O004 → S003: 2026-02-06 ✓
- O006 → S005: 2026-01-15 ✓
- O007 → S006: NULL ✗
- O009 → S008: NULL ✗
- O013 → S012: 2025-08-17 ✓
- O017 → S016: 2025-10-04 ✓
- O021

Answer: 12

C-118 HAL shipments with customer confirmation by 2026-07-31


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

Answer: 139070


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

Answer: 9


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "180-day window: (2026-01-16, 2026-07-15]. Customers with non-cancelled orders in range."
}
```

Answer: 17


```json
{"answer": 43, "definition_id": null, "definition_version": null, "unanswerable": false, "note": "Delivered = customer_confirm_date not null and ≤ 2026-06-30"}
```

Answer: 43


```json
{
  "answer": 66043,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Invoices dated 2026-07-01 to 2026-08-31: gross minus discount plus freight; minus returns in period."
}
```

Answer: 66043


```json
{
  "answer": 17,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Version 2 applies (2026-04-01 onwards, 180-day window)"
}
```

Answer: 17


```json
{
  "answer": 37,
  "definition_id": "customer_confirmation_delivery",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Shipments with non-null customer_confirm_date on/before 2026-05-31"
}
```

Answer: 37


```json
{
  "answer": 109343,
  "definition_id": "meridian.def.net_revenue",
  "definition_version": 1,
  "unanswerable": false,
  "note": "13 invoices in period; 1 return; calculated per v1 formula"
}
```

Answer: 109343


```json
{
  "answer": null,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": true,
  "note": "No damage status field in shipments table; unspecified returns reason."
}
```


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

Answer: 21


```json
{
  "answer": 6,
  "definition_id": "meridian-active-customers",
  "definition_version": 1,
  "unanswerable": false,
  "note": "Customers active March 31 but not June 30, 2026."
}
```

Answer: 6


```json
{
  "answer": null,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": true,
  "note": "Future date requires unknown orders between now and 2027-01-01"
}
```


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

Answer: 14


```json
{
  "answer": 5,
  "definition_id": "meridian.def.active_customer",
  "definition_version": 2,
  "unanswerable": false,
  "note": "Customers C001, C004, C011, C013, C022 have non-cancelled orders in window (2026-07-05, 2027-01-01]."
}
```

Answer: 5


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


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

Answer: 115288


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

Answer: 12


```json
{
  "answer": 5,
  "definition_id": null,
  "definition_version": null,
  "unanswerable": false,
  "note": "5 customers active: C001, C004, C011, C013, C022 with non-cancelled orders in 180-day window ending 2027-01-01."
}
```

Answer: 5