Expected data output (runtime-version lines vary by Python installation):

Correct one-request result:
  A: 1
  B: 1
  UNRESOLVED: 1
  total: 3

Naive notes + inner staff join:
  A: 2
  B: 1
  total: 3 (same grand total, wrong groups)

COUNT(DISTINCT request_id) after that bad inner join:
  A: 1
  B: 1
  total: 2 (unmatched S99 was already dropped)

Expected tests: 6 passed.
