queryLimitAndOffset
Returns the SQL command that limits and offsets the result of a query.
Parameters
size
The limit of rows to return.
offset
The number of rows to skip.
alreadyOrdered
Whether the query is already ordered or not.