Task: Text to Code
Input (English): select the rows whose locale record fuzzily matches to canada . take the ends won record of this row . select the rows whose locale record fuzzily matches to scotland . take the ends won record of this row . the first record is less than the second record .
Output (English): less { hop { filter_eq { all_rows ; locale ; canada } ; ends won } ; hop { filter_eq { all_rows ; locale ; scotland } ; ends won } }