setQueryResultsLimit function

Set limit on returned query results