Advanced queries and athlete encoding