Task: Text to Code
Input (English): the 3rd maximum silver record of all rows is 42 . the rank record of the row with 3rd maximum silver record is 2 .
Output (English): and { eq { nth_max { all_rows ; silver ; 3 } ; 42 } ; eq { hop { nth_argmax { all_rows ; silver ; 3 } ; rank } ; 2 } }