Task: Text to Code
Input (English): the maximum weight record of all rows is 247 . the name record of the row with superlative weight record is matt kleinmann .
Output (English): and { eq { max { all_rows ; weight } ; 247 } ; eq { hop { argmax { all_rows ; weight } ; name } ; matt kleinmann } }