'Return an AND clause combining all queries'

@classmethod
def create_boolean_query(cls, queries):

    if (len(queries) > 1):
        bq = '    AND        '.join([('(%s)' % q) for q in queries])
    else:
        bq = queries[0]
    return bq
