Explain a query
explain_queryCheck SQL query cost by retrieving the query plan and estimated cost without executing. Ensures queries are cheap before running.
Instructions
Returns the query plan and estimated cost without running the query. Use it to check a query is cheap before running it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | A single read-only SELECT or WITH statement to analyze |