Task: Text to Code
Input (English): select the rows whose incumbent record fuzzily matches to david trimble . take the first elected record of this row . select the rows whose incumbent record fuzzily matches to thomas p moore . take the first elected record of this row . the first record is less than the second record .
Output (English): less { hop { filter_eq { all_rows ; incumbent ; david trimble } ; first elected } ; hop { filter_eq { all_rows ; incumbent ; thomas p moore } ; first elected } }