I assume you borrowed this from the code for fetching concepts by mapping and i think we can differ from it here by making Drug the root entity here for more clarity and just join to the DrugReferenceMap