{
  "contractVersion": "harness.catalyst-notebook.http-exchange.v1",
  "request": {
    "method": "POST",
    "path": "/v1/catalyst/workbench/versions/714f1fac-4635-4618-9b7c-474f51c94b84/execute",
    "body": {
      "contractVersion": "catalyst.workbench.execute.request.v1",
      "versionId": "714f1fac-4635-4618-9b7c-474f51c94b84",
      "queryDigest": "9c0820178ff3ab14bd4ba2a7a779325599a69ab54f44f338edfe3e8e9e5f0393",
      "idempotencyKey": "harness-notebook-e476c9bd-b4b4-44c7-9072-c49603584e23"
    }
  },
  "response": {
    "httpStatus": 200,
    "body": {
      "contractVersion": "catalyst.workbench.execution.v1",
      "queryDigest": "9c0820178ff3ab14bd4ba2a7a779325599a69ab54f44f338edfe3e8e9e5f0393",
      "idempotencyKey": "harness-notebook-e476c9bd-b4b4-44c7-9072-c49603584e23",
      "validationStatus": "valid",
      "query": {
        "sql": "SELECT patient_gender, medication_name, COUNT(*) AS count FROM analytics.hiv_medication_request_fact_v1 WHERE do_not_perform = false GROUP BY patient_gender, medication_name ORDER BY count DESC LIMIT 10",
        "parameters": []
      },
      "statementTimeoutMs": 10000,
      "maxRows": 100,
      "replayed": false,
      "status": "succeeded",
      "result": {
        "columns": [
          {
            "ordinal": 0,
            "name": "patient_gender",
            "databaseType": "text",
            "typeOid": 25,
            "logicalType": "string"
          },
          {
            "ordinal": 1,
            "name": "medication_name",
            "databaseType": "text",
            "typeOid": 25,
            "logicalType": "string"
          },
          {
            "ordinal": 2,
            "name": "count",
            "databaseType": "int8",
            "typeOid": 20,
            "logicalType": "integer"
          }
        ],
        "rows": [
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Lamivudine"
            },
            {
              "type": "integer",
              "value": 6600
            }
          ],
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Stavudine"
            },
            {
              "type": "integer",
              "value": 6516
            }
          ],
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Nevirapine"
            },
            {
              "type": "integer",
              "value": 5928
            }
          ],
          [
            {
              "type": "string",
              "value": "male"
            },
            {
              "type": "string",
              "value": "Lamivudine"
            },
            {
              "type": "integer",
              "value": 3313
            }
          ],
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Trimethoprim and sulfamethoxazole"
            },
            {
              "type": "integer",
              "value": 3305
            }
          ],
          [
            {
              "type": "string",
              "value": "male"
            },
            {
              "type": "string",
              "value": "Stavudine"
            },
            {
              "type": "integer",
              "value": 3265
            }
          ],
          [
            {
              "type": "string",
              "value": "male"
            },
            {
              "type": "string",
              "value": "Nevirapine"
            },
            {
              "type": "integer",
              "value": 2882
            }
          ],
          [
            {
              "type": "string",
              "value": "male"
            },
            {
              "type": "string",
              "value": "Trimethoprim and sulfamethoxazole"
            },
            {
              "type": "integer",
              "value": 1582
            }
          ],
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Isoniazid"
            },
            {
              "type": "integer",
              "value": 1359
            }
          ],
          [
            {
              "type": "string",
              "value": "female"
            },
            {
              "type": "string",
              "value": "Efavirenz"
            },
            {
              "type": "integer",
              "value": 948
            }
          ]
        ],
        "rowCount": {
          "returned": 10,
          "truncated": false,
          "truncationReason": null
        },
        "warnings": []
      },
      "durationMs": 37,
      "executionId": "7b80ec24-7711-4819-adfd-6d3b393f7a4a",
      "sessionId": "dd8e7d90-777d-4abf-b777-d9482cd3de33",
      "versionId": "714f1fac-4635-4618-9b7c-474f51c94b84",
      "ordinal": 3,
      "completedAt": "2026-08-25T00:37:46.063841Z"
    }
  },
  "elapsedMs": 58
}
