Illustration of how we can use the conditions and calculations with categorical variables to determine the answer with maximum and minimum value, and ask additional question on this basis.
Of course you have to be very careful and concentrated to really include all the possibilities, especially in the case when two or more options are the same and we have to decide whether we will ask for all options, for the first or for randomly selected, or maybe even none.
The example below deals only with a maximum for APPLES. If apples are therefore the highest score, then the following additional sub-question appears to apples. You can do similar conditions for the rest of the fruits. You can also add additional conditions (eg. minimum 3 deals with a situation where there are more fruits rated with the same value, when some fruit is not rated ...). In this case the additional question appears only in the case when the rate for apples is greater then the rate for plums and pears (the remaining two were rated, not empty).