Task: Text to Code
Input (English): select the rows whose away team record fuzzily matches to richmond . take the away team score record of this row . select the rows whose away team record fuzzily matches to swans . take the away team score record of this row . the first record is greater than the second record .
Output (English): greater { hop { filter_eq { all_rows ; away team ; richmond } ; away team score } ; hop { filter_eq { all_rows ; away team ; swans } ; away team score } }