{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QueryResponseAlternative87",
  "title": "QueryResponseAlternative87",
  "additionalProperties": false,
  "properties": {
    "error": {
      "default": null,
      "description": "Query error. Returned only if 'explain' or `modifiers.debug` is true. Throws an error otherwise.",
      "title": "Error",
      "type": "string",
      "nullable": true
    },
    "hogql": {
      "default": null,
      "description": "Generated HogQL query.",
      "title": "Hogql",
      "type": "string",
      "nullable": true
    },
    "modifiers": {
      "default": null,
      "description": "Modifiers used when performing the query",
      "allOf": [
        {
          "$ref": "#/components/schemas/HogQLQueryModifiers"
        }
      ],
      "nullable": true
    },
    "query_status": {
      "default": null,
      "description": "Query status indicates whether next to the provided data, a query is still running.",
      "allOf": [
        {
          "$ref": "#/components/schemas/QueryStatus"
        }
      ],
      "nullable": true
    },
    "resolved_date_range": {
      "default": null,
      "description": "The date range used for the query",
      "allOf": [
        {
          "$ref": "#/components/schemas/ResolvedDateRangeResponse"
        }
      ],
      "nullable": true
    },
    "results": {
      "items": {
        "$ref": "#/components/schemas/UsageMetric"
      },
      "title": "Results",
      "type": "array"
    },
    "timings": {
      "default": null,
      "description": "Measured timings for different parts of the query generation process",
      "title": "Timings",
      "items": {
        "$ref": "#/components/schemas/QueryTiming"
      },
      "type": "array",
      "nullable": true
    }
  },
  "required": [
    "results"
  ],
  "type": "object"
}