Function: square(numbers("xxr") if numbers('yxy') > numbers("xxr") else numbers('rep') if numbers('yxy') > min(numbers("xxr") if numbers('yxy') > numbers('rep') else numbers("xxr"), numbers('yxy')) else 2 *(min(numbers('yxy') if numbers("xxr") > numbers("xxr") else numbers('rep'), numbers('yxy'))))