Function: max(min(numbers("xxr") if product(numbers("xxr"), numbers('xyy')) > numbers('xyy') else mean(product(numbers("xxr"), numbers('xyy')), numbers("xxr")), mean(product(numbers("xxr"), numbers('xyy')), numbers("xxr"))), mean(product(numbers("xxr"), numbers('xyy')), numbers("xxr")) if numbers("xxr") > product(numbers("xxr"), numbers('xyy')) else numbers('xyy'))