Modify return strategy for get_type_by_query

If top 3 his include profession, return profession,
or else return top hit