Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.
Describe the result you want in chat. Athena writes the SQL for your connected database, and you review it before it runs.For example, with an orders table like this:
order_id
customer
order_date
amount
1001
Harbor Line
2026-09-04
1200.00
1002
Summit Haulage
2026-09-18
800.00
1003
Harbor Line
2026-10-02
450.00
1004
Lakeside Foods
2026-10-11
1350.00
From the orders table, show total revenue by month for September and October 2026. Read only; don't change any data.
Athena proposes a read-only query:
SELECT date_trunc('month', order_date) AS month, SUM(amount) AS revenueFROM ordersWHERE order_date >= '2026-09-01' AND order_date < '2026-11-01'GROUP BY 1ORDER BY 1;
Save your query snippets as Athena assets to access them in Spaces or execute them directly within Athena notebooks, streamlining data accessibility across applications.
Download your query results in various formats including CSV, Excel, and PDF, facilitating easy sharing and further analysis.
Was this page helpful?
{"docsConfig":{"$schema":"https://mintlify.com/docs.json","theme":"mint","name":"Athena Intelligence","colors":{"primary":"#283636","light":"#A0C4C4","dark":"#283636"},"favicon":"https://mintcdn.com/athenaintelligence-e46bc9d3/5eCfhbA_WRlZ_k38/favicon.png?fit=max\u0026auto=format\u0026n=5eCfhbA_WRlZ_k38\u0026q=85\u0026s=528f99643643859097cd91429605b7f8","logo":{"light":"https://mintcdn.com/athenaintelligence-e46bc9d3/uHIRzQcn8b73jJ6H/logo/dark.png?fit=max\u0026auto=format\u0026n=uHIRzQcn8b73jJ6H\u0026q=85\u0026s=c6d99fd8135dd337209bcd2ec1e63c8c","dark":"https://mintcdn.com/athenaintelligence-e46bc9d3/uHIRzQcn8b73jJ6H/logo/light.png?fit=max\u0026auto=format\u0026n=uHIRzQcn8b73jJ6H\u0026q=85\u0026s=f7b715bcd14b475d55dcea52a7f5fb68"},"background":{"decoration":null,"color":{"light":"#f8f6f2","dark":"#283636"}},"navbar":{"links":[{"label":"Login","href":"https://app.athenaintel.com/"}],"primary":{"type":"button","label":"Request a demo","href":"https://athenaintel.com/demo/"}},"seo":{"metatags":{"og:site_name":"Athena Intelligence Resources"},"indexing":"navigable"},"integrations":{"ga4":{"measurementId":"G-98FF4LBPSS"},"posthog":{"apiKey":"phc_cpdrH2yZTE8n09xDB6M7oWUFQ5IWbbodUrW2mDvEON7"}},"fonts":{"heading":{"family":"BDO Grotesk","weight":400,"format":"woff2","source":"https://cdn.prod.website-files.com/667abeccd5a8386435937307/667abeccd5a8386435937366_BDOGrotesk-VF.ttf"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Website","href":"https://athenaintel.com/","icon":"globe"},{"anchor":"Blog","href":"https://blog.athenaintel.com/","icon":"newspaper"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"athenaintelligence-e46bc9d3","hasAudioNarration":false,"actualSubdomain":"athenaintelligence-e46bc9d3","customDomains":["resources.athenaintel.com"],"gitSource":{"type":"github","owner":"athena-intel","repo":"demo-app-monorepo","deployBranch":"staging","contentDirectory":"mintlify_documentation","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":false,"edits":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af35473d887b935c086a83b","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Docs","count":128},{"language":"default","tag":"Athena 101","count":46},{"language":"default","tag":"Use cases","count":37},{"language":"default","tag":"Connect your data","count":31},{"language":"default","tag":"Use case guides","count":29},{"language":"default","tag":"Analyze and create","count":24},{"language":"default","tag":"Automate","count":23},{"language":"default","tag":"Work with Athena","count":20},{"language":"default","tag":"AI guides","count":16},{"language":"default","tag":"Enterprise AI guides","count":16}]},"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":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","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":"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":"assistant-v5","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":"workos-sso-scim","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":"workos-signup","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":"workos-enabled","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":"sso-setup-deadline-banner","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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/pillars/applications/query","slug":"/docs/pillars/applications/query","pageMetadata":{"title":"Generate and Run SQL Queries with Athena","sidebarTitle":"Query","description":"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.","href":"/docs/pillars/applications/query"},"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: \"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\"\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];const AskAthena=({prompt,send=false})=>{const _components={a:`a`,..._provideComponents()};const href=`https://app.athenaintel.com/dashboard/spaces?copilotInput=${encodeURIComponent(prompt)}${send?`\u0026autoSubmit=true`:``}`;return _jsxs(_components.a,{href,target:`_blank`,rel:`noopener noreferrer`,className:`not-prose mint-mb-4 mint-inline-flex mint-items-center mint-gap-1.5 mint-rounded-lg mint-border mint-border-zinc-950/10 dark:mint-border-white/10 mint-px-3 mint-py-1.5 mint-text-sm mint-font-medium mint-text-zinc-900 dark:mint-text-zinc-100 hover:mint-border-zinc-950/20 dark:hover:mint-border-white/20 mint-no-underline`,children:[`Ask in Athena`,_jsx(`span`,{\"aria-hidden\":`true`,children:`→`})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedFrame,Tab,Table,Tabs,Tip,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedFrame)_missingMdxReference(`OptimizedFrame`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(Tip,{children:[`Watch the `,_jsx(_components.a,{href:`https://youtu.be/VOHQ5RiOOj4`,children:`SQL database walkthrough`}),`.`]}),`\n`,_jsx(Tabs,{children:_jsxs(Tab,{title:`Overview`,id:`overview`,\"data-child-heading-ids\":`[\"key-features\",\"query-generation\",\"reusable-query-snippets\",\"multiple-export-options\"]`,children:[_jsx(_components.p,{children:`Ask Athena to generate SQL, review the query, and run it against a connected database.`}),_jsx(Frame,{caption:`Natural Language to SQL`,children:_jsx(OptimizedFrame,{title:`vimeo-player`,src:`https://player.vimeo.com/video/1103130215`,width:`640`,height:`360`,frameborder:`0`,referrerpolicy:`strict-origin-when-cross-origin`,allow:`autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share`,allowfullscreen:true})}),_jsx(Frame,{caption:`Database Agent - Natural Language Querying`,children:_jsx(OptimizedFrame,{title:`vimeo-player`,src:`https://player.vimeo.com/video/1051686193`,width:`640`,height:`360`,frameborder:`0`,referrerpolicy:`strict-origin-when-cross-origin`,allow:`autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share`,allowfullscreen:true})}),_jsx(`video`,{autoPlay:true,muted:true,loop:true,playsInline:true,className:`mint-w-full mint-aspect-video`,src:`https://mintcdn.com/athenaintelligence-e46bc9d3/XOzR0DdNhB1vkjEH/images/query-video.mp4?fit=max\u0026auto=format\u0026n=XOzR0DdNhB1vkjEH\u0026q=85\u0026s=1d26e128f818e593fcaf4742ab62e364`,\"data-path\":`images/query-video.mp4`}),_jsx(Heading,{level:`2`,id:`key-features`,children:`Key Features`}),_jsx(Heading,{level:`3`,id:`query-generation`,children:`Query Generation`}),_jsx(_components.p,{children:`Describe the result you want in chat. Athena writes the SQL for your connected database, and you review it before it runs.`}),_jsxs(_components.p,{children:[`For example, with an `,_jsx(_components.code,{children:`orders`}),` table like this:`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`order_id`}),_jsx(_components.th,{children:`customer`}),_jsx(_components.th,{children:`order_date`}),_jsx(_components.th,{children:`amount`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1001`}),_jsx(_components.td,{children:`Harbor Line`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-09-04`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1200.00`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1002`}),_jsx(_components.td,{children:`Summit Haulage`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-09-18`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`800.00`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1003`}),_jsx(_components.td,{children:`Harbor Line`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-10-02`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`450.00`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`1004`}),_jsx(_components.td,{children:`Lakeside Foods`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-10-11`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1350.00`})]})]})]}),_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`text`,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:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`From the orders table, show total revenue by month for September and October 2026. Read only; don't change any data.`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),_jsx(_MdxComponentBoundary,{name:`AskAthena`,children:_jsx(AskAthena,{prompt:`From the orders table, show total revenue by month for September and October 2026. Read only; don't change any data.`})}),_jsx(_components.p,{children:`Athena proposes a read-only query:`}),_jsx(CodeBlock,{filename:``,numberOfLines:`6`,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:`6`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`SELECT`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` date_trunc(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`'month'`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, order_date) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` month`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:` SUM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(amount) `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`AS`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` revenue`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`FROM`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` orders`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`WHERE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` order_date `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`>=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2026-09-01'`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` AND`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` order_date `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '2026-11-01'`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`GROUP BY`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`ORDER BY`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`]})})}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`month`}),_jsx(_components.th,{children:`revenue`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-09-01`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`2000.00`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`2026-10-01`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1800.00`})]})]})]}),_jsx(Heading,{level:`3`,id:`reusable-query-snippets`,children:`Reusable Query Snippets`}),_jsx(_components.p,{children:`Save your query snippets as Athena assets to access them in Spaces or execute them directly within Athena notebooks, streamlining data accessibility across applications.`}),_jsx(Heading,{level:`3`,id:`multiple-export-options`,children:`Multiple Export Options`}),_jsx(_components.p,{children:`Download your query results in various formats including CSV, Excel, and PDF, facilitating easy sharing and further analysis.`})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{AskAthena,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":{"config":{},"pageMetadata":{"title":"Generate and Run SQL Queries with Athena","sidebarTitle":"Query","description":"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.","href":"/docs/pillars/applications/query"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[145,847,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"Key Features","slug":"key-features","depth":2,"children":[{"title":"Query Generation","slug":"query-generation","depth":3,"children":[],"tabId":"overview"},{"title":"Reusable Query Snippets","slug":"reusable-query-snippets","depth":3,"children":[],"tabId":"overview"},{"title":"Multiple Export Options","slug":"multiple-export-options","depth":3,"children":[],"tabId":"overview"}],"tabId":"overview"}],"codeExamples":{}},"jsLinks":[],"dynamicCss":".mint-mb-4 {\n margin-bottom: 1rem\n}\n.mint-inline-flex {\n display: inline-flex\n}\n.mint-aspect-video {\n aspect-ratio: 16 / 9\n}\n.mint-w-full {\n width: 100%\n}\n.mint-items-center {\n align-items: center\n}\n.mint-gap-1\\.5 {\n gap: 0.375rem\n}\n.mint-rounded-lg {\n border-radius: 0.5rem\n}\n.mint-border {\n border-width: 1px\n}\n.mint-border-zinc-950\\/10 {\n border-color: rgb(9 9 11 / 0.1)\n}\n.mint-px-3 {\n padding-left: 0.75rem;\n padding-right: 0.75rem\n}\n.mint-py-1\\.5 {\n padding-top: 0.375rem;\n padding-bottom: 0.375rem\n}\n.mint-text-sm {\n font-size: 0.875rem;\n line-height: 1.25rem\n}\n.mint-font-medium {\n font-weight: 500\n}\n.mint-text-zinc-900 {\n --tw-text-opacity: 1;\n color: rgb(24 24 27 / var(--tw-text-opacity, 1))\n}\n.mint-no-underline {\n text-decoration-line: none\n}\n.hover\\:mint-border-zinc-950\\/20:hover {\n border-color: rgb(9 9 11 / 0.2)\n}\n.dark\\:mint-border-white\\/10:is(.dark *) {\n border-color: rgb(255 255 255 / 0.1)\n}\n.dark\\:mint-text-zinc-100:is(.dark *) {\n --tw-text-opacity: 1;\n color: rgb(244 244 245 / var(--tw-text-opacity, 1))\n}\n.dark\\:hover\\:mint-border-white\\/20:hover:is(.dark *) {\n border-color: rgb(255 255 255 / 0.2)\n}","subdomain":"athenaintelligence-e46bc9d3","siteName":"Athena Intelligence","title":"Generate and Run SQL Queries with Athena - Athena Intelligence","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-15T22:29:04.021Z","originalFileLocation":"docs/pillars/applications/query.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=\"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Athena Intelligence\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Generate and Run SQL Queries with Athena - Athena Intelligence\">\u003cmeta data-mint-head property=\"og:description\" content=\"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Athena Intelligence Resources\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://resources.athenaintel.com/docs/pillars/applications/query\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://athenaintelligence-e46bc9d3.mintlify.site/_mintlify/api/og/v2?division=Query+and+notebooks\u0026amp;title=Generate+and+Run+SQL+Queries+with+Athena\u0026amp;description=Athena+Query+covers+SQL+generation+through+chat%2C+reusable+query+snippets+saved+as+assets%2C+notebook+execution%2C+and+exporting+results+to+CSV%2C+Excel%2C+or+PDF.\u0026amp;theme=692eba9931074377c6a39e73\u0026amp;signature=0bd81d51b20a1a7f9e6aa15b21407ef5c86ecbc089211247b4bc10093c4848dd\">\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=\"Generate and Run SQL Queries with Athena - Athena Intelligence\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://athenaintelligence-e46bc9d3.mintlify.site/_mintlify/api/og/v2?division=Query+and+notebooks\u0026amp;title=Generate+and+Run+SQL+Queries+with+Athena\u0026amp;description=Athena+Query+covers+SQL+generation+through+chat%2C+reusable+query+snippets+saved+as+assets%2C+notebook+execution%2C+and+exporting+results+to+CSV%2C+Excel%2C+or+PDF.\u0026amp;theme=692eba9931074377c6a39e73\u0026amp;signature=0bd81d51b20a1a7f9e6aa15b21407ef5c86ecbc089211247b4bc10093c4848dd\">\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/athenaintelligence-e46bc9d3/WXQ66JSnEilLuheu/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Athena Intelligence\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#283636\">\u003clink data-mint-head rel=\"canonical\" href=\"https://resources.athenaintel.com/docs/pillars/applications/query\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/pillars/applications/query.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://resources.athenaintel.com/#organization\",\"name\":\"Athena Intelligence\",\"url\":\"https://resources.athenaintel.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/athenaintelligence-e46bc9d3/uHIRzQcn8b73jJ6H/logo/dark.png?fit=max\u0026auto=format\u0026n=uHIRzQcn8b73jJ6H\u0026q=85\u0026s=c6d99fd8135dd337209bcd2ec1e63c8c\"}},{\"@type\":\"WebSite\",\"@id\":\"https://resources.athenaintel.com#website\",\"name\":\"Athena Intelligence\",\"url\":\"https://resources.athenaintel.com\",\"publisher\":{\"@id\":\"https://resources.athenaintel.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://resources.athenaintel.com/docs/pillars/applications/query#webpage\",\"url\":\"https://resources.athenaintel.com/docs/pillars/applications/query\",\"name\":\"Generate and Run SQL Queries with Athena\",\"description\":\"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\",\"dateModified\":\"2026-10-15T22:29:04.021Z\",\"isPartOf\":{\"@id\":\"https://resources.athenaintel.com#website\"},\"breadcrumb\":{\"@id\":\"https://resources.athenaintel.com/docs/pillars/applications/query#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://resources.athenaintel.com/docs/pillars/applications/query#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Athena Intelligence\",\"item\":\"https://resources.athenaintel.com\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Generate and Run SQL Queries with Athena\",\"item\":\"https://resources.athenaintel.com/docs/pillars/applications/query\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://resources.athenaintel.com/docs/pillars/applications/query#article\",\"headline\":\"Generate and Run SQL Queries with Athena\",\"name\":\"Generate and Run SQL Queries with Athena\",\"description\":\"Athena Query covers SQL generation through chat, reusable query snippets saved as assets, notebook execution, and exporting results to CSV, Excel, or PDF.\",\"url\":\"https://resources.athenaintel.com/docs/pillars/applications/query\",\"mainEntityOfPage\":{\"@id\":\"https://resources.athenaintel.com/docs/pillars/applications/query#webpage\"},\"dateModified\":\"2026-10-15T22:29:04.021Z\",\"publisher\":{\"@id\":\"https://resources.athenaintel.com/#organization\"},\"isPartOf\":{\"@id\":\"https://resources.athenaintel.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Athena Intelligence\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Athena Intelligence\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/pillars/applications/query.md","siteName":"Athena Intelligence","nav":{"global":{"anchors":[{"anchor":"Website","href":"https://athenaintel.com/","icon":"globe"},{"anchor":"Blog","href":"https://blog.athenaintel.com/","icon":"newspaper"}]},"tabs":[{"tab":"Docs","groups":[{"group":"Get started","pages":[{"title":"Athena and Olympus overview","href":"/docs/getting-started"},{"title":"Your First Chat with Athena","sidebarTitle":"Your First Chat","href":"/docs/getting-started/your-first-chat"},{"title":"Your first workflow","href":"/docs/getting-started/your-first-workflow"},{"title":"Athena Keyboard Shortcuts for Windows and Mac","sidebarTitle":"Keyboard Shortcuts","href":"/docs/getting-started/keyboard-shortcuts"},{"title":"Athena Glossary: Key Terms Defined","sidebarTitle":"Glossary","href":"/docs/getting-started/glossary"},{"title":"Athena FAQ: Common Questions Answered","sidebarTitle":"FAQ","href":"/docs/getting-started/faq"}]},{"group":"Core concepts","pages":[{"title":"Concepts","href":"/docs/concepts"},{"title":"Athena Spaces and Assets: Organize Your Work","sidebarTitle":"Spaces \u0026 Assets","href":"/docs/pillars/concepts/spaces-and-assets"},{"title":"Athena and Olympus","sidebarTitle":"Athena and Olympus","href":"/docs/getting-started/athena-olympus"},{"title":"Athena Agents: Custom AI Assistants","sidebarTitle":"Agents","href":"/docs/agents/athena-agents"},{"title":"Athena Agent Teams and Multi-Agent Workflows","sidebarTitle":"Agent Teams in Athena","href":"/docs/agents/agent-teams"},{"title":"Workflow automation","href":"/docs/pillars/concepts/workflows"}]},{"group":"Work with Athena","pages":[{"title":"Chat","sidebarTitle":"Chat","href":"/docs/pillars/applications/chat"},{"title":"Approvals for a session","sidebarTitle":"Session approvals","href":"/docs/pillars/applications/session-approvals"},{"title":"Automatic asset toolkits","sidebarTitle":"Automatic toolkits","href":"/docs/pillars/applications/automatic-asset-toolkits"},{"title":"Choosing your next message","sidebarTitle":"Next message suggestions","href":"/docs/pillars/applications/choosing-your-next-message"},{"title":"Session run configuration","sidebarTitle":"Run configuration","href":"/docs/pillars/applications/session-run-configuration"},{"title":"Today and Daily Brief","sidebarTitle":"Today and Daily Brief","href":"/docs/pillars/applications/today-and-daily-brief"},{"group":"Tools and toolkits","pages":[{"title":"Configure tools and agent access","sidebarTitle":"Tools","href":"/docs/pillars/contextual-knowledge/tools"},{"title":"Toolkit reference","sidebarTitle":"Toolkit reference","href":"/docs/pillars/contextual-knowledge/toolkit-reference"}]},{"group":"Projects and knowledge","pages":[{"title":"Athena Projects: Organize Assets and Teamwork","sidebarTitle":"Projects","href":"/docs/pillars/contextual-knowledge/projects"},{"title":"Knowledge Base: Long-Term Memory for Agents","sidebarTitle":"Knowledge Base","href":"/docs/pillars/contextual-knowledge/knowledge-base"},{"title":"Ontology, Object Explorer, and the Ontology Toolkit","sidebarTitle":"Ontology","href":"/docs/pillars/contextual-knowledge/ontology"},{"title":"Workbench: Project Context for Athena Agents","sidebarTitle":"Workbench","href":"/docs/pillars/contextual-knowledge/workbench"},{"title":"Organize Athena Assets: Folders and Catalogs","sidebarTitle":"Asset Organization","href":"/docs/pillars/contextual-knowledge/asset-organization"},{"title":"Athena Citations and Links to Source Content","sidebarTitle":"Citations \u0026 Deep Linking","href":"/docs/pillars/contextual-knowledge/citations-deep-linking"},{"title":"Search Athena Documentation from Any Chat","sidebarTitle":"Ask Athena Docs","href":"/docs/pillars/contextual-knowledge/ask-athena-docs"}]},{"group":"Memory","pages":[{"title":"Athena Agent Memories and Conversation History","sidebarTitle":"Memories","href":"/docs/pillars/contextual-knowledge/memories"},{"title":"Your personal memory and privacy","sidebarTitle":"Personal memory and privacy","href":"/docs/pillars/contextual-knowledge/personal-memory-and-privacy"}]},{"group":"Find and share","pages":[{"title":"Find assets by creator and browse your files","sidebarTitle":"Find and browse files","href":"/docs/pillars/applications/find-assets-browse-files"},{"title":"Share a working set of assets","sidebarTitle":"Share open assets","href":"/docs/pillars/applications/share-working-set-assets"},{"title":"Quick Actions in Athena","sidebarTitle":"Quick Actions","href":"/docs/getting-started/quick-actions"}]}]},{"group":"Connect your data","pages":[{"title":"Connect Your Data","sidebarTitle":"Connect Your Data","href":"/docs/connect-your-data"},{"title":"Athena Integrations: Data, Files, Chat and CRM","sidebarTitle":"All Integrations","href":"/docs/connect-your-data/all-integrations"},{"group":"Files and storage","pages":[{"title":"Live Assets: Use External Data Without Copying","sidebarTitle":"Live Assets","href":"/docs/connect-your-data/live-assets"},{"title":"Upload Files and Folder Structures to Athena","sidebarTitle":"Direct Import","href":"/docs/connect-your-data/import"},{"title":"Connect SharePoint to Athena: File Access","sidebarTitle":"SharePoint","href":"/docs/connect-your-data/sharepoint"},{"title":"SharePoint Admin Setup: Microsoft 365 App Registration","sidebarTitle":"SharePoint","href":"/docs/connect-your-data/o365"},{"title":"Connect OneDrive to Athena: File Access","sidebarTitle":"OneDrive","href":"/docs/connect-your-data/onedrive"},{"title":"Connect Azure Blob Storage to Athena","sidebarTitle":"Azure Blob Storage","href":"/docs/integrations/azure-blob"}]},{"group":"Databases and warehouses","pages":[{"title":"Connect Snowflake to Athena","sidebarTitle":"Snowflake","href":"/docs/connect-your-data/snowflake"},{"title":"Connect BigQuery to Athena: Google Sign-In","sidebarTitle":"BigQuery","href":"/docs/integrations/bigquery"},{"title":"Connect PostgreSQL to Athena: Database Setup","sidebarTitle":"Postgres","href":"/docs/connect-your-data/postgres"},{"title":"Connect Azure SQL to Athena: Entra ID Setup","sidebarTitle":"Azure SQL","href":"/docs/integrations/azure-sql"},{"title":"Connect Databricks to Athena: SQL Access and Genie One","sidebarTitle":"Databricks","href":"/docs/integrations/databricks"},{"title":"Sync Databricks data into the lakehouse","sidebarTitle":"Databricks lakehouse sync","href":"/docs/integrations/databricks-lakehouse-sync"},{"title":"Export complete Databricks Genie results","sidebarTitle":"Genie result exports","href":"/docs/integrations/databricks-genie-export"},{"title":"Connect Power BI to Athena: Reports and DAX","sidebarTitle":"Power BI","href":"/docs/integrations/powerbi"},{"title":"Connect Reltio to Athena: Profiles, Matches, and Setup","sidebarTitle":"Reltio","href":"/docs/integrations/reltio"},{"title":"Connect Prometheus to Athena: Metrics Queries","sidebarTitle":"Prometheus","href":"/docs/integrations/prometheus"}]},{"group":"Work tools","pages":[{"title":"Connect GitHub to Athena: Repository Access","sidebarTitle":"GitHub","href":"/docs/integrations/github"},{"title":"Connect Jira to Athena: Issue Search and Setup","sidebarTitle":"Jira","href":"/docs/integrations/jira"},{"title":"Connect Confluence to Athena: Pages and Search","sidebarTitle":"Confluence","href":"/docs/integrations/confluence"},{"title":"Connect Azure DevOps to Athena: Work Items","sidebarTitle":"Azure DevOps","href":"/docs/integrations/azure-devops"},{"title":"Connect Microsoft Teams to Athena","sidebarTitle":"Microsoft Teams","href":"/docs/integrations/microsoft-teams"},{"title":"Use Athena agents in Microsoft Teams","sidebarTitle":"Athena in Teams","href":"/docs/integrations/athena-in-teams"},{"title":"Connect Slack to Athena: Apps and Messaging","sidebarTitle":"Slack","href":"/docs/connect-your-data/slack"},{"title":"Connect Salesforce to Athena: Records, SOQL, and Setup","sidebarTitle":"Salesforce","href":"/docs/integrations/salesforce"},{"title":"Connect ServiceNow to Athena: Records, Knowledge, and Setup","sidebarTitle":"ServiceNow","href":"/docs/integrations/servicenow"},{"title":"Draw diagrams with draw.io in Athena: setup, tools, and data handling","sidebarTitle":"draw.io","href":"/docs/integrations/drawio"},{"title":"Connect Mixpanel to Athena: service account, credentials, and setup","sidebarTitle":"Mixpanel","href":"/docs/integrations/mixpanel"},{"title":"Connect Zephyr Enterprise to Athena: Test Cases, Executions, and Setup","sidebarTitle":"Zephyr Enterprise","href":"/docs/integrations/zephyr-enterprise"},{"title":"Athena for Office: Deploy the Excel, Word and PowerPoint Add-in","sidebarTitle":"Microsoft Office Add-ins","description":"Deploy the Athena add-in for Excel, Word, and PowerPoint, configure Microsoft 365 access, and connect users to their Olympus workspace.","href":"/docs/pillars/applications/microsoft-365-add-in"}]}]},{"group":"Analyze and create","pages":[{"group":"Query and notebooks","pages":[{"title":"Generate and Run SQL Queries with Athena","sidebarTitle":"Query","href":"/docs/pillars/applications/query"},{"title":"Athena Notebooks for Data Analysis and Code","sidebarTitle":"Notebooks","description":"Athena Notebooks supports Jupyter-based analysis, code assistance, Excel and CSV datasets, interactive figures, and SDK use without API key setup.","href":"/docs/pillars/applications/notebooks"},{"title":"Run SQL queries in an Athena notebook","href":"/docs/pillars/applications/query-in-notebook"}]},{"group":"Lakehouse","pages":[{"title":"Working with lakehouse data","sidebarTitle":"Lakehouse data","href":"/docs/pillars/applications/lakehouse-data"},{"title":"Create a semantic model from lakehouse tables","sidebarTitle":"Lakehouse semantic models","href":"/docs/pillars/applications/lakehouse-semantic-model"},{"title":"Operate lakehouse transforms and pipelines","sidebarTitle":"Transforms and pipelines","href":"/docs/pillars/applications/lakehouse-transforms-pipelines"}]},{"group":"Web research","pages":[{"title":"Athena Browser: Automate Chrome Web Tasks","sidebarTitle":"Browser","href":"/docs/pillars/applications/browser"},{"title":"Athena Web Toolkit: Search and Extract Content","sidebarTitle":"Web Toolkit","href":"/docs/pillars/applications/web-toolkit"}]},{"group":"Charts and canvases","pages":[{"title":"Create Athena Charts, Figures and Dashboards","sidebarTitle":"Visualizations","href":"/docs/pillars/applications/visualizations"},{"title":"Athena Canvas for Collaborative Brainstorming","sidebarTitle":"Canvas","href":"/docs/pillars/applications/canvas"},{"title":"Mermaid Diagrams","sidebarTitle":"Mermaid Diagrams","href":"/docs/pillars/applications/mermaid-diagrams"}]},{"group":"Images and video","pages":[{"title":"Image Generation","sidebarTitle":"Image Generation","href":"/docs/pillars/applications/image-generation"},{"title":"Video Generation","sidebarTitle":"Video Generation","href":"/docs/pillars/applications/video-generation"}]},{"group":"Documents and Word","pages":[{"title":"Create and Edit Documents with Athena Docs","sidebarTitle":"Docs","href":"/docs/pillars/applications/docs"},{"title":"Dictate comments on a selection","sidebarTitle":"Dictate comments","href":"/docs/pillars/applications/dictate-selection-comments"},{"title":"Format and navigate Word documents","sidebarTitle":"Word formatting and navigation","href":"/docs/pillars/applications/word-formatting-navigation"},{"title":"Export documents to Word","sidebarTitle":"Export to Word","href":"/docs/pillars/applications/export-documents-to-word"},{"title":"Read attachments inside Word and PDF files","sidebarTitle":"Read embedded attachments","href":"/docs/pillars/applications/read-word-pdf-attachments"}]},{"group":"Spreadsheets and SharePoint","pages":[{"title":"Athena Sheets: Formulas, AOPs and Citations","sidebarTitle":"Sheets","href":"/docs/pillars/applications/sheets"},{"title":"Compare spreadsheets change by change","sidebarTitle":"Compare spreadsheet changes","href":"/docs/pillars/applications/compare-spreadsheet-changes"},{"title":"Edit and save SharePoint spreadsheets","sidebarTitle":"Save SharePoint spreadsheets","href":"/docs/pillars/applications/edit-save-sharepoint-spreadsheets"},{"title":"Review SharePoint changes and version history","sidebarTitle":"SharePoint changes and history","href":"/docs/pillars/applications/sharepoint-changes-version-history"}]},{"group":"Presentations","pages":[{"title":"Create and Edit Slide Decks with Athena","sidebarTitle":"Presentations","href":"/docs/pillars/applications/presentations"},{"title":"Design System assets","sidebarTitle":"Design Systems","href":"/docs/pillars/applications/design-systems"}]}]},{"group":"Automate","pages":[{"group":"AOPs","pages":[{"title":"AOPs: Reusable workflows","sidebarTitle":"AOPs","href":"/docs/pillars/applications/aops"},{"group":"AOPs in depth course","pages":[{"title":"AOPs in depth","sidebarTitle":"AOPs in depth","href":"/docs/courses/aops-in-depth/index"},{"title":"Pick the right trigger","sidebarTitle":"01 · Pick the right trigger","href":"/docs/courses/aops-in-depth/01-pick-the-right-trigger"},{"title":"Files and data","sidebarTitle":"02 · Files and data","href":"/docs/courses/aops-in-depth/02-files-and-data"},{"title":"Smarter run forms","sidebarTitle":"03 · Smarter run forms","href":"/docs/courses/aops-in-depth/03-smarter-run-forms"},{"title":"Know when it finishes","sidebarTitle":"04 · Know when it finishes","href":"/docs/courses/aops-in-depth/04-know-when-it-finishes"},{"title":"Chain AOPs and monitor them","sidebarTitle":"05 · Chain AOPs and monitor them","href":"/docs/courses/aops-in-depth/05-chain-aops-and-monitor-them"}]}]},{"group":"Automations","pages":[{"title":"Automations","sidebarTitle":"Automations","href":"/docs/pillars/applications/automations"},{"title":"Automation approvals","sidebarTitle":"Approvals","href":"/docs/pillars/applications/automation-approvals"},{"title":"Automation run history","sidebarTitle":"Run history","href":"/docs/pillars/applications/automation-run-history"},{"title":"Automation budgets","sidebarTitle":"Budgets","href":"/docs/pillars/applications/automation-budgets"}]},{"group":"Computers","pages":[{"title":"Computer: Build and deploy applications","sidebarTitle":"Computer","href":"/docs/pillars/applications/computer"},{"title":"Computer files and terminals","sidebarTitle":"Files and terminals","href":"/docs/pillars/applications/computer-files-and-terminals"},{"title":"Computer sleep and inactivity","sidebarTitle":"Sleep and inactivity","href":"/docs/pillars/applications/computer-sleep-and-inactivity"},{"title":"Understand Computer spending","sidebarTitle":"Computer spending","href":"/docs/pillars/applications/computer-spending"}]},{"group":"Apps","pages":[{"title":"Build Athena User Interfaces and Dashboards","sidebarTitle":"User Interfaces","href":"/docs/pillars/applications/user-interfaces"},{"title":"Manage application releases","sidebarTitle":"Application releases","href":"/docs/pillars/applications/manage-application-releases"},{"title":"Athena-managed databases","sidebarTitle":"Databases","href":"/docs/pillars/applications/databases"}]}]},{"group":"Meetings, email and voice","pages":[{"title":"Athena Meetings: Calendar, Recording and Analysis","sidebarTitle":"Meetings \u0026 Calendar","href":"/docs/pillars/applications/meeting"},{"title":"Meeting speakers and your voice profile","sidebarTitle":"Speakers and voice profile","href":"/docs/pillars/applications/meeting-speakers-and-voice-profile"},{"title":"Connect Gmail and Outlook to Athena","sidebarTitle":"Email","href":"/docs/pillars/applications/email-athena"},{"title":"Connecting Outlook to Athena: Admin Approval Process","sidebarTitle":"Outlook","href":"/docs/pillars/applications/connect-outlook"},{"title":"Athena Inbox: Review Agent Sessions and Approvals","sidebarTitle":"Inbox","href":"/docs/pillars/applications/inbox"},{"title":"Contact Athena by SMS, Slack and Phone","sidebarTitle":"Channels","href":"/docs/pillars/applications/channels"},{"title":"Athena Voice Commands and Speech Transcription","sidebarTitle":"Voice","href":"/docs/pillars/applications/voice"},{"title":"Voice sessions that wait for you","sidebarTitle":"Voice silent start","href":"/docs/pillars/applications/voice-silent-start"}]},{"group":"Account, security and apps","pages":[{"title":"Your Account","sidebarTitle":"Your Account","href":"/docs/your-account"},{"title":"Available models","sidebarTitle":"Available models","href":"/docs/your-account/available-models"},{"title":"Reasoning effort and fast service tiers","sidebarTitle":"Reasoning and speed","href":"/docs/your-account/reasoning-effort-and-fast-service-tiers"},{"title":"Credits and prepaid billing","sidebarTitle":"Credits and billing","href":"/docs/your-account/credits-and-prepaid-billing"},{"title":"Automatic recharge","sidebarTitle":"Automatic recharge","href":"/docs/your-account/automatic-recharge"},{"title":"Payments, receipts and the billing portal","sidebarTitle":"Payments and receipts","href":"/docs/your-account/payments-receipts-and-billing-portal"},{"title":"Request Account Access and Log In to Athena","sidebarTitle":"Setup \u0026 Access","href":"/docs/getting-started/setup-and-access"},{"title":"SSO for Athena: SAML, OIDC and SCIM Setup","sidebarTitle":"SSO","href":"/docs/getting-started/sso"},{"title":"Athena Security and Data Handling","sidebarTitle":"Security \u0026 Data Handling","href":"/docs/getting-started/security-and-data-handling"},{"title":"Workspace tool policy","sidebarTitle":"Tool Registry","href":"/docs/getting-started/tool-registry"},{"title":"Audit records","sidebarTitle":"Audit records","href":"/docs/getting-started/audit-records"},{"title":"Legal holds and retention","sidebarTitle":"Legal holds and retention","href":"/docs/getting-started/legal-holds-and-retention"},{"group":"Desktop and mobile","pages":[{"title":"Athena Sentry: Desktop Recording and Voice","sidebarTitle":"Athena Sentry","href":"/docs/pillars/applications/desktop-sentry"},{"title":"Add Athena to Your iOS or Android Home Screen","sidebarTitle":"Athena for Mobile Devices","href":"/docs/mobile/athena-for-mobile"},{"title":"Mobile inbox, assets, and projects","sidebarTitle":"Inbox, assets, and projects","href":"/docs/mobile/inbox-assets-and-projects"}]}]}]},{"tab":"Athena 101","pages":[{"title":"Athena 101","href":"/docs/athena-101"}]},{"tab":"Use cases","pages":[{"title":"Use cases","href":"/docs/use-cases/athena-for-enterprise"}]},{"tab":"AI guides","pages":[{"title":"AI guides","href":"/docs/ai-guides"}]},{"tab":"Developers","pages":[{"title":"Developers","href":"/docs/developer-integrations/sdk-quickstart"}]}]},"basePath":"","title":"Generate and Run SQL Queries with Athena - Athena Intelligence","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["07c022d89b"],"chunks":["Frame-BXrZabKK.js","DynamicMarkdown-CtasenyM.js"]}