{
  "contractVersion": "harness.catalyst-notebook.http-exchange.v1",
  "request": {
    "method": "POST",
    "path": "/v1/catalyst/workbench/versions/04831f8f-29ac-4d44-9c13-b7f8f98a026d/execute",
    "body": {
      "contractVersion": "catalyst.workbench.execute.request.v1",
      "versionId": "04831f8f-29ac-4d44-9c13-b7f8f98a026d",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-ad313f01-e351-4582-87ab-18da0e18465c"
    }
  },
  "response": {
    "httpStatus": 200,
    "body": {
      "contractVersion": "catalyst.workbench.execution.v1",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-ad313f01-e351-4582-87ab-18da0e18465c",
      "validationStatus": "valid",
      "query": {
        "sql": "SELECT encounter_type, COUNT(*) AS count FROM analytics.hiv_visit_fact_v1 GROUP BY encounter_type",
        "parameters": []
      },
      "statementTimeoutMs": 10000,
      "maxRows": 100,
      "replayed": false,
      "status": "succeeded",
      "result": {
        "columns": [
          {
            "ordinal": 0,
            "name": "encounter_type",
            "databaseType": "text",
            "typeOid": 25,
            "logicalType": "string"
          },
          {
            "ordinal": 1,
            "name": "count",
            "databaseType": "int8",
            "typeOid": 20,
            "logicalType": "integer"
          }
        ],
        "rows": [
          [
            {
              "type": "string",
              "value": "Vitals"
            },
            {
              "type": "integer",
              "value": 4
            }
          ],
          [
            {
              "type": "string",
              "value": "Adult Visit"
            },
            {
              "type": "integer",
              "value": 13369
            }
          ],
          [
            {
              "type": "string",
              "value": "Group Session"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Lab Results"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Attachment Upload"
            },
            {
              "type": "integer",
              "value": 6
            }
          ],
          [
            {
              "type": "string",
              "value": "Home Visit"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Consultation"
            },
            {
              "type": "integer",
              "value": 2
            }
          ],
          [
            {
              "type": "string",
              "value": "Facility Visit"
            },
            {
              "type": "integer",
              "value": 938
            }
          ],
          [
            {
              "type": "string",
              "value": "OPD Visit"
            },
            {
              "type": "integer",
              "value": 13310
            }
          ],
          [
            {
              "type": "string",
              "value": "Check In"
            },
            {
              "type": "integer",
              "value": 941
            }
          ],
          [
            {
              "type": "string",
              "value": "Visit Note"
            },
            {
              "type": "integer",
              "value": 4
            }
          ]
        ],
        "rowCount": {
          "returned": 11,
          "truncated": false,
          "truncationReason": null
        },
        "warnings": []
      },
      "durationMs": 123,
      "executionId": "a0cca333-e97a-470c-85b2-d67f31ff343a",
      "sessionId": "bff945ac-4b7a-4703-8db5-ecd01562acc8",
      "versionId": "04831f8f-29ac-4d44-9c13-b7f8f98a026d",
      "ordinal": 3,
      "completedAt": "2026-08-25T01:03:19.850809Z"
    }
  },
  "elapsedMs": 151
}
