Task: Text to Code
Input (English): select the rows whose nation record fuzzily matches to mexico . take the total record of this row . select the rows whose nation record fuzzily matches to canada . take the total record of this row . the first record is greater than the second record .
Output (English): greater { hop { filter_eq { all_rows ; nation ; mexico } ; total } ; hop { filter_eq { all_rows ; nation ; canada } ; total } }