> For the complete documentation index, see [llms.txt](https://docs.e6data.com/product-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.e6data.com/product-documentation/sql-command-reference/query-syntax.md).

# Query Syntax

```sql
[ WITH ... ]
SELECT
   [TOP] ... [EXCEPT]
[ FROM ...
   [ JOIN ... ]
   [ VALUES ... ] 
]
[ WHERE ... ]
[ GROUP BY ...
   [ HAVING ... ] ]
[ ORDER BY ... [ NULLS FIRST | NULLS LAST ]]
[ LIMIT ...[OFFSET] ]
```
