Approved only, max revision per id:

S1-00: rev3 approved=false → max approved is rev2 (177, 試料\0)
S1-01: rev3 approved=true → 131, 試料「1」
S1-02: rev3 → 624, 試料「2」
S1-03: rev3 approved=false → rev2 → 997, 試料\3
S1-04: rev3 approved=true → null, 試料「4」
S1-05: rev3 → 904, 試料「5」
S1-06: rev3 approved=false → rev2 → 411, 試料\6
S1-07: rev3 → 232, 試料「7」

null_count = 1.

Labels: backslash in JSON string must be escaped as \\. Japanese quotes 「」 are fine as-is. The instruction says escape quotes/backslashes appropriately for JSON. 「」 don't need escaping. Backslash: "試料\\6" in JSON output means literal 試料\6.

Output JSON with records array sorted by id.