Correctly guard entities to only select those that have sql facet enabled