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