getQueryResultsLimit function

Get the query result limit