def limit_offset(builder):
    """
  helper function to append the limit and offset suffix
  :param builder: the current query builder
  :return:
  """
    return builder.append(' LIMIT {limit} OFFSET {offset}').replace('limit',
        int).replace('offset', int).arg('query')
