---
title: "GET /query-inspect"
method: GET
path: "/query-inspect"
tags: ["Query Inspect"]
---

# GET /query-inspect

`GET /query-inspect`

## Query parameters

- `query` string, required

## Response `200`

- object
  - `queryMetrics` object
    - `overallQueryProcessingTime` integer — Overall query processing time in milliseconds.
    - `planningTime` integer — Time spent on planning the query in milliseconds.
    - `compilationTime` integer — Time spent on compiling the query in milliseconds.
    - `executionTime` integer — Time spent on executing the query in milliseconds.
    - `queryPlanningStats` object — Detailed statistics related to the query planning phase.
      - `overallQueryPlanningTime` integer — Total time spent in query planning in milliseconds.
      - `sourcePlanningTime` integer — Time spent on source planning in milliseconds.
    - `executionStats` object — Additional execution-related statistics.
      - `planStats` object
  - `physicalPlan` string — Serialized physical query plan.
  - `logicalPlan` string — Serialized logical query plan.
  - `sourceAssignment` string — Serialized source assignment.
  - `exceptions` unknown[] — List of exceptions.
    - unknown

## Other responses

- `400` — Bad Request - SPARQL query is missing, empty, or invalid
- `500` — Internal Server Error - Error during query execution
- `501` — Not Implemented - The given query uses a feature that is not supported by HeFQUIN

## Changes

- **2025-04-15** `ac0cee80c7fc` — 1 info
  - added the non-success response with the status `501`
- **2025-03-24** `f1673b986035` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/liusemweb/apis/hefquin-service-api/changes/query-inspect/get.md)

---

[API](https://skmtc.dev/liusemweb/apis/hefquin-service-api.md) · [All operations](https://skmtc.dev/liusemweb/apis/hefquin-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/liusemweb/hefquin-service-api/revisions/ac0cee80c7fc/schema)
