sketch of instance retrieval by trait