The SQL dialect to use. If not provided, the query is parsed on a best-effort basis.
Show SqlDialectV1
The SQL dialect to use when parsing queries.
POSTGRESQL: Parse as PostgreSQL-compatible SQL.
CLICKHOUSE: Parse as ClickHouse-compatible SQL.
Response
Response from the SQL API.
[SqlColumnResponse!]
required
The column names in the same order as present in the data field.
Show SqlColumnResponse
String
required
The name of the returned column.
ColumnType
required
The returned column’s type.
Show ColumnType
The Propel data types.
BOOLEAN: True or false.
STRING: A variable-length string.
FLOAT: A 32-bit signed double-precision floating point number.
DOUBLE: A 64-bit signed double-precision floating point number.
INT8: An 8-bit signed integer, with a minimum value of -2⁷ and a maximum value of 2⁷-1.
INT16: A 16-bit signed integer, with a minimum value of -2¹⁵ and a maximum value of 2¹⁵-1.
INT32: A 32-bit signed integer, with a minimum value of -2³¹ and a maximum value of 2³¹-1.
INT64: A 64-bit signed integer, with a minimum value of -2⁶³ and a maximum value of 2⁶³-1.
DATE: A date without a timestamp. For example, “YYYY-MM-DD”.
TIMESTAMP: A date with a timestamp. For example, “yyy-MM-dd HH:mm:ss”.
JSON: A JavaScript Object Notation (JSON) document.
CLICKHOUSE: A ClickHouse-specific type.
Boolean
required
Whether the column is nullable, meaning whether it accepts a null value.
[[String]!]
required
The data gathered by the SQL query. The data is returned in an N x M matrix format, where the
first dimension are the rows retrieved, and the second dimension are the columns. Each cell
can be either a string or null, and the string can represent a number, text, date or boolean value.
QueryInfo
required
The Query statistics and metadata.
Show QueryInfo
The Query Info object. It contains metadata and statistics about a Query performed.
ID
required
The Query’s unique identifier.
DateTime
required
The date and time in UTC when the Query was created.
String
required
The unique identifier of the actor that performed the Query.
DateTime
required
The date and time in UTC when the Query was last modified.
String
required
The unique identifier of the actor that modified the Query.
String
required
The bytes processed by the Query.
Int
required
The duration of the Query in milliseconds.
String
required
The number of records processed by the Query.
Int
required
The bytes returned by the Query.
Int
required
The number of records returned by the Query.
Propeller
The Propeller used for this query.
Show Propeller
A Propeller determines your Application’s query processing power. The larger the Propeller, the faster the queries and the higher the cost. Every Propel Application (and therefore every set of API credentials) has a Propeller that determines the speed and cost of queries.
P1_X_SMALL: Max records per second: 5,000,000 records per second
P1_SMALL: Max records per second: 25,000,000 records per second
P1_MEDIUM: Max records per second: 100,000,000 records per second
P1_LARGE: Max records per second: 250,000,000 records per second
P1_X_LARGE: Max records per second: 500,000,000 records per second
QueryStatus
required
The Query status.
Show QueryStatus
The Query status.
COMPLETED: The Query was completed succesfully.
ERROR: The Query experienced an error.
TIMED_OUT: The Query timed out.
QueryType
required
The Query type.
Show QueryType
The Query type.
METRIC: Indicates a Metric Query.
STATS: Indicates a Dimension Stats Query.
REPORT: Indicates a Report Query.
RECORDS: Indicates a Record Table Query.
RECORDS_BY_UNIQUE_ID: Indicates records queried by unique ID.
SQL: Indicates a SQL Query.
TOP_VALUES: Indicates a Top Values Query.
QuerySubtype
The Query subtype.
Show QuerySubtype
The Query subtype.
COUNTER: Indicates a Metric counter Query.
TIME_SERIES: Indicates a Metric time series Query.
LEADERBOARD: Indicates a Metric leaderboard Query.
String
required
The SQL the query executed.
Embeddable UI components
useSql
A React Hook for querying data using raw SQL.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Propel docs","colors":{"primary":"#53389E","light":"#B692F6","dark":"#42307D"},"favicon":"/logo/favicon.svg","styling":{"eyebrows":null,"codeblocks":"system"},"logo":{"light":"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/light.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=9d44dbaa0d94a0b0efe5b94548583b52","dark":"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/dark.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=018cb109a52097ee645367f1cabdbac1","href":"https://www.propeldata.com/docs"},"background":{"decoration":"windows"},"navbar":{"links":[{"label":"Sign up","href":"https://console.propeldata.com/get-started"}],"primary":{"type":"button","label":"Console","href":"https://console.propeldata.com"}},"footer":{"socials":{"website":"https://www.propeldata.com","x":"https://x.com/PropelDataCloud","github":"https://github.com/propeldata","linkedin":"https://www.linkedin.com/company/propeldata"}},"integrations":{"gtm":{"tagId":"GTM-KWHDSH7X"},"segment":{"key":"JofuhN1DoSM6E42ZVPcVUN3jqCmyWVP1"}},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"propeldocs","hasAudioNarration":false,"actualSubdomain":"propeldocs","customDomains":["www.propeldata.com"],"gitSource":{"type":"github","owner":"propeldata","repo":"docsv2","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{},"buildId":"6ae921c25a187fc783f53d53:success","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Embeddable UI","count":72},{"language":"default","tag":"Serverless Cloud","count":65},{"language":"default","tag":"Ingestion","count":44},{"language":"default","tag":"Query APIs","count":40},{"language":"default","tag":"API Reference","count":18},{"language":"default","tag":"Get Started","count":17},{"language":"default","tag":"Guides","count":16},{"language":"default","tag":"Changelog","count":9},{"language":"default","tag":"Manage","count":9},{"language":"default","tag":"Themes","count":9}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"docs/query-apis/sql-api","slug":"/docs/query-apis/sql-api","pageMetadata":{"title":"SQL API","description":"Execute SQL queries from your application.","sidebarTitle":"SQL API","icon":"database","href":"/docs/query-apis/sql-api"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Execute SQL queries from your application.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,ul:`ul`,..._provideComponents(),...props.components},{Accordion,AccordionGroup,Card,CardGroup,CodeBlock,CodeGroup,Expandable,Heading,ParamField}=_components;if(!Accordion)_missingMdxReference(`Accordion`,true);if(!AccordionGroup)_missingMdxReference(`AccordionGroup`,true);if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(_Fragment,{children:[_jsx(`div`,{}),`\n`,_jsx(Heading,{level:`2`,id:`use-cases`,children:`Use cases`}),`\n`,_jsx(CardGroup,{cols:1,children:_jsx(Card,{title:`Bespoke data access patterns`,children:_jsx(_components.p,{children:`Query with SQL directly for access patterns that don’t fit into the other APIs.`})})}),`\n`,_jsx(Heading,{level:`2`,id:`features`,children:`Features`}),`\n`,_jsxs(AccordionGroup,{children:[_jsxs(Accordion,{title:`Query with SQL syntax`,id:`query-with-sql-syntax`,children:[_jsx(_components.p,{children:`Query your data using familiar SQL syntax over the API.`}),_jsxs(_components.p,{children:[`See the `,_jsx(_components.a,{href:`/docs/sql-reference/overview`,children:`SQL Reference`}),` documentation for more details.`]})]}),_jsxs(Accordion,{title:`Query Data Pools using their unique name or ID.`,id:`query-data-pools-using-their-unique-name-or-id`,children:[_jsx(_components.p,{children:`Using the Data Pool ID:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` DPOXXXXXXXXXXXXXXXXXXXXXXXXXXXX`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using the Data Pool Name without spaces:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` events`})]}),`\n`]})})}),_jsx(_components.p,{children:`Using the Data Pool Name with spaces:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`sql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`sql`,children:_jsxs(_components.code,{language:`sql`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` *`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` FROM`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"TacoSoft Demo Data\"`})]}),`\n`]})})})]}),_jsxs(Accordion,{title:`ClickHouse and Postgres SQL dialects`,id:`clickhouse-and-postgres-sql-dialects`,children:[_jsx(_components.p,{children:`Compatible with PostgreSQL and ClickHouse SQL dialects.`}),_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`graphql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`graphql`,children:_jsxs(_components.code,{language:`graphql`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sqlV1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"...\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` dialect`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"CLICKHOUSE\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`example`,children:`Example`}),`\n`,_jsx(Heading,{level:`3`,id:`example-1-simple-sql-query`,children:`Example 1: Simple SQL query`}),`\n`,_jsx(_components.p,{children:`Get the first 3 rows from the “TacoSoft Demo Data” Data Pool.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Query`,numberOfLines:`18`,language:`graphql`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`graphql`,children:_jsxs(_components.code,{language:`graphql`,numberOfLines:`18`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` sqlV1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`input`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` query`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"\"`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` SELECT`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` order_id,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` quantity,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` taco_name,`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` sauce_name`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` FROM \"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`TacoSoft Demo Data`}),_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:`\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` LIMIT 3`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` \"\"\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }) {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` columns`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` columnName`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` rows`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Response`,numberOfLines:`38`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`38`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"sqlV1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"columns\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"columnName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"order_id\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"columnName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"quantity\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"columnName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"taco_name\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"columnName\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sauce_name\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"rows\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ddb63195-3053-44d1-8a7e-fc7b29de4685\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Chorizo\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Queso Blanco\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ddb63195-3053-44d1-8a7e-fc7b29de4685\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"2\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Breakfast\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Salsa Verde\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"ddb63195-3053-44d1-8a7e-fc7b29de4685\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"3\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Veggie\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"Chipotle Mayo\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ]`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`usage`,children:`Usage`}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsx(_components.p,{children:`Input to the SqlV1 api.`}),`\n`,_jsx(ParamField,{path:`query`,type:`String`,required:true,id:`param-query`,children:_jsx(_components.p,{children:`The SQL query.`})}),`\n`,_jsxs(ParamField,{path:`dialect`,type:`SqlDialectV1`,id:`param-dialect`,children:[_jsx(_components.p,{children:`The SQL dialect to use. If not provided, the query is parsed on a best-effort basis.`}),_jsxs(Expandable,{title:`SqlDialectV1`,children:[_jsx(_components.p,{children:`The SQL dialect to use when parsing queries.`}),_jsx(ParamField,{path:` `,id:`param`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`POSTGRESQL`}),`: Parse as PostgreSQL-compatible SQL.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CLICKHOUSE`}),`: Parse as ClickHouse-compatible SQL.`]}),`\n`]})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(_components.p,{children:`Response from the SQL API.`}),`\n`,_jsxs(ParamField,{path:`columns`,type:`[SqlColumnResponse!]`,required:true,id:`param-columns`,children:[_jsxs(_components.p,{children:[`The column names in the same order as present in the `,_jsx(_components.code,{children:`data`}),` field.`]}),_jsxs(Expandable,{title:`SqlColumnResponse`,children:[_jsx(ParamField,{path:`columnName`,type:`String`,required:true,id:`param-column-name`,children:_jsx(_components.p,{children:`The name of the returned column.`})}),_jsxs(ParamField,{path:`type`,type:`ColumnType`,required:true,id:`param-type`,children:[_jsx(_components.p,{children:`The returned column’s type.`}),_jsxs(Expandable,{title:`ColumnType`,children:[_jsx(_components.p,{children:`The Propel data types.`}),_jsx(ParamField,{path:` `,id:`param-1`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`BOOLEAN`}),`: True or false.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`STRING`}),`: A variable-length string.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`FLOAT`}),`: A 32-bit signed double-precision floating point number.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`DOUBLE`}),`: A 64-bit signed double-precision floating point number.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INT8`}),`: An 8-bit signed integer, with a minimum value of -2⁷ and a maximum value of 2⁷-1.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INT16`}),`: A 16-bit signed integer, with a minimum value of -2¹⁵ and a maximum value of 2¹⁵-1.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INT32`}),`: A 32-bit signed integer, with a minimum value of -2³¹ and a maximum value of 2³¹-1.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`INT64`}),`: A 64-bit signed integer, with a minimum value of -2⁶³ and a maximum value of 2⁶³-1.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`DATE`}),`: A date without a timestamp. For example, “YYYY-MM-DD”.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TIMESTAMP`}),`: A date with a timestamp. For example, “yyy-MM-dd HH:mm:ss”.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`JSON`}),`: A JavaScript Object Notation (JSON) document.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`CLICKHOUSE`}),`: A ClickHouse-specific type.`]}),`\n`]})})]})]}),_jsx(ParamField,{path:`isNullable`,type:`Boolean`,required:true,id:`param-is-nullable`,children:_jsx(_components.p,{children:`Whether the column is nullable, meaning whether it accepts a null value.`})})]})]}),`\n`,_jsx(ParamField,{path:`rows`,type:`[[String]!]`,required:true,id:`param-rows`,children:_jsx(_components.p,{children:`The data gathered by the SQL query. The data is returned in an N x M matrix format, where the\nfirst dimension are the rows retrieved, and the second dimension are the columns. Each cell\ncan be either a string or null, and the string can represent a number, text, date or boolean value.`})}),`\n`,_jsxs(ParamField,{path:`info`,type:`QueryInfo`,required:true,id:`param-info`,children:[_jsx(_components.p,{children:`The Query statistics and metadata.`}),_jsxs(Expandable,{title:`QueryInfo`,children:[_jsx(_components.p,{children:`The Query Info object. It contains metadata and statistics about a Query performed.`}),_jsx(ParamField,{path:`id`,type:`ID`,required:true,id:`param-id`,children:_jsx(_components.p,{children:`The Query’s unique identifier.`})}),_jsx(ParamField,{path:`createdAt`,type:`DateTime`,required:true,id:`param-created-at`,children:_jsx(_components.p,{children:`The date and time in UTC when the Query was created.`})}),_jsx(ParamField,{path:`createdBy`,type:`String`,required:true,id:`param-created-by`,children:_jsx(_components.p,{children:`The unique identifier of the actor that performed the Query.`})}),_jsx(ParamField,{path:`modifiedAt`,type:`DateTime`,required:true,id:`param-modified-at`,children:_jsx(_components.p,{children:`The date and time in UTC when the Query was last modified.`})}),_jsx(ParamField,{path:`modifiedBy`,type:`String`,required:true,id:`param-modified-by`,children:_jsx(_components.p,{children:`The unique identifier of the actor that modified the Query.`})}),_jsx(ParamField,{path:`bytesProcessed`,type:`String`,required:true,id:`param-bytes-processed`,children:_jsx(_components.p,{children:`The bytes processed by the Query.`})}),_jsx(ParamField,{path:`durationInMilliseconds`,type:`Int`,required:true,id:`param-duration-in-milliseconds`,children:_jsx(_components.p,{children:`The duration of the Query in milliseconds.`})}),_jsx(ParamField,{path:`recordsProcessed`,type:`String`,required:true,id:`param-records-processed`,children:_jsx(_components.p,{children:`The number of records processed by the Query.`})}),_jsx(ParamField,{path:`resultingBytes`,type:`Int`,required:true,id:`param-resulting-bytes`,children:_jsx(_components.p,{children:`The bytes returned by the Query.`})}),_jsx(ParamField,{path:`resultingRecords`,type:`Int`,required:true,id:`param-resulting-records`,children:_jsx(_components.p,{children:`The number of records returned by the Query.`})}),_jsxs(ParamField,{path:`propeller`,type:`Propeller`,id:`param-propeller`,children:[_jsx(_components.p,{children:`The Propeller used for this query.`}),_jsxs(Expandable,{title:`Propeller`,children:[_jsx(_components.p,{children:`A Propeller determines your Application’s query processing power. The larger the Propeller, the faster the queries and the higher the cost. Every Propel Application (and therefore every set of API credentials) has a Propeller that determines the speed and cost of queries.`}),_jsx(ParamField,{path:` `,id:`param-2`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`P1_X_SMALL`}),`: Max records per second: 5,000,000 records per second`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`P1_SMALL`}),`: Max records per second: 25,000,000 records per second`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`P1_MEDIUM`}),`: Max records per second: 100,000,000 records per second`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`P1_LARGE`}),`: Max records per second: 250,000,000 records per second`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`P1_X_LARGE`}),`: Max records per second: 500,000,000 records per second`]}),`\n`]})})]})]}),_jsxs(ParamField,{path:`status`,type:`QueryStatus`,required:true,id:`param-status`,children:[_jsx(_components.p,{children:`The Query status.`}),_jsxs(Expandable,{title:`QueryStatus`,children:[_jsx(_components.p,{children:`The Query status.`}),_jsx(ParamField,{path:` `,id:`param-3`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`COMPLETED`}),`: The Query was completed succesfully.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`ERROR`}),`: The Query experienced an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TIMED_OUT`}),`: The Query timed out.`]}),`\n`]})})]})]}),_jsxs(ParamField,{path:`type`,type:`QueryType`,required:true,id:`param-type-1`,children:[_jsx(_components.p,{children:`The Query type.`}),_jsxs(Expandable,{title:`QueryType`,children:[_jsx(_components.p,{children:`The Query type.`}),_jsx(ParamField,{path:` `,id:`param-4`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`METRIC`}),`: Indicates a Metric Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`STATS`}),`: Indicates a Dimension Stats Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`REPORT`}),`: Indicates a Report Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`RECORDS`}),`: Indicates a Record Table Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`RECORDS_BY_UNIQUE_ID`}),`: Indicates records queried by unique ID.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`SQL`}),`: Indicates a SQL Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TOP_VALUES`}),`: Indicates a Top Values Query.`]}),`\n`]})})]})]}),_jsxs(ParamField,{path:`subtype`,type:`QuerySubtype`,id:`param-subtype`,children:[_jsx(_components.p,{children:`The Query subtype.`}),_jsxs(Expandable,{title:`QuerySubtype`,children:[_jsx(_components.p,{children:`The Query subtype.`}),_jsx(ParamField,{path:` `,id:`param-5`,children:_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`COUNTER`}),`: Indicates a Metric counter Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`TIME_SERIES`}),`: Indicates a Metric time series Query.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`LEADERBOARD`}),`: Indicates a Metric leaderboard Query.`]}),`\n`]})})]})]}),_jsx(ParamField,{path:`sql`,type:`String`,required:true,id:`param-sql`,children:_jsx(_components.p,{children:`The SQL the query executed.`})})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`embeddable-ui-components`,children:`Embeddable UI components`}),`\n`,_jsx(CardGroup,{cols:2,children:_jsx(Card,{title:`useSql`,icon:`code`,href:`/docs/embeddable-ui/components/use-sql`,children:_jsx(_components.p,{children:`A React Hook for querying data using raw SQL.`})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"SQL API","description":"Execute SQL queries from your application.","sidebarTitle":"SQL API","icon":"database","href":"/docs/query-apis/sql-api"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Use cases","slug":"use-cases","depth":2,"children":[]},{"title":"Features","slug":"features","depth":2,"children":[]},{"title":"Example","slug":"example","depth":2,"children":[{"title":"Example 1: Simple SQL query","slug":"example-1-simple-sql-query","depth":3,"children":[]}]},{"title":"Usage","slug":"usage","depth":2,"children":[]},{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"Embeddable UI components","slug":"embeddable-ui-components","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/propeldocs/fdbfad1497ca4ff4/scripts/generate-query-api-snippets.js","/_mintlify/custom/propeldocs/8980ee81dee9a13b/scripts/generate-ui-kit-props-snippets.js","/_mintlify/custom/propeldocs/14bd85a0d423341a/scripts/consts.js","/_mintlify/custom/propeldocs/0cf47d21a6c8aab3/scripts/utils.js","/_mintlify/custom/propeldocs/40b44e6573c8c018/scripts/generate-management-api-pages.js","/_mintlify/custom/propeldocs/51bba4061f9f89d8/scripts/delete-heavy-docs.js","/_mintlify/custom/propeldocs/cdc5ec9e555dee6e/scripts/generate-docs.js","/_mintlify/custom/propeldocs/45c00fb3854a3468/scripts/patch-embed-snippets.js","/_mintlify/custom/propeldocs/9a2f4a8c729adeab/scripts/get-radix-type-as-json.js"],"subdomain":"propeldocs","siteName":"Propel docs","title":"SQL API - Propel docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-01-07T03:52:45.825Z","originalFileLocation":"docs/query-apis/sql-api.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Execute SQL queries from your application.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Propel docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"SQL API - Propel docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Execute SQL queries from your application.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Propel docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://www.propeldata.com/docs/query-apis/sql-api\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://propeldocs.mintlify.site/_mintlify/api/og/v2?division=APIs\u0026amp;title=SQL+API\u0026amp;description=Execute+SQL+queries+from+your+application.\u0026amp;theme=f9dc867360e0a88fa037a043\u0026amp;signature=2a66e052abba760c9ca335d28c12cf64206a240259a2f007f600bce23d6ebd13\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"SQL API - Propel docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Execute SQL queries from your application.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://propeldocs.mintlify.site/_mintlify/api/og/v2?division=APIs\u0026amp;title=SQL+API\u0026amp;description=Execute+SQL+queries+from+your+application.\u0026amp;theme=f9dc867360e0a88fa037a043\u0026amp;signature=2a66e052abba760c9ca335d28c12cf64206a240259a2f007f600bce23d6ebd13\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/propeldocs/6xpBSdoUNIH7T1a1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Propel docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#53389E\">\u003clink data-mint-head rel=\"canonical\" href=\"https://www.propeldata.com/docs/query-apis/sql-api\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/query-apis/sql-api.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://www.propeldata.com/#organization\",\"name\":\"Propel docs\",\"url\":\"https://www.propeldata.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/propeldocs/sNpmg5Sbvcqytj17/logo/light.svg?fit=max\u0026auto=format\u0026n=sNpmg5Sbvcqytj17\u0026q=85\u0026s=9d44dbaa0d94a0b0efe5b94548583b52\"}},{\"@type\":\"WebSite\",\"@id\":\"https://www.propeldata.com#website\",\"name\":\"Propel docs\",\"url\":\"https://www.propeldata.com\",\"publisher\":{\"@id\":\"https://www.propeldata.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://www.propeldata.com/docs/query-apis/sql-api#webpage\",\"url\":\"https://www.propeldata.com/docs/query-apis/sql-api\",\"name\":\"SQL API\",\"description\":\"Execute SQL queries from your application.\",\"dateModified\":\"2026-01-07T03:52:45.825Z\",\"isPartOf\":{\"@id\":\"https://www.propeldata.com#website\"},\"breadcrumb\":{\"@id\":\"https://www.propeldata.com/docs/query-apis/sql-api#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://www.propeldata.com/docs/query-apis/sql-api#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Propel docs\",\"item\":\"https://www.propeldata.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL API\",\"item\":\"https://www.propeldata.com/docs/query-apis/sql-api\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://www.propeldata.com/docs/query-apis/sql-api#article\",\"headline\":\"SQL API\",\"name\":\"SQL API\",\"description\":\"Execute SQL queries from your application.\",\"url\":\"https://www.propeldata.com/docs/query-apis/sql-api\",\"mainEntityOfPage\":{\"@id\":\"https://www.propeldata.com/docs/query-apis/sql-api#webpage\"},\"dateModified\":\"2026-01-07T03:52:45.825Z\",\"publisher\":{\"@id\":\"https://www.propeldata.com/#organization\"},\"isPartOf\":{\"@id\":\"https://www.propeldata.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Propel docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Propel docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/query-apis/sql-api.md","siteName":"Propel docs","nav":{"global":null,"tabs":[{"tab":"Serverless Cloud","pages":[{"title":"Serverless Cloud","href":"/docs/overview"}]},{"tab":"Ingestion","pages":[{"title":"Ingestion","href":"/docs/ingestion/overview"}]},{"tab":"Query APIs","anchors":[{"anchor":"Query APIs","icon":"house","groups":[{"group":"Get Started","pages":[{"title":"Query APIs","sidebarTitle":"Overview","icon":"gear-code","mode":"wide","href":"/docs/query-apis/overview"},{"title":"Authentication","description":"Authenticate your API requests.","sidebarTitle":"Authentication","icon":"key","href":"/docs/query-apis/authentication"}]},{"group":"APIs","pages":[{"title":"SQL API","sidebarTitle":"SQL API","icon":"database","href":"/docs/query-apis/sql-api"},{"title":"Counter","description":"Get a single aggregated value for a time range.","sidebarTitle":"Counter","icon":"calculator","href":"/docs/query-apis/counter"},{"title":"Data Grid","sidebarTitle":"Data Grid","icon":"table","href":"/docs/query-apis/data-grid"},{"title":"Leaderboard","sidebarTitle":"Leaderboard","icon":"trophy","href":"/docs/query-apis/leaderboard"},{"title":"Metric report","sidebarTitle":"Metric Report","icon":"file-chart-column","href":"/docs/query-apis/metric-report"},{"title":"Time Series","sidebarTitle":"Time Series","icon":"chart-line","href":"/docs/query-apis/time-series"},{"title":"Top values","sidebarTitle":"Top Values","icon":"list-ol","href":"/docs/query-apis/top-values"}]},{"group":"Metrics","pages":[{"title":"Metrics","sidebarTitle":"Overview","icon":"gauge","mode":"wide","href":"/docs/query-apis/metrics"},{"title":"Types of Metrics","sidebarTitle":"Types of Metrics","icon":"list","href":"/docs/query-apis/types-of-metrics"},{"title":"Defining Metrics","sidebarTitle":"Defining Metrics","icon":"calculator-simple","href":"/docs/query-apis/defining-metrics"}]},{"group":"Guides","pages":[{"title":"Querying JSON data","sidebarTitle":"Querying JSON","icon":"brackets-curly","href":"/docs/query-apis/guides/querying-json"},{"title":"Make multiple GraphQL queries in a single request","sidebarTitle":"Multiple queries","icon":"file-chart-column","href":"/docs/query-apis/guides/how-to-make-multiple-graphQL-queries-in-one-request"},{"title":"Working with timezones","sidebarTitle":"Timezones","icon":"globe","href":"/docs/query-apis/guides/working-with-timezones"},{"title":"Pagination","sidebarTitle":"Pagination","icon":"file-spreadsheet","href":"/docs/query-apis/guides/pagination"},{"title":"Unique names","sidebarTitle":"Unique names","icon":"tag","href":"/docs/query-apis/guides/unique-names"}]}]},{"anchor":"API Reference","icon":"code","pages":[{"title":"API Reference","href":"/docs/query-apis/api-reference/overview"}]}]},{"tab":"Embeddable UI","pages":[{"title":"Embeddable UI","href":"/docs/embeddable-ui/introduction"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/docs/changelog/2024"}]}]},"basePath":"","title":"SQL API - Propel docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}