DatabaseQuery.SQLQuery

From Xojo Documentation

Property (As String )
aDatabaseQuery.SQLQuery = newStringValue
or
StringValue = aDatabaseQuery.SQLQuery

Supported for all project types and targets.

The text of the SQL query to be run against Database.