Define Sets by Query, not just Type or Relation

Related: Advanced Filters / Queries