---
title: "Query Language Keywords & Reserved Words"
component: "gsql-ref"
version: "4.3"
module: "appendix"
html_url: "/gsql-ref/4.3/appendix/query-language-reserved-words"
canonical_url: "https://www.tigergraph.com/docs/gsql-ref/4.3/appendix/query-language-reserved-words"
markdown_url: "https://www.tigergraph.com/docs/gsql-ref/4.3/appendix/query-language-reserved-words.md"
---

[View as HTML](https://www.tigergraph.com/docs/gsql-ref/4.3/appendix/query-language-reserved-words)

# Query Language Keywords & Reserved Words

The page lists the reserved words and non-reserved keywords used in the GSQL query language.

There is a separate list for [DDL Keywords & Reserved Words](https://www.tigergraph.com/docs/gsql-ref/4.3/appendix/keywords-and-reserved-words.md). The compiler will reject the use of a Reserved Word as a user-defined identifier.

## Reserved words

The following words are reserved for use by the GSQL query language. That is a query may not use any of these words for a user-defined identifier such as the name of a local variable or a local `TUPLE` type. Some of them come from C++, which is a dependency for GSQL.

You should also not use words from the following lists to name vertex or edge types. While GSQL does not raise an error when you define the types, you will not be able to reference the types in a query.

C++ reserved words

* ALIGNAS
* ALIGNOF
* AND
* AND\_EQ
* ASM
* AUTO
* BITAND
* BITOR
* BOOL
* BREAK
* CASE
* CATCH
* CHAR
* CHAR16\_T
* CHAR32\_T
* CLASS
* COMPL
* CONCEPT
* CONST
* CONSTEXPR
* CONST\_CAST
* CONTINUE
* DECLTYPE
* DEFAULT
* DELETE
* DO
* DOUBLE
* DYNAMIC\_CAST
* ELSE
* ENUM
* EXPLICIT
* EXPORT
* EXTERN
* FALSE
* FLOAT
* FOR
* FRIEND
* GOTO
* IF
* INLINE
* INT
* LONG
* MUTABLE
* NAMESPACE
* NEW
* NOEXCEPT
* NO\_TRANSLATION\_EID\_TO\_IID
* NOT
* NOT\_EQ
* NULLPTR
* OPERATOR
* OR
* OR\_EQ
* PRIVATE
* PROTECTED
* PUBLIC
* REGISTER
* REINTERPRET\_CAST
* REQUIRES
* RETURN
* SHORT
* SIGNED
* SIZEOF
* STATIC
* STATIC\_ASSERT
* STATIC\_CAST
* STRUCT
* SWITCH
* TEMPLATE
* THIS
* THREAD\_LOCAL
* THROW
* TRUE
* TRY
* TYPEDEF
* TYPEID
* TYPENAME
* UNION
* UNSIGNED
* USING
* VIRTUAL
* VOID
* VOLATILE
* WCHAR\_T
* WHILE
* XOR
* XOR\_EQ

GSQL reserved words

* ACCUM
* AND
* ANY
* API
* AS
* ASC
* AVG
* BAG
* BATCH
* BETWEEN
* BOOL
* BOTH
* BREAK
* CASE
* CATCH
* COALESCE
* COMPRESS
* CONTINUE
* COUNT
* CREATE
* DATETIME
* DATETIME\_ADD
* DATETIME\_SUB
* DELETE
* DESC
* DISTRIBUTED
* DO
* DOUBLE
* EDGE
* ELSE
* END
* ESCAPE
* EXCEPTION
* FALSE
* FILTER
* FLOAD
* FOR
* FOREACH
* FROM
* GRAPH
* HAVING
* IF
* IN
* INT
* INTERPRET
* INTERSECT
* INTERVAL
* INTO
* IS
* ISEMPTY
* JSONARRAY
* JSONOBJECT
* LEADING
* LIKE
* LIMIT
* LOADACCUM
* MAX
* MIN
* MINUS
* NOT
* NULL
* OFFSET
* OR
* ORDER
* PINNED
* POST\_ACCUM
* PRIMARY\_ID
* PRINT
* QUERY
* RAISE
* RANGE
* RETURN
* RETURNS
* RUN
* SAMPLE
* SELECT
* SELECTVERTEX
* SET
* STATIC
* STRING
* SUM
* SYNTAX
* TARGET
* TAGS
* THEN
* TO
* TO\_CSV
* TRAILING
* TRIM
* TRUE
* TRY
* TUPLE
* TYPEDEF
* UINT
* UNION
* VALUES
* VERTEX
* WHEN
* WHILE
* WITH
* GSQL\_INT\_MAX
* GSQL\_INT\_MIN
* GSQL\_UINT\_MAX
* RESET\_COLLECTION\_ACCUM

## Non-reserved keywords

These keywords in the language are non-reserved so users may use them for user-defined identifiers.

List of non-reserved keywords in the query language

* LIST
* MAP
* LOG
* NOW
* TO\_DATETIME
* UPDATE
* FILE
* PER
* PATH
* REPLACE
* MATCH
* SRC
* TGT
* LASTHOP
* GROUP
* BY
* COMMIT
* ABORT
* DISTINCT
* INSERT
