queries: entity replaced with entity reflection