Task: Text to Code
Input (English): select the rows whose played record is equal to 27 . the maximum position record of these rows is 12th . the competition record of the row with superlative position record is super league xiv .
Output (English): and { eq { max { filter_eq { all_rows ; played ; 27 } ; position } ; 12th } ; eq { hop { argmax { filter_eq { all_rows ; played ; 27 } ; position } ; competition } ; super league xiv } }