@staticmethod
def _and_query(query1, query2):
    """
        Take to dictionary and return a dictionary containing the two queries in AND operation.

        :param query1: a dictionary containing the a query to put in AND
        :param query2: a dictionary containing the a query to put in AND
        :return: a new dictionary with the two queries in AND
        """
    query_ret = {'type': 'composite', 'conditions': []}
    query_ret['conditions'].append(query1)
    query_ret['conditions'].append(query2)
    query_ret['conjunction'] = 'and'
    return query_ret
