validating references to entities and fields in select result list