{
  "contractVersion": "harness.catalyst-notebook.http-exchange.v1",
  "request": {
    "method": "POST",
    "path": "/v1/catalyst/workbench/versions/d04ed859-7cb5-4726-8d23-8b76bcca6baf/execute",
    "body": {
      "contractVersion": "catalyst.workbench.execute.request.v1",
      "versionId": "d04ed859-7cb5-4726-8d23-8b76bcca6baf",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-298b0eca-d0cc-40f4-bac3-d9edf08c5000"
    }
  },
  "response": {
    "httpStatus": 200,
    "body": {
      "contractVersion": "catalyst.workbench.execution.v1",
      "queryDigest": "fd774c2250223a39d4f5e39e17ebf2633be7ac38dc836e87f94ef4ee578c9874",
      "idempotencyKey": "harness-notebook-298b0eca-d0cc-40f4-bac3-d9edf08c5000",
      "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": 59,
      "executionId": "e5818f98-1a7e-4209-8d86-da1558de6f90",
      "sessionId": "352ecad4-9ce9-414e-9687-5aaab198bd0c",
      "versionId": "d04ed859-7cb5-4726-8d23-8b76bcca6baf",
      "ordinal": 3,
      "completedAt": "2026-08-25T00:20:57.229525Z"
    }
  },
  "elapsedMs": 85
}
