Improved queries for index of diets