{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/QueryRequest",
  "title": "QueryRequest",
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "query": {
      "type": "string",
      "description": "A query string to execute using GoogleSQL or legacy SQL"
    },
    "maxResults": {
      "type": "integer",
      "description": "The maximum number of rows of data to return per page"
    },
    "defaultDataset": {
      "$ref": "#/components/schemas/DatasetReference"
    },
    "useLegacySql": {
      "type": "boolean",
      "description": "Whether to use legacy SQL dialect"
    },
    "timeoutMs": {
      "type": "integer",
      "description": "Timeout in milliseconds for the query to complete"
    },
    "dryRun": {
      "type": "boolean",
      "description": "If true, the query is not executed"
    }
  }
}