Task: Text to Code
Input (English): select the row whose average record of all rows is maximum . the player record of this row is andrew caddick .
Output (English): eq { hop { argmax { all_rows ; average } ; player } ; andrew caddick }