Task: Text to Code
Input (English): select the row whose 1st leg record of all rows is maximum . the team 1 record of this row is flamengo . the team 2 record of this row is américa .
Output (English): and { eq { hop { argmax { all_rows ; 1st leg } ; team 1 } ; flamengo } ; eq { hop { argmax { all_rows ; 1st leg } ; team 2 } ; américa } }