'Return a string representation of this query'

def __repr__(self):

    result = ['<', self.__class__.__name__, '>    query:', repr(self.query), '    ']
    if self.bq:
        result.append('    bq:')
        result.append(repr(self.bq))
        result.append('    ')
    if self.sort:
        result.append('sort:')
        result.append(self.sort)
    return ''.join(result)
