def _cetp_sql_query_get(self, kwargs):
     '''
     Create SQL query according to the provided parameters or exclude them from statement
     :param kwargs: local_fqdn, remote_fqdn, direction, policy_name
     :return: SQL query
     '''
     kwargs = Validator.cetp_get_policies(**kwargs)
     query = "select types,policy_element from host_policies where uuid=(select uuid from host_policy_identity where local_fqdn='{}'{}{}){}".\
         format(kwargs['local_fqdn'], kwargs['remote_fqdn'], kwargs['direction'], kwargs['policy_name'])
     return query