Task: Text to Code
Input (English): select the rows whose date record fuzzily matches to august 18 . take the record record of this row . select the rows whose date record fuzzily matches to august 17 . take the record record of this row . the first record is greater than the second record . the opponent record of the first row is royals . the opponent record of the second row is royals .
Output (English): and { greater { hop { filter_eq { all_rows ; date ; august 18 } ; record } ; hop { filter_eq { all_rows ; date ; august 17 } ; record } } ; and { eq { hop { filter_eq { all_rows ; date ; august 18 } ; opponent } ; royals } ; eq { hop { filter_eq { all_rows ; date ; august 17 } ; opponent } ; royals } } }