Returns the maximum element in an array <arr>.
<arr>
ARRAY_MAX(<arr>)
SELECT ARRAY_MAX([ 1, 2, 3, 4 ]) AS res;
Returns: 4
4