Some ideas on how to filter objects with dynamic attributes (in SQL)