def _ces_sql_query_get(self, kwargs):
     '''
     Create SQL query according to the provided parameters or exclude them from statement
     :param kwargs: host_ces_id and protocol
     :return: SQL query
     '''
     kwargs = Validator.ces_get_policies(**kwargs)
     query = "select types,policy_element from ces_policies where uuid=(select uuid from ces_policy_identity where host_ces_id={} and protocol={})".\
         format(kwargs['host_ces_id'], kwargs['protocol'])
     return query