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