Task: Text to Code
Input (English): select the rows whose incumbent record fuzzily matches to william h perry . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to william elliott . take the first elected record of this row . the first record is equal to the second record . the first elected record of the first row is 1884 . the first elected record of the second row is 1884 .
Output (English): and { eq { hop { filter_eq { all_rows ; incumbent ; william h perry } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; william elliott } ; first elected } } ; and { eq { hop { filter_eq { all_rows ; incumbent ; william h perry } ; first elected } ; 1884 } ; eq { hop { filter_eq { all_rows ; incumbent ; william elliott } ; first elected } ; 1884 } } }