select distinct and select distinctOn
support entities with no fields