sql_filter function exists validation