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