--- title: "Reference overview" sidebar_label: "Reference Overview" description: "Complete language references for AML and AQL — syntax, types, functions, and error codes." slug: /reference --- This section is pure lookup material: syntax definitions, type signatures, function specs, and error codes for AML and AQL. For conceptual guides and how-tos, see [Analytics as Code](/as-code/aml/). ## AML Reference [AML (Analytics Modeling Language)](/reference/aml/) is the declarative language for defining your semantic layer — models, fields, datasets, relationships, dashboards, and more. - **[Overview](/reference/aml/)**: how the AML reference is organized and where to start - **[Quick Reference](/reference/aml/examples)**: side-by-side examples for common objects - **[Model](/reference/aml/model)**: table models and query models - **[Fields](/reference/aml/field)**: dimensions and measures - **[Dataset](/reference/aml/dataset)**: collections of models with relationships - **[Dashboard](/reference/aml/dashboard)**: dashboard-as-code definitions - **[Types](/reference/aml/types)**: the AML type system - **[Programmable Constructs](/reference/aml/constant)**: constants, functions, modules, extend, partial ## AQL Reference [AQL (Analytics Query Language)](/reference/aql/) is the expression language for querying AML models — used in metrics, filters, calculated fields, and dataset field definitions. - **[Overview](/reference/aql/)**: how the AQL reference is organized - **[Expressions](/reference/aql/expression)**: table, metric, and explore expressions - **[Operators](/reference/aql/operator)**: comparison, arithmetic, logical, and pipe operators - **[Types](/reference/aql/type-index)**: scalars, tables, dimensions, fields, and measures - **[Functions](/reference/aql/function)**: table functions, LOD functions, time-based functions, window functions, and inline functions - **[Functions Cheatsheet](/reference/aql/functions)**: every function in one scannable table - **[Error Reference](/reference/aql/error-reference)**: error codes and how to fix them