Task: Text to Code
Input (English): select the rows whose ends won record is less than 50 . the 1st maximum stolen ends record of these rows is 14 . the locale record of the row with 1st maximum stolen ends record is germany .
Output (English): and { eq { nth_max { filter_less { all_rows ; ends won ; 50 } ; stolen ends ; 1 } ; 14 } ; eq { hop { nth_argmax { filter_less { all_rows ; ends won ; 50 } ; stolen ends ; 1 } ; locale } ; germany } }