Select best matching reference field for foreign key annotated fields