2.2.12.2 Query

An implementation of SharePoint Search SQL Syntax MUST support two statements:

Statements MUST be separated by semicolons. There MUST be exactly one SELECT statement in every SharePoint Search SQL query, and it MUST be the last statement. The query MUST NOT be longer than an implementation-defined number of Unicode characters. This length limit SHOULD be greater than 1024 characters.<18>

This is the top-level element of the grammar:

 query      =      *ws *(set-statement *ws ";" *ws) select-statement *ws