You can create queries through any of the following interfaces:
The query optimizer optimizes all of the queries that you create using these interfaces.