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